[2025-01-16 00:00:05] Production.INFO: next invoice date [2025-01-16 00:00:05] Production.INFO: 2025-02-16 [2025-01-16 00:00:05] Production.INFO: getdaysdiff [2025-01-16 00:00:05] Production.INFO: +31 [2025-01-16 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,31,31,'RMScheduler',2025-01-16 00:00:05,1,0,,,0) [2025-01-16 00:00:05] Production.INFO: next invoice date [2025-01-16 00:00:05] Production.INFO: 2025-02-16 [2025-01-16 00:00:05] Production.INFO: getdaysdiff [2025-01-16 00:00:05] Production.INFO: +31 [2025-01-16 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,31,31,'RMScheduler',2025-01-16 00:00:05,1,0,,,0) [2025-01-16 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:00:07 [end_date_ymd] => 2025-01-16 00:00:07 [RateCDR] => 1 ) [2025-01-16 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:00:07' and `end` < '2025-01-16 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:00:19] Production.INFO: count ==577 [2025-01-16 00:00:19] Production.ERROR: pbx CDR StartTime 2025-01-15 21:00:07 - End Time 2025-01-16 00:00:07 [2025-01-16 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257142', 'tblTempUsageDetail_20' ) start [2025-01-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257142', 'tblTempUsageDetail_20' ) end [2025-01-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257142', 'tblTempVendorCDR_20' ) start [2025-01-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257142', 'tblTempVendorCDR_20' ) end [2025-01-16 00:00:19] Production.INFO: ProcessCDR(1,14257142,1,1,2) [2025-01-16 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257142', 'tblTempUsageDetail_20' ) start [2025-01-16 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257142', 'tblTempUsageDetail_20' ) end [2025-01-16 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:00:26] Production.INFO: ==7085== Releasing lock... [2025-01-16 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:00:26] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:01:04 [end_date_ymd] => 2025-01-16 00:01:04 [RateCDR] => 1 ) [2025-01-16 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:01:04' and `end` < '2025-01-16 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:01:17] Production.INFO: count ==529 [2025-01-16 00:01:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:01:04 - End Time 2025-01-16 00:01:04 [2025-01-16 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257147', 'tblTempUsageDetail_20' ) start [2025-01-16 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257147', 'tblTempUsageDetail_20' ) end [2025-01-16 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257147', 'tblTempVendorCDR_20' ) start [2025-01-16 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257147', 'tblTempVendorCDR_20' ) end [2025-01-16 00:01:17] Production.INFO: ProcessCDR(1,14257147,1,1,2) [2025-01-16 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257147', 'tblTempUsageDetail_20' ) start [2025-01-16 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257147', 'tblTempUsageDetail_20' ) end [2025-01-16 00:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:01:20] Production.INFO: ==7170== Releasing lock... [2025-01-16 00:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:01:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-16 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:02:05 [end_date_ymd] => 2025-01-16 00:02:05 [RateCDR] => 1 ) [2025-01-16 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:02:05' and `end` < '2025-01-16 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:02:18] Production.INFO: count ==92 [2025-01-16 00:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:02:05 - End Time 2025-01-16 00:02:05 [2025-01-16 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257152', 'tblTempUsageDetail_20' ) start [2025-01-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257152', 'tblTempUsageDetail_20' ) end [2025-01-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257152', 'tblTempVendorCDR_20' ) start [2025-01-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257152', 'tblTempVendorCDR_20' ) end [2025-01-16 00:02:18] Production.INFO: ProcessCDR(1,14257152,1,1,2) [2025-01-16 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257152', 'tblTempUsageDetail_20' ) start [2025-01-16 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257152', 'tblTempUsageDetail_20' ) end [2025-01-16 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:02:21] Production.INFO: ==7241== Releasing lock... [2025-01-16 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:03:05 [end_date_ymd] => 2025-01-16 00:03:05 [RateCDR] => 1 ) [2025-01-16 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:03:05' and `end` < '2025-01-16 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:03:26] Production.INFO: count ==95 [2025-01-16 00:03:26] Production.ERROR: pbx CDR StartTime 2025-01-15 21:03:05 - End Time 2025-01-16 00:03:05 [2025-01-16 00:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257157', 'tblTempUsageDetail_20' ) start [2025-01-16 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257157', 'tblTempUsageDetail_20' ) end [2025-01-16 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257157', 'tblTempVendorCDR_20' ) start [2025-01-16 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257157', 'tblTempVendorCDR_20' ) end [2025-01-16 00:03:26] Production.INFO: ProcessCDR(1,14257157,1,1,2) [2025-01-16 00:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257157', 'tblTempUsageDetail_20' ) start [2025-01-16 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257157', 'tblTempUsageDetail_20' ) end [2025-01-16 00:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:03:30] Production.INFO: ==7311== Releasing lock... [2025-01-16 00:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:03:30] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:04:05 [end_date_ymd] => 2025-01-16 00:04:05 [RateCDR] => 1 ) [2025-01-16 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:04:05' and `end` < '2025-01-16 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:04:26] Production.INFO: count ==93 [2025-01-16 00:04:26] Production.ERROR: pbx CDR StartTime 2025-01-15 21:04:05 - End Time 2025-01-16 00:04:05 [2025-01-16 00:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257162', 'tblTempUsageDetail_20' ) start [2025-01-16 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257162', 'tblTempUsageDetail_20' ) end [2025-01-16 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257162', 'tblTempVendorCDR_20' ) start [2025-01-16 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257162', 'tblTempVendorCDR_20' ) end [2025-01-16 00:04:26] Production.INFO: ProcessCDR(1,14257162,1,1,2) [2025-01-16 00:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257162', 'tblTempUsageDetail_20' ) start [2025-01-16 00:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257162', 'tblTempUsageDetail_20' ) end [2025-01-16 00:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:04:29] Production.INFO: ==7382== Releasing lock... [2025-01-16 00:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:04:29] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:05:05 [end_date_ymd] => 2025-01-16 00:05:05 [RateCDR] => 1 ) [2025-01-16 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:05:05' and `end` < '2025-01-16 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:05:24] Production.INFO: count ==92 [2025-01-16 00:05:24] Production.ERROR: pbx CDR StartTime 2025-01-15 21:05:05 - End Time 2025-01-16 00:05:05 [2025-01-16 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257167', 'tblTempUsageDetail_20' ) start [2025-01-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257167', 'tblTempUsageDetail_20' ) end [2025-01-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257167', 'tblTempVendorCDR_20' ) start [2025-01-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257167', 'tblTempVendorCDR_20' ) end [2025-01-16 00:05:24] Production.INFO: ProcessCDR(1,14257167,1,1,2) [2025-01-16 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257167', 'tblTempUsageDetail_20' ) start [2025-01-16 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257167', 'tblTempUsageDetail_20' ) end [2025-01-16 00:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:05:28] Production.INFO: ==7455== Releasing lock... [2025-01-16 00:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:05:28] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:06:04 [end_date_ymd] => 2025-01-16 00:06:04 [RateCDR] => 1 ) [2025-01-16 00:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:06:04' and `end` < '2025-01-16 00:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:06:17] Production.INFO: count ==92 [2025-01-16 00:06:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:06:04 - End Time 2025-01-16 00:06:04 [2025-01-16 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257172', 'tblTempUsageDetail_20' ) start [2025-01-16 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257172', 'tblTempUsageDetail_20' ) end [2025-01-16 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257172', 'tblTempVendorCDR_20' ) start [2025-01-16 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257172', 'tblTempVendorCDR_20' ) end [2025-01-16 00:06:17] Production.INFO: ProcessCDR(1,14257172,1,1,2) [2025-01-16 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257172', 'tblTempUsageDetail_20' ) start [2025-01-16 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257172', 'tblTempUsageDetail_20' ) end [2025-01-16 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:06:20] Production.INFO: ==7525== Releasing lock... [2025-01-16 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:06:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:07:05 [end_date_ymd] => 2025-01-16 00:07:05 [RateCDR] => 1 ) [2025-01-16 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:07:05' and `end` < '2025-01-16 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:07:19] Production.INFO: count ==91 [2025-01-16 00:07:19] Production.ERROR: pbx CDR StartTime 2025-01-15 21:07:05 - End Time 2025-01-16 00:07:05 [2025-01-16 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257177', 'tblTempUsageDetail_20' ) start [2025-01-16 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257177', 'tblTempUsageDetail_20' ) end [2025-01-16 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257177', 'tblTempVendorCDR_20' ) start [2025-01-16 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257177', 'tblTempVendorCDR_20' ) end [2025-01-16 00:07:19] Production.INFO: ProcessCDR(1,14257177,1,1,2) [2025-01-16 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257177', 'tblTempUsageDetail_20' ) start [2025-01-16 00:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257177', 'tblTempUsageDetail_20' ) end [2025-01-16 00:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:07:23] Production.INFO: ==7594== Releasing lock... [2025-01-16 00:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:07:23] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:08:05 [end_date_ymd] => 2025-01-16 00:08:05 [RateCDR] => 1 ) [2025-01-16 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-01-15 21:08:05' and `end` < '2025-01-16 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-01-16 00:08:24] Production.INFO: count ==95 [2025-01-16 00:08:24] Production.ERROR: pbx CDR StartTime 2025-01-15 21:08:05 - End Time 2025-01-16 00:08:05 [2025-01-16 00:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257182', 'tblTempUsageDetail_20' ) start [2025-01-16 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257182', 'tblTempUsageDetail_20' ) end [2025-01-16 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257182', 'tblTempVendorCDR_20' ) start [2025-01-16 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257182', 'tblTempVendorCDR_20' ) end [2025-01-16 00:08:24] Production.INFO: ProcessCDR(1,14257182,1,1,2) [2025-01-16 00:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257182', 'tblTempUsageDetail_20' ) start [2025-01-16 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257182', 'tblTempUsageDetail_20' ) end [2025-01-16 00:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:08:28] Production.INFO: ==7668== Releasing lock... [2025-01-16 00:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:08:28] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:09:05 [end_date_ymd] => 2025-01-16 00:09:05 [RateCDR] => 1 ) [2025-01-16 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:09:05' and `end` < '2025-01-16 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:09:17] Production.INFO: count ==95 [2025-01-16 00:09:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:09:05 - End Time 2025-01-16 00:09:05 [2025-01-16 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257187', 'tblTempUsageDetail_20' ) start [2025-01-16 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257187', 'tblTempUsageDetail_20' ) end [2025-01-16 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257187', 'tblTempVendorCDR_20' ) start [2025-01-16 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257187', 'tblTempVendorCDR_20' ) end [2025-01-16 00:09:17] Production.INFO: ProcessCDR(1,14257187,1,1,2) [2025-01-16 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257187', 'tblTempUsageDetail_20' ) start [2025-01-16 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257187', 'tblTempUsageDetail_20' ) end [2025-01-16 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:09:21] Production.INFO: ==7743== Releasing lock... [2025-01-16 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:10:05 [end_date_ymd] => 2025-01-16 00:10:05 [RateCDR] => 1 ) [2025-01-16 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:10:05' and `end` < '2025-01-16 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:10:41] Production.INFO: count ==99 [2025-01-16 00:10:41] Production.ERROR: pbx CDR StartTime 2025-01-15 21:10:05 - End Time 2025-01-16 00:10:05 [2025-01-16 00:10:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:10:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257192', 'tblTempUsageDetail_20' ) start [2025-01-16 00:10:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257192', 'tblTempUsageDetail_20' ) end [2025-01-16 00:10:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257192', 'tblTempVendorCDR_20' ) start [2025-01-16 00:10:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257192', 'tblTempVendorCDR_20' ) end [2025-01-16 00:10:41] Production.INFO: ProcessCDR(1,14257192,1,1,2) [2025-01-16 00:10:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:10:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:10:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:10:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257192', 'tblTempUsageDetail_20' ) start [2025-01-16 00:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257192', 'tblTempUsageDetail_20' ) end [2025-01-16 00:10:44] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:10:44] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:10:44] Production.INFO: ==7855== Releasing lock... [2025-01-16 00:10:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:10:44] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:11:05 [end_date_ymd] => 2025-01-16 00:11:05 [RateCDR] => 1 ) [2025-01-16 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:11:05' and `end` < '2025-01-16 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:11:30] Production.INFO: count ==109 [2025-01-16 00:11:30] Production.ERROR: pbx CDR StartTime 2025-01-15 21:11:05 - End Time 2025-01-16 00:11:05 [2025-01-16 00:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257198', 'tblTempUsageDetail_20' ) start [2025-01-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257198', 'tblTempUsageDetail_20' ) end [2025-01-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257198', 'tblTempVendorCDR_20' ) start [2025-01-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257198', 'tblTempVendorCDR_20' ) end [2025-01-16 00:11:30] Production.INFO: ProcessCDR(1,14257198,1,1,2) [2025-01-16 00:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257198', 'tblTempUsageDetail_20' ) start [2025-01-16 00:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257198', 'tblTempUsageDetail_20' ) end [2025-01-16 00:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:11:34] Production.INFO: ==7929== Releasing lock... [2025-01-16 00:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:11:34] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:12:05 [end_date_ymd] => 2025-01-16 00:12:05 [RateCDR] => 1 ) [2025-01-16 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:12:05' and `end` < '2025-01-16 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:12:20] Production.INFO: count ==112 [2025-01-16 00:12:20] Production.ERROR: pbx CDR StartTime 2025-01-15 21:12:05 - End Time 2025-01-16 00:12:05 [2025-01-16 00:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257203', 'tblTempUsageDetail_20' ) start [2025-01-16 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257203', 'tblTempUsageDetail_20' ) end [2025-01-16 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257203', 'tblTempVendorCDR_20' ) start [2025-01-16 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257203', 'tblTempVendorCDR_20' ) end [2025-01-16 00:12:20] Production.INFO: ProcessCDR(1,14257203,1,1,2) [2025-01-16 00:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257203', 'tblTempUsageDetail_20' ) start [2025-01-16 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257203', 'tblTempUsageDetail_20' ) end [2025-01-16 00:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:12:24] Production.INFO: ==8000== Releasing lock... [2025-01-16 00:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:12:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:13:05 [end_date_ymd] => 2025-01-16 00:13:05 [RateCDR] => 1 ) [2025-01-16 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:13:05' and `end` < '2025-01-16 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:13:17] Production.INFO: count ==112 [2025-01-16 00:13:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:13:05 - End Time 2025-01-16 00:13:05 [2025-01-16 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257208', 'tblTempUsageDetail_20' ) start [2025-01-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257208', 'tblTempUsageDetail_20' ) end [2025-01-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257208', 'tblTempVendorCDR_20' ) start [2025-01-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257208', 'tblTempVendorCDR_20' ) end [2025-01-16 00:13:17] Production.INFO: ProcessCDR(1,14257208,1,1,2) [2025-01-16 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257208', 'tblTempUsageDetail_20' ) start [2025-01-16 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257208', 'tblTempUsageDetail_20' ) end [2025-01-16 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:13:21] Production.INFO: ==8070== Releasing lock... [2025-01-16 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:14:05 [end_date_ymd] => 2025-01-16 00:14:05 [RateCDR] => 1 ) [2025-01-16 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:14:05' and `end` < '2025-01-16 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:14:18] Production.INFO: count ==112 [2025-01-16 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:14:05 - End Time 2025-01-16 00:14:05 [2025-01-16 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257213', 'tblTempUsageDetail_20' ) start [2025-01-16 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257213', 'tblTempUsageDetail_20' ) end [2025-01-16 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257213', 'tblTempVendorCDR_20' ) start [2025-01-16 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257213', 'tblTempVendorCDR_20' ) end [2025-01-16 00:14:18] Production.INFO: ProcessCDR(1,14257213,1,1,2) [2025-01-16 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257213', 'tblTempUsageDetail_20' ) start [2025-01-16 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257213', 'tblTempUsageDetail_20' ) end [2025-01-16 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:14:21] Production.INFO: ==8148== Releasing lock... [2025-01-16 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:15:05 [end_date_ymd] => 2025-01-16 00:15:05 [RateCDR] => 1 ) [2025-01-16 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:15:05' and `end` < '2025-01-16 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:15:17] Production.INFO: count ==112 [2025-01-16 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:15:05 - End Time 2025-01-16 00:15:05 [2025-01-16 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257218', 'tblTempUsageDetail_20' ) start [2025-01-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257218', 'tblTempUsageDetail_20' ) end [2025-01-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257218', 'tblTempVendorCDR_20' ) start [2025-01-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257218', 'tblTempVendorCDR_20' ) end [2025-01-16 00:15:17] Production.INFO: ProcessCDR(1,14257218,1,1,2) [2025-01-16 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257218', 'tblTempUsageDetail_20' ) start [2025-01-16 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257218', 'tblTempUsageDetail_20' ) end [2025-01-16 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:15:20] Production.INFO: ==8221== Releasing lock... [2025-01-16 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:16:05 [end_date_ymd] => 2025-01-16 00:16:05 [RateCDR] => 1 ) [2025-01-16 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:16:05' and `end` < '2025-01-16 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:16:18] Production.INFO: count ==110 [2025-01-16 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:16:05 - End Time 2025-01-16 00:16:05 [2025-01-16 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257223', 'tblTempUsageDetail_20' ) start [2025-01-16 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257223', 'tblTempUsageDetail_20' ) end [2025-01-16 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257223', 'tblTempVendorCDR_20' ) start [2025-01-16 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257223', 'tblTempVendorCDR_20' ) end [2025-01-16 00:16:18] Production.INFO: ProcessCDR(1,14257223,1,1,2) [2025-01-16 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257223', 'tblTempUsageDetail_20' ) start [2025-01-16 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257223', 'tblTempUsageDetail_20' ) end [2025-01-16 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:16:21] Production.INFO: ==8292== Releasing lock... [2025-01-16 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:17:05 [end_date_ymd] => 2025-01-16 00:17:05 [RateCDR] => 1 ) [2025-01-16 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:17:05' and `end` < '2025-01-16 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:17:22] Production.INFO: count ==107 [2025-01-16 00:17:22] Production.ERROR: pbx CDR StartTime 2025-01-15 21:17:05 - End Time 2025-01-16 00:17:05 [2025-01-16 00:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257228', 'tblTempUsageDetail_20' ) start [2025-01-16 00:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257228', 'tblTempUsageDetail_20' ) end [2025-01-16 00:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257228', 'tblTempVendorCDR_20' ) start [2025-01-16 00:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257228', 'tblTempVendorCDR_20' ) end [2025-01-16 00:17:22] Production.INFO: ProcessCDR(1,14257228,1,1,2) [2025-01-16 00:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257228', 'tblTempUsageDetail_20' ) start [2025-01-16 00:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257228', 'tblTempUsageDetail_20' ) end [2025-01-16 00:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:17:25] Production.INFO: ==8366== Releasing lock... [2025-01-16 00:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:17:25] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:18:05 [end_date_ymd] => 2025-01-16 00:18:05 [RateCDR] => 1 ) [2025-01-16 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:18:05' and `end` < '2025-01-16 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:18:19] Production.INFO: count ==106 [2025-01-16 00:18:19] Production.ERROR: pbx CDR StartTime 2025-01-15 21:18:05 - End Time 2025-01-16 00:18:05 [2025-01-16 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257233', 'tblTempUsageDetail_20' ) start [2025-01-16 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257233', 'tblTempUsageDetail_20' ) end [2025-01-16 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257233', 'tblTempVendorCDR_20' ) start [2025-01-16 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257233', 'tblTempVendorCDR_20' ) end [2025-01-16 00:18:19] Production.INFO: ProcessCDR(1,14257233,1,1,2) [2025-01-16 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257233', 'tblTempUsageDetail_20' ) start [2025-01-16 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257233', 'tblTempUsageDetail_20' ) end [2025-01-16 00:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:18:23] Production.INFO: ==8448== Releasing lock... [2025-01-16 00:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:18:23] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:19:05 [end_date_ymd] => 2025-01-16 00:19:05 [RateCDR] => 1 ) [2025-01-16 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:19:05' and `end` < '2025-01-16 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:19:17] Production.INFO: count ==105 [2025-01-16 00:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:19:05 - End Time 2025-01-16 00:19:05 [2025-01-16 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257238', 'tblTempUsageDetail_20' ) start [2025-01-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257238', 'tblTempUsageDetail_20' ) end [2025-01-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257238', 'tblTempVendorCDR_20' ) start [2025-01-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257238', 'tblTempVendorCDR_20' ) end [2025-01-16 00:19:17] Production.INFO: ProcessCDR(1,14257238,1,1,2) [2025-01-16 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257238', 'tblTempUsageDetail_20' ) start [2025-01-16 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257238', 'tblTempUsageDetail_20' ) end [2025-01-16 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:19:20] Production.INFO: ==8518== Releasing lock... [2025-01-16 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:19:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:20:05 [end_date_ymd] => 2025-01-16 00:20:05 [RateCDR] => 1 ) [2025-01-16 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:20:05' and `end` < '2025-01-16 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:20:17] Production.INFO: count ==108 [2025-01-16 00:20:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:20:05 - End Time 2025-01-16 00:20:05 [2025-01-16 00:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257244', 'tblTempUsageDetail_20' ) start [2025-01-16 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257244', 'tblTempUsageDetail_20' ) end [2025-01-16 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257244', 'tblTempVendorCDR_20' ) start [2025-01-16 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257244', 'tblTempVendorCDR_20' ) end [2025-01-16 00:20:17] Production.INFO: ProcessCDR(1,14257244,1,1,2) [2025-01-16 00:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257244', 'tblTempUsageDetail_20' ) start [2025-01-16 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257244', 'tblTempUsageDetail_20' ) end [2025-01-16 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:20:21] Production.INFO: ==8589== Releasing lock... [2025-01-16 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:21:05 [end_date_ymd] => 2025-01-16 00:21:05 [RateCDR] => 1 ) [2025-01-16 00:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:21:05' and `end` < '2025-01-16 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:21:18] Production.INFO: count ==114 [2025-01-16 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:21:05 - End Time 2025-01-16 00:21:05 [2025-01-16 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257249', 'tblTempUsageDetail_20' ) start [2025-01-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257249', 'tblTempUsageDetail_20' ) end [2025-01-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257249', 'tblTempVendorCDR_20' ) start [2025-01-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257249', 'tblTempVendorCDR_20' ) end [2025-01-16 00:21:18] Production.INFO: ProcessCDR(1,14257249,1,1,2) [2025-01-16 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257249', 'tblTempUsageDetail_20' ) start [2025-01-16 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257249', 'tblTempUsageDetail_20' ) end [2025-01-16 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:21:21] Production.INFO: ==8663== Releasing lock... [2025-01-16 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:22:05 [end_date_ymd] => 2025-01-16 00:22:05 [RateCDR] => 1 ) [2025-01-16 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:22:05' and `end` < '2025-01-16 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:22:17] Production.INFO: count ==117 [2025-01-16 00:22:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:22:05 - End Time 2025-01-16 00:22:05 [2025-01-16 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257254', 'tblTempUsageDetail_20' ) start [2025-01-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257254', 'tblTempUsageDetail_20' ) end [2025-01-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257254', 'tblTempVendorCDR_20' ) start [2025-01-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257254', 'tblTempVendorCDR_20' ) end [2025-01-16 00:22:17] Production.INFO: ProcessCDR(1,14257254,1,1,2) [2025-01-16 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257254', 'tblTempUsageDetail_20' ) start [2025-01-16 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257254', 'tblTempUsageDetail_20' ) end [2025-01-16 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:22:20] Production.INFO: ==8734== Releasing lock... [2025-01-16 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:23:05 [end_date_ymd] => 2025-01-16 00:23:05 [RateCDR] => 1 ) [2025-01-16 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:23:05' and `end` < '2025-01-16 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:23:18] Production.INFO: count ==117 [2025-01-16 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:23:05 - End Time 2025-01-16 00:23:05 [2025-01-16 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257259', 'tblTempUsageDetail_20' ) start [2025-01-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257259', 'tblTempUsageDetail_20' ) end [2025-01-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257259', 'tblTempVendorCDR_20' ) start [2025-01-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257259', 'tblTempVendorCDR_20' ) end [2025-01-16 00:23:18] Production.INFO: ProcessCDR(1,14257259,1,1,2) [2025-01-16 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257259', 'tblTempUsageDetail_20' ) start [2025-01-16 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257259', 'tblTempUsageDetail_20' ) end [2025-01-16 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:23:21] Production.INFO: ==8812== Releasing lock... [2025-01-16 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:24:05 [end_date_ymd] => 2025-01-16 00:24:05 [RateCDR] => 1 ) [2025-01-16 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:24:05' and `end` < '2025-01-16 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:24:17] Production.INFO: count ==114 [2025-01-16 00:24:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:24:05 - End Time 2025-01-16 00:24:05 [2025-01-16 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257264', 'tblTempUsageDetail_20' ) start [2025-01-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257264', 'tblTempUsageDetail_20' ) end [2025-01-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257264', 'tblTempVendorCDR_20' ) start [2025-01-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257264', 'tblTempVendorCDR_20' ) end [2025-01-16 00:24:17] Production.INFO: ProcessCDR(1,14257264,1,1,2) [2025-01-16 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257264', 'tblTempUsageDetail_20' ) start [2025-01-16 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257264', 'tblTempUsageDetail_20' ) end [2025-01-16 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:24:21] Production.INFO: ==8883== Releasing lock... [2025-01-16 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:25:05 [end_date_ymd] => 2025-01-16 00:25:05 [RateCDR] => 1 ) [2025-01-16 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:25:05' and `end` < '2025-01-16 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:25:17] Production.INFO: count ==113 [2025-01-16 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:25:05 - End Time 2025-01-16 00:25:05 [2025-01-16 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257269', 'tblTempUsageDetail_20' ) start [2025-01-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257269', 'tblTempUsageDetail_20' ) end [2025-01-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257269', 'tblTempVendorCDR_20' ) start [2025-01-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257269', 'tblTempVendorCDR_20' ) end [2025-01-16 00:25:18] Production.INFO: ProcessCDR(1,14257269,1,1,2) [2025-01-16 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257269', 'tblTempUsageDetail_20' ) start [2025-01-16 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257269', 'tblTempUsageDetail_20' ) end [2025-01-16 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:25:21] Production.INFO: ==8994== Releasing lock... [2025-01-16 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:26:05 [end_date_ymd] => 2025-01-16 00:26:05 [RateCDR] => 1 ) [2025-01-16 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:26:05' and `end` < '2025-01-16 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:26:17] Production.INFO: count ==113 [2025-01-16 00:26:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:26:05 - End Time 2025-01-16 00:26:05 [2025-01-16 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257274', 'tblTempUsageDetail_20' ) start [2025-01-16 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257274', 'tblTempUsageDetail_20' ) end [2025-01-16 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257274', 'tblTempVendorCDR_20' ) start [2025-01-16 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257274', 'tblTempVendorCDR_20' ) end [2025-01-16 00:26:17] Production.INFO: ProcessCDR(1,14257274,1,1,2) [2025-01-16 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257274', 'tblTempUsageDetail_20' ) start [2025-01-16 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257274', 'tblTempUsageDetail_20' ) end [2025-01-16 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:26:20] Production.INFO: ==9065== Releasing lock... [2025-01-16 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:26:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:27:05 [end_date_ymd] => 2025-01-16 00:27:05 [RateCDR] => 1 ) [2025-01-16 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:27:05' and `end` < '2025-01-16 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:27:17] Production.INFO: count ==112 [2025-01-16 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:27:05 - End Time 2025-01-16 00:27:05 [2025-01-16 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257279', 'tblTempUsageDetail_20' ) start [2025-01-16 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257279', 'tblTempUsageDetail_20' ) end [2025-01-16 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257279', 'tblTempVendorCDR_20' ) start [2025-01-16 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257279', 'tblTempVendorCDR_20' ) end [2025-01-16 00:27:17] Production.INFO: ProcessCDR(1,14257279,1,1,2) [2025-01-16 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257279', 'tblTempUsageDetail_20' ) start [2025-01-16 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257279', 'tblTempUsageDetail_20' ) end [2025-01-16 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:27:21] Production.INFO: ==9136== Releasing lock... [2025-01-16 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:27:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:28:04 [end_date_ymd] => 2025-01-16 00:28:04 [RateCDR] => 1 ) [2025-01-16 00:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:28:04' and `end` < '2025-01-16 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:28:17] Production.INFO: count ==112 [2025-01-16 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:28:04 - End Time 2025-01-16 00:28:04 [2025-01-16 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257284', 'tblTempUsageDetail_20' ) start [2025-01-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257284', 'tblTempUsageDetail_20' ) end [2025-01-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257284', 'tblTempVendorCDR_20' ) start [2025-01-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257284', 'tblTempVendorCDR_20' ) end [2025-01-16 00:28:17] Production.INFO: ProcessCDR(1,14257284,1,1,2) [2025-01-16 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257284', 'tblTempUsageDetail_20' ) start [2025-01-16 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257284', 'tblTempUsageDetail_20' ) end [2025-01-16 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:28:20] Production.INFO: ==9204== Releasing lock... [2025-01-16 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:28:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:29:05 [end_date_ymd] => 2025-01-16 00:29:05 [RateCDR] => 1 ) [2025-01-16 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:29:05' and `end` < '2025-01-16 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:29:17] Production.INFO: count ==112 [2025-01-16 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:29:05 - End Time 2025-01-16 00:29:05 [2025-01-16 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257289', 'tblTempUsageDetail_20' ) start [2025-01-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257289', 'tblTempUsageDetail_20' ) end [2025-01-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257289', 'tblTempVendorCDR_20' ) start [2025-01-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257289', 'tblTempVendorCDR_20' ) end [2025-01-16 00:29:17] Production.INFO: ProcessCDR(1,14257289,1,1,2) [2025-01-16 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257289', 'tblTempUsageDetail_20' ) start [2025-01-16 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257289', 'tblTempUsageDetail_20' ) end [2025-01-16 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:29:21] Production.INFO: ==9278== Releasing lock... [2025-01-16 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:30:06 [end_date_ymd] => 2025-01-16 00:30:06 [RateCDR] => 1 ) [2025-01-16 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:30:06' and `end` < '2025-01-16 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:30:19] Production.INFO: count ==122 [2025-01-16 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 21:30:06 - End Time 2025-01-16 00:30:06 [2025-01-16 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257295', 'tblTempUsageDetail_20' ) start [2025-01-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257295', 'tblTempUsageDetail_20' ) end [2025-01-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257295', 'tblTempVendorCDR_20' ) start [2025-01-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257295', 'tblTempVendorCDR_20' ) end [2025-01-16 00:30:19] Production.INFO: ProcessCDR(1,14257295,1,1,2) [2025-01-16 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257295', 'tblTempUsageDetail_20' ) start [2025-01-16 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257295', 'tblTempUsageDetail_20' ) end [2025-01-16 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:30:22] Production.INFO: ==9353== Releasing lock... [2025-01-16 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:31:05 [end_date_ymd] => 2025-01-16 00:31:05 [RateCDR] => 1 ) [2025-01-16 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:31:05' and `end` < '2025-01-16 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:31:17] Production.INFO: count ==125 [2025-01-16 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:31:05 - End Time 2025-01-16 00:31:05 [2025-01-16 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257300', 'tblTempUsageDetail_20' ) start [2025-01-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257300', 'tblTempUsageDetail_20' ) end [2025-01-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257300', 'tblTempVendorCDR_20' ) start [2025-01-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257300', 'tblTempVendorCDR_20' ) end [2025-01-16 00:31:17] Production.INFO: ProcessCDR(1,14257300,1,1,2) [2025-01-16 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257300', 'tblTempUsageDetail_20' ) start [2025-01-16 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257300', 'tblTempUsageDetail_20' ) end [2025-01-16 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:31:22] Production.INFO: ==9424== Releasing lock... [2025-01-16 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:32:06 [end_date_ymd] => 2025-01-16 00:32:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 21:32:06' and `end` < '2025-01-16 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-01-16 00:32:18] Production.INFO: count ==125 [2025-01-16 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:32:06 - End Time 2025-01-16 00:32:06 [2025-01-16 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257305', 'tblTempUsageDetail_20' ) start [2025-01-16 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257305', 'tblTempUsageDetail_20' ) end [2025-01-16 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257305', 'tblTempVendorCDR_20' ) start [2025-01-16 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257305', 'tblTempVendorCDR_20' ) end [2025-01-16 00:32:18] Production.INFO: ProcessCDR(1,14257305,1,1,2) [2025-01-16 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257305', 'tblTempUsageDetail_20' ) start [2025-01-16 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257305', 'tblTempUsageDetail_20' ) end [2025-01-16 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:32:21] Production.INFO: ==9493== Releasing lock... [2025-01-16 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:33:05 [end_date_ymd] => 2025-01-16 00:33:05 [RateCDR] => 1 ) [2025-01-16 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:33:05' and `end` < '2025-01-16 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:33:17] Production.INFO: count ==122 [2025-01-16 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:33:05 - End Time 2025-01-16 00:33:05 [2025-01-16 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257310', 'tblTempUsageDetail_20' ) start [2025-01-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257310', 'tblTempUsageDetail_20' ) end [2025-01-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257310', 'tblTempVendorCDR_20' ) start [2025-01-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257310', 'tblTempVendorCDR_20' ) end [2025-01-16 00:33:17] Production.INFO: ProcessCDR(1,14257310,1,1,2) [2025-01-16 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257310', 'tblTempUsageDetail_20' ) start [2025-01-16 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257310', 'tblTempUsageDetail_20' ) end [2025-01-16 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:33:20] Production.INFO: ==9564== Releasing lock... [2025-01-16 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:34:05 [end_date_ymd] => 2025-01-16 00:34:05 [RateCDR] => 1 ) [2025-01-16 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:34:05' and `end` < '2025-01-16 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:34:17] Production.INFO: count ==122 [2025-01-16 00:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:34:05 - End Time 2025-01-16 00:34:05 [2025-01-16 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257315', 'tblTempUsageDetail_20' ) start [2025-01-16 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257315', 'tblTempUsageDetail_20' ) end [2025-01-16 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257315', 'tblTempVendorCDR_20' ) start [2025-01-16 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257315', 'tblTempVendorCDR_20' ) end [2025-01-16 00:34:17] Production.INFO: ProcessCDR(1,14257315,1,1,2) [2025-01-16 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257315', 'tblTempUsageDetail_20' ) start [2025-01-16 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257315', 'tblTempUsageDetail_20' ) end [2025-01-16 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:34:21] Production.INFO: ==9634== Releasing lock... [2025-01-16 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:35:05 [end_date_ymd] => 2025-01-16 00:35:05 [RateCDR] => 1 ) [2025-01-16 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:35:05' and `end` < '2025-01-16 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:35:17] Production.INFO: count ==122 [2025-01-16 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:35:05 - End Time 2025-01-16 00:35:05 [2025-01-16 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257320', 'tblTempUsageDetail_20' ) start [2025-01-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257320', 'tblTempUsageDetail_20' ) end [2025-01-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257320', 'tblTempVendorCDR_20' ) start [2025-01-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257320', 'tblTempVendorCDR_20' ) end [2025-01-16 00:35:17] Production.INFO: ProcessCDR(1,14257320,1,1,2) [2025-01-16 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257320', 'tblTempUsageDetail_20' ) start [2025-01-16 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257320', 'tblTempUsageDetail_20' ) end [2025-01-16 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:35:20] Production.INFO: ==9707== Releasing lock... [2025-01-16 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:36:05 [end_date_ymd] => 2025-01-16 00:36:05 [RateCDR] => 1 ) [2025-01-16 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:36:05' and `end` < '2025-01-16 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:36:18] Production.INFO: count ==122 [2025-01-16 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:36:05 - End Time 2025-01-16 00:36:05 [2025-01-16 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257325', 'tblTempUsageDetail_20' ) start [2025-01-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257325', 'tblTempUsageDetail_20' ) end [2025-01-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257325', 'tblTempVendorCDR_20' ) start [2025-01-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257325', 'tblTempVendorCDR_20' ) end [2025-01-16 00:36:18] Production.INFO: ProcessCDR(1,14257325,1,1,2) [2025-01-16 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257325', 'tblTempUsageDetail_20' ) start [2025-01-16 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257325', 'tblTempUsageDetail_20' ) end [2025-01-16 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:36:21] Production.INFO: ==9782== Releasing lock... [2025-01-16 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:37:04 [end_date_ymd] => 2025-01-16 00:37:04 [RateCDR] => 1 ) [2025-01-16 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:37:04' and `end` < '2025-01-16 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:37:17] Production.INFO: count ==121 [2025-01-16 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:37:04 - End Time 2025-01-16 00:37:04 [2025-01-16 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257330', 'tblTempUsageDetail_20' ) start [2025-01-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257330', 'tblTempUsageDetail_20' ) end [2025-01-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257330', 'tblTempVendorCDR_20' ) start [2025-01-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257330', 'tblTempVendorCDR_20' ) end [2025-01-16 00:37:17] Production.INFO: ProcessCDR(1,14257330,1,1,2) [2025-01-16 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257330', 'tblTempUsageDetail_20' ) start [2025-01-16 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257330', 'tblTempUsageDetail_20' ) end [2025-01-16 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:37:20] Production.INFO: ==9850== Releasing lock... [2025-01-16 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:38:05 [end_date_ymd] => 2025-01-16 00:38:05 [RateCDR] => 1 ) [2025-01-16 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:38:05' and `end` < '2025-01-16 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:38:17] Production.INFO: count ==121 [2025-01-16 00:38:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:38:05 - End Time 2025-01-16 00:38:05 [2025-01-16 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257334', 'tblTempUsageDetail_20' ) start [2025-01-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257334', 'tblTempUsageDetail_20' ) end [2025-01-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257334', 'tblTempVendorCDR_20' ) start [2025-01-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257334', 'tblTempVendorCDR_20' ) end [2025-01-16 00:38:17] Production.INFO: ProcessCDR(1,14257334,1,1,2) [2025-01-16 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257334', 'tblTempUsageDetail_20' ) start [2025-01-16 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257334', 'tblTempUsageDetail_20' ) end [2025-01-16 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:38:20] Production.INFO: ==9922== Releasing lock... [2025-01-16 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:38:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:39:04 [end_date_ymd] => 2025-01-16 00:39:04 [RateCDR] => 1 ) [2025-01-16 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:39:04' and `end` < '2025-01-16 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:39:17] Production.INFO: count ==121 [2025-01-16 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:39:04 - End Time 2025-01-16 00:39:04 [2025-01-16 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257340', 'tblTempUsageDetail_20' ) start [2025-01-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257340', 'tblTempUsageDetail_20' ) end [2025-01-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257340', 'tblTempVendorCDR_20' ) start [2025-01-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257340', 'tblTempVendorCDR_20' ) end [2025-01-16 00:39:17] Production.INFO: ProcessCDR(1,14257340,1,1,2) [2025-01-16 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257340', 'tblTempUsageDetail_20' ) start [2025-01-16 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257340', 'tblTempUsageDetail_20' ) end [2025-01-16 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:39:21] Production.INFO: ==9991== Releasing lock... [2025-01-16 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:40:05 [end_date_ymd] => 2025-01-16 00:40:05 [RateCDR] => 1 ) [2025-01-16 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:40:05' and `end` < '2025-01-16 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:40:18] Production.INFO: count ==130 [2025-01-16 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:40:05 - End Time 2025-01-16 00:40:05 [2025-01-16 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257346', 'tblTempUsageDetail_20' ) start [2025-01-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257346', 'tblTempUsageDetail_20' ) end [2025-01-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257346', 'tblTempVendorCDR_20' ) start [2025-01-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257346', 'tblTempVendorCDR_20' ) end [2025-01-16 00:40:18] Production.INFO: ProcessCDR(1,14257346,1,1,2) [2025-01-16 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257346', 'tblTempUsageDetail_20' ) start [2025-01-16 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257346', 'tblTempUsageDetail_20' ) end [2025-01-16 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:40:21] Production.INFO: ==10065== Releasing lock... [2025-01-16 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:41:05 [end_date_ymd] => 2025-01-16 00:41:05 [RateCDR] => 1 ) [2025-01-16 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:41:05' and `end` < '2025-01-16 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:41:17] Production.INFO: count ==134 [2025-01-16 00:41:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:41:05 - End Time 2025-01-16 00:41:05 [2025-01-16 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257351', 'tblTempUsageDetail_20' ) start [2025-01-16 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257351', 'tblTempUsageDetail_20' ) end [2025-01-16 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257351', 'tblTempVendorCDR_20' ) start [2025-01-16 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257351', 'tblTempVendorCDR_20' ) end [2025-01-16 00:41:17] Production.INFO: ProcessCDR(1,14257351,1,1,2) [2025-01-16 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257351', 'tblTempUsageDetail_20' ) start [2025-01-16 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257351', 'tblTempUsageDetail_20' ) end [2025-01-16 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:41:21] Production.INFO: ==10179== Releasing lock... [2025-01-16 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:42:05 [end_date_ymd] => 2025-01-16 00:42:05 [RateCDR] => 1 ) [2025-01-16 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:42:05' and `end` < '2025-01-16 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:42:17] Production.INFO: count ==134 [2025-01-16 00:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:42:05 - End Time 2025-01-16 00:42:05 [2025-01-16 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257356', 'tblTempUsageDetail_20' ) start [2025-01-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257356', 'tblTempUsageDetail_20' ) end [2025-01-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257356', 'tblTempVendorCDR_20' ) start [2025-01-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257356', 'tblTempVendorCDR_20' ) end [2025-01-16 00:42:17] Production.INFO: ProcessCDR(1,14257356,1,1,2) [2025-01-16 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257356', 'tblTempUsageDetail_20' ) start [2025-01-16 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257356', 'tblTempUsageDetail_20' ) end [2025-01-16 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:42:20] Production.INFO: ==10250== Releasing lock... [2025-01-16 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:43:05 [end_date_ymd] => 2025-01-16 00:43:05 [RateCDR] => 1 ) [2025-01-16 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:43:05' and `end` < '2025-01-16 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:43:18] Production.INFO: count ==134 [2025-01-16 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:43:05 - End Time 2025-01-16 00:43:05 [2025-01-16 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257361', 'tblTempUsageDetail_20' ) start [2025-01-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257361', 'tblTempUsageDetail_20' ) end [2025-01-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257361', 'tblTempVendorCDR_20' ) start [2025-01-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257361', 'tblTempVendorCDR_20' ) end [2025-01-16 00:43:18] Production.INFO: ProcessCDR(1,14257361,1,1,2) [2025-01-16 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257361', 'tblTempUsageDetail_20' ) start [2025-01-16 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257361', 'tblTempUsageDetail_20' ) end [2025-01-16 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:43:21] Production.INFO: ==10321== Releasing lock... [2025-01-16 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:44:04 [end_date_ymd] => 2025-01-16 00:44:04 [RateCDR] => 1 ) [2025-01-16 00:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:44:04' and `end` < '2025-01-16 00:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:44:17] Production.INFO: count ==134 [2025-01-16 00:44:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:44:04 - End Time 2025-01-16 00:44:04 [2025-01-16 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257366', 'tblTempUsageDetail_20' ) start [2025-01-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257366', 'tblTempUsageDetail_20' ) end [2025-01-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257366', 'tblTempVendorCDR_20' ) start [2025-01-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257366', 'tblTempVendorCDR_20' ) end [2025-01-16 00:44:17] Production.INFO: ProcessCDR(1,14257366,1,1,2) [2025-01-16 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257366', 'tblTempUsageDetail_20' ) start [2025-01-16 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257366', 'tblTempUsageDetail_20' ) end [2025-01-16 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:44:20] Production.INFO: ==10390== Releasing lock... [2025-01-16 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:45:04 [end_date_ymd] => 2025-01-16 00:45:04 [RateCDR] => 1 ) [2025-01-16 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:45:04' and `end` < '2025-01-16 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:45:17] Production.INFO: count ==134 [2025-01-16 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:45:04 - End Time 2025-01-16 00:45:04 [2025-01-16 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257371', 'tblTempUsageDetail_20' ) start [2025-01-16 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257371', 'tblTempUsageDetail_20' ) end [2025-01-16 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257371', 'tblTempVendorCDR_20' ) start [2025-01-16 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257371', 'tblTempVendorCDR_20' ) end [2025-01-16 00:45:17] Production.INFO: ProcessCDR(1,14257371,1,1,2) [2025-01-16 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257371', 'tblTempUsageDetail_20' ) start [2025-01-16 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257371', 'tblTempUsageDetail_20' ) end [2025-01-16 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:45:20] Production.INFO: ==10462== Releasing lock... [2025-01-16 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:46:04 [end_date_ymd] => 2025-01-16 00:46:04 [RateCDR] => 1 ) [2025-01-16 00:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:46:04' and `end` < '2025-01-16 00:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:46:17] Production.INFO: count ==134 [2025-01-16 00:46:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:46:04 - End Time 2025-01-16 00:46:04 [2025-01-16 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257376', 'tblTempUsageDetail_20' ) start [2025-01-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257376', 'tblTempUsageDetail_20' ) end [2025-01-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257376', 'tblTempVendorCDR_20' ) start [2025-01-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257376', 'tblTempVendorCDR_20' ) end [2025-01-16 00:46:17] Production.INFO: ProcessCDR(1,14257376,1,1,2) [2025-01-16 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257376', 'tblTempUsageDetail_20' ) start [2025-01-16 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257376', 'tblTempUsageDetail_20' ) end [2025-01-16 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:46:20] Production.INFO: ==10533== Releasing lock... [2025-01-16 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:47:05 [end_date_ymd] => 2025-01-16 00:47:05 [RateCDR] => 1 ) [2025-01-16 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:47:05' and `end` < '2025-01-16 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:47:17] Production.INFO: count ==134 [2025-01-16 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:47:05 - End Time 2025-01-16 00:47:05 [2025-01-16 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257381', 'tblTempUsageDetail_20' ) start [2025-01-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257381', 'tblTempUsageDetail_20' ) end [2025-01-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257381', 'tblTempVendorCDR_20' ) start [2025-01-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257381', 'tblTempVendorCDR_20' ) end [2025-01-16 00:47:17] Production.INFO: ProcessCDR(1,14257381,1,1,2) [2025-01-16 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257381', 'tblTempUsageDetail_20' ) start [2025-01-16 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257381', 'tblTempUsageDetail_20' ) end [2025-01-16 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:47:20] Production.INFO: ==10606== Releasing lock... [2025-01-16 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:48:05 [end_date_ymd] => 2025-01-16 00:48:05 [RateCDR] => 1 ) [2025-01-16 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:48:05' and `end` < '2025-01-16 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:48:18] Production.INFO: count ==131 [2025-01-16 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:48:05 - End Time 2025-01-16 00:48:05 [2025-01-16 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257386', 'tblTempUsageDetail_20' ) start [2025-01-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257386', 'tblTempUsageDetail_20' ) end [2025-01-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257386', 'tblTempVendorCDR_20' ) start [2025-01-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257386', 'tblTempVendorCDR_20' ) end [2025-01-16 00:48:18] Production.INFO: ProcessCDR(1,14257386,1,1,2) [2025-01-16 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257386', 'tblTempUsageDetail_20' ) start [2025-01-16 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257386', 'tblTempUsageDetail_20' ) end [2025-01-16 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:48:22] Production.INFO: ==10679== Releasing lock... [2025-01-16 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:48:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:49:05 [end_date_ymd] => 2025-01-16 00:49:05 [RateCDR] => 1 ) [2025-01-16 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:49:05' and `end` < '2025-01-16 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:49:17] Production.INFO: count ==131 [2025-01-16 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:49:05 - End Time 2025-01-16 00:49:05 [2025-01-16 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257391', 'tblTempUsageDetail_20' ) start [2025-01-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257391', 'tblTempUsageDetail_20' ) end [2025-01-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257391', 'tblTempVendorCDR_20' ) start [2025-01-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257391', 'tblTempVendorCDR_20' ) end [2025-01-16 00:49:17] Production.INFO: ProcessCDR(1,14257391,1,1,2) [2025-01-16 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257391', 'tblTempUsageDetail_20' ) start [2025-01-16 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257391', 'tblTempUsageDetail_20' ) end [2025-01-16 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:49:20] Production.INFO: ==10750== Releasing lock... [2025-01-16 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:49:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:50:06 [end_date_ymd] => 2025-01-16 00:50:06 [RateCDR] => 1 ) [2025-01-16 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:50:06' and `end` < '2025-01-16 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:50:18] Production.INFO: count ==139 [2025-01-16 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:50:06 - End Time 2025-01-16 00:50:06 [2025-01-16 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257397', 'tblTempUsageDetail_20' ) start [2025-01-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257397', 'tblTempUsageDetail_20' ) end [2025-01-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257397', 'tblTempVendorCDR_20' ) start [2025-01-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257397', 'tblTempVendorCDR_20' ) end [2025-01-16 00:50:18] Production.INFO: ProcessCDR(1,14257397,1,1,2) [2025-01-16 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257397', 'tblTempUsageDetail_20' ) start [2025-01-16 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257397', 'tblTempUsageDetail_20' ) end [2025-01-16 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:50:21] Production.INFO: ==10822== Releasing lock... [2025-01-16 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:51:04 [end_date_ymd] => 2025-01-16 00:51:04 [RateCDR] => 1 ) [2025-01-16 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:51:04' and `end` < '2025-01-16 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:51:16] Production.INFO: count ==141 [2025-01-16 00:51:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:51:04 - End Time 2025-01-16 00:51:04 [2025-01-16 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257402', 'tblTempUsageDetail_20' ) start [2025-01-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257402', 'tblTempUsageDetail_20' ) end [2025-01-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257402', 'tblTempVendorCDR_20' ) start [2025-01-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257402', 'tblTempVendorCDR_20' ) end [2025-01-16 00:51:17] Production.INFO: ProcessCDR(1,14257402,1,1,2) [2025-01-16 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257402', 'tblTempUsageDetail_20' ) start [2025-01-16 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257402', 'tblTempUsageDetail_20' ) end [2025-01-16 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:51:20] Production.INFO: ==10900== Releasing lock... [2025-01-16 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:51:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:52:05 [end_date_ymd] => 2025-01-16 00:52:05 [RateCDR] => 1 ) [2025-01-16 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:52:05' and `end` < '2025-01-16 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:52:17] Production.INFO: count ==141 [2025-01-16 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:52:05 - End Time 2025-01-16 00:52:05 [2025-01-16 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257407', 'tblTempUsageDetail_20' ) start [2025-01-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257407', 'tblTempUsageDetail_20' ) end [2025-01-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257407', 'tblTempVendorCDR_20' ) start [2025-01-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257407', 'tblTempVendorCDR_20' ) end [2025-01-16 00:52:17] Production.INFO: ProcessCDR(1,14257407,1,1,2) [2025-01-16 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257407', 'tblTempUsageDetail_20' ) start [2025-01-16 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257407', 'tblTempUsageDetail_20' ) end [2025-01-16 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:52:20] Production.INFO: ==10969== Releasing lock... [2025-01-16 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:52:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:53:05 [end_date_ymd] => 2025-01-16 00:53:05 [RateCDR] => 1 ) [2025-01-16 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:53:05' and `end` < '2025-01-16 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:53:17] Production.INFO: count ==141 [2025-01-16 00:53:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:53:05 - End Time 2025-01-16 00:53:05 [2025-01-16 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257412', 'tblTempUsageDetail_20' ) start [2025-01-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257412', 'tblTempUsageDetail_20' ) end [2025-01-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257412', 'tblTempVendorCDR_20' ) start [2025-01-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257412', 'tblTempVendorCDR_20' ) end [2025-01-16 00:53:17] Production.INFO: ProcessCDR(1,14257412,1,1,2) [2025-01-16 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257412', 'tblTempUsageDetail_20' ) start [2025-01-16 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257412', 'tblTempUsageDetail_20' ) end [2025-01-16 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:53:21] Production.INFO: ==11040== Releasing lock... [2025-01-16 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:53:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:54:05 [end_date_ymd] => 2025-01-16 00:54:05 [RateCDR] => 1 ) [2025-01-16 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:54:05' and `end` < '2025-01-16 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:54:17] Production.INFO: count ==141 [2025-01-16 00:54:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:54:05 - End Time 2025-01-16 00:54:05 [2025-01-16 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257417', 'tblTempUsageDetail_20' ) start [2025-01-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257417', 'tblTempUsageDetail_20' ) end [2025-01-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257417', 'tblTempVendorCDR_20' ) start [2025-01-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257417', 'tblTempVendorCDR_20' ) end [2025-01-16 00:54:17] Production.INFO: ProcessCDR(1,14257417,1,1,2) [2025-01-16 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257417', 'tblTempUsageDetail_20' ) start [2025-01-16 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257417', 'tblTempUsageDetail_20' ) end [2025-01-16 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:54:20] Production.INFO: ==11112== Releasing lock... [2025-01-16 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:54:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:55:04 [end_date_ymd] => 2025-01-16 00:55:04 [RateCDR] => 1 ) [2025-01-16 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:55:04' and `end` < '2025-01-16 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:55:17] Production.INFO: count ==140 [2025-01-16 00:55:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:55:04 - End Time 2025-01-16 00:55:04 [2025-01-16 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257422', 'tblTempUsageDetail_20' ) start [2025-01-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257422', 'tblTempUsageDetail_20' ) end [2025-01-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257422', 'tblTempVendorCDR_20' ) start [2025-01-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257422', 'tblTempVendorCDR_20' ) end [2025-01-16 00:55:17] Production.INFO: ProcessCDR(1,14257422,1,1,2) [2025-01-16 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257422', 'tblTempUsageDetail_20' ) start [2025-01-16 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257422', 'tblTempUsageDetail_20' ) end [2025-01-16 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:55:20] Production.INFO: ==11183== Releasing lock... [2025-01-16 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:55:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:56:06 [end_date_ymd] => 2025-01-16 00:56:06 [RateCDR] => 1 ) [2025-01-16 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:56:06' and `end` < '2025-01-16 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:56:19] Production.INFO: count ==137 [2025-01-16 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-15 21:56:06 - End Time 2025-01-16 00:56:06 [2025-01-16 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257427', 'tblTempUsageDetail_20' ) start [2025-01-16 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257427', 'tblTempUsageDetail_20' ) end [2025-01-16 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257427', 'tblTempVendorCDR_20' ) start [2025-01-16 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257427', 'tblTempVendorCDR_20' ) end [2025-01-16 00:56:19] Production.INFO: ProcessCDR(1,14257427,1,1,2) [2025-01-16 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257427', 'tblTempUsageDetail_20' ) start [2025-01-16 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257427', 'tblTempUsageDetail_20' ) end [2025-01-16 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:56:22] Production.INFO: ==11295== Releasing lock... [2025-01-16 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:56:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:57:05 [end_date_ymd] => 2025-01-16 00:57:05 [RateCDR] => 1 ) [2025-01-16 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:57:05' and `end` < '2025-01-16 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:57:17] Production.INFO: count ==136 [2025-01-16 00:57:17] Production.ERROR: pbx CDR StartTime 2025-01-15 21:57:05 - End Time 2025-01-16 00:57:05 [2025-01-16 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257432', 'tblTempUsageDetail_20' ) start [2025-01-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257432', 'tblTempUsageDetail_20' ) end [2025-01-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257432', 'tblTempVendorCDR_20' ) start [2025-01-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257432', 'tblTempVendorCDR_20' ) end [2025-01-16 00:57:17] Production.INFO: ProcessCDR(1,14257432,1,1,2) [2025-01-16 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257432', 'tblTempUsageDetail_20' ) start [2025-01-16 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257432', 'tblTempUsageDetail_20' ) end [2025-01-16 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:57:20] Production.INFO: ==11369== Releasing lock... [2025-01-16 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:57:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:58:05 [end_date_ymd] => 2025-01-16 00:58:05 [RateCDR] => 1 ) [2025-01-16 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:58:05' and `end` < '2025-01-16 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:58:18] Production.INFO: count ==136 [2025-01-16 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:58:05 - End Time 2025-01-16 00:58:05 [2025-01-16 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257437', 'tblTempUsageDetail_20' ) start [2025-01-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257437', 'tblTempUsageDetail_20' ) end [2025-01-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257437', 'tblTempVendorCDR_20' ) start [2025-01-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257437', 'tblTempVendorCDR_20' ) end [2025-01-16 00:58:18] Production.INFO: ProcessCDR(1,14257437,1,1,2) [2025-01-16 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257437', 'tblTempUsageDetail_20' ) start [2025-01-16 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257437', 'tblTempUsageDetail_20' ) end [2025-01-16 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:58:21] Production.INFO: ==11439== Releasing lock... [2025-01-16 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 21:59:05 [end_date_ymd] => 2025-01-16 00:59:05 [RateCDR] => 1 ) [2025-01-16 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 21:59:05' and `end` < '2025-01-16 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 00:59:18] Production.INFO: count ==136 [2025-01-16 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 21:59:05 - End Time 2025-01-16 00:59:05 [2025-01-16 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257442', 'tblTempUsageDetail_20' ) start [2025-01-16 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257442', 'tblTempUsageDetail_20' ) end [2025-01-16 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257442', 'tblTempVendorCDR_20' ) start [2025-01-16 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257442', 'tblTempVendorCDR_20' ) end [2025-01-16 00:59:18] Production.INFO: ProcessCDR(1,14257442,1,1,2) [2025-01-16 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257442', 'tblTempUsageDetail_20' ) start [2025-01-16 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257442', 'tblTempUsageDetail_20' ) end [2025-01-16 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 00:59:21] Production.INFO: ==11514== Releasing lock... [2025-01-16 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 00:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:00:06 [end_date_ymd] => 2025-01-16 01:00:06 [RateCDR] => 1 ) [2025-01-16 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:00:06' and `end` < '2025-01-16 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:00:18] Production.INFO: count ==146 [2025-01-16 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:00:06 - End Time 2025-01-16 01:00:06 [2025-01-16 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257448', 'tblTempUsageDetail_20' ) start [2025-01-16 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257448', 'tblTempUsageDetail_20' ) end [2025-01-16 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257448', 'tblTempVendorCDR_20' ) start [2025-01-16 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257448', 'tblTempVendorCDR_20' ) end [2025-01-16 01:00:18] Production.INFO: ProcessCDR(1,14257448,1,1,2) [2025-01-16 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257448', 'tblTempUsageDetail_20' ) start [2025-01-16 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257448', 'tblTempUsageDetail_20' ) end [2025-01-16 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:00:21] Production.INFO: ==11594== Releasing lock... [2025-01-16 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:00:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:01:05 [end_date_ymd] => 2025-01-16 01:01:05 [RateCDR] => 1 ) [2025-01-16 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:01:05' and `end` < '2025-01-16 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:01:17] Production.INFO: count ==146 [2025-01-16 01:01:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:01:05 - End Time 2025-01-16 01:01:05 [2025-01-16 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257453', 'tblTempUsageDetail_20' ) start [2025-01-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257453', 'tblTempUsageDetail_20' ) end [2025-01-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257453', 'tblTempVendorCDR_20' ) start [2025-01-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257453', 'tblTempVendorCDR_20' ) end [2025-01-16 01:01:17] Production.INFO: ProcessCDR(1,14257453,1,1,2) [2025-01-16 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257453', 'tblTempUsageDetail_20' ) start [2025-01-16 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257453', 'tblTempUsageDetail_20' ) end [2025-01-16 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:01:20] Production.INFO: ==11690== Releasing lock... [2025-01-16 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:01:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:02:05 [end_date_ymd] => 2025-01-16 01:02:05 [RateCDR] => 1 ) [2025-01-16 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:02:05' and `end` < '2025-01-16 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:02:18] Production.INFO: count ==146 [2025-01-16 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:02:05 - End Time 2025-01-16 01:02:05 [2025-01-16 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257458', 'tblTempUsageDetail_20' ) start [2025-01-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257458', 'tblTempUsageDetail_20' ) end [2025-01-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257458', 'tblTempVendorCDR_20' ) start [2025-01-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257458', 'tblTempVendorCDR_20' ) end [2025-01-16 01:02:18] Production.INFO: ProcessCDR(1,14257458,1,1,2) [2025-01-16 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257458', 'tblTempUsageDetail_20' ) start [2025-01-16 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257458', 'tblTempUsageDetail_20' ) end [2025-01-16 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:02:22] Production.INFO: ==11803== Releasing lock... [2025-01-16 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:02:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:03:05 [end_date_ymd] => 2025-01-16 01:03:05 [RateCDR] => 1 ) [2025-01-16 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:03:05' and `end` < '2025-01-16 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:03:17] Production.INFO: count ==150 [2025-01-16 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:03:05 - End Time 2025-01-16 01:03:05 [2025-01-16 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257463', 'tblTempUsageDetail_20' ) start [2025-01-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257463', 'tblTempUsageDetail_20' ) end [2025-01-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257463', 'tblTempVendorCDR_20' ) start [2025-01-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257463', 'tblTempVendorCDR_20' ) end [2025-01-16 01:03:17] Production.INFO: ProcessCDR(1,14257463,1,1,2) [2025-01-16 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257463', 'tblTempUsageDetail_20' ) start [2025-01-16 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257463', 'tblTempUsageDetail_20' ) end [2025-01-16 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:03:20] Production.INFO: ==11912== Releasing lock... [2025-01-16 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:04:05 [end_date_ymd] => 2025-01-16 01:04:05 [RateCDR] => 1 ) [2025-01-16 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:04:05' and `end` < '2025-01-16 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:04:18] Production.INFO: count ==150 [2025-01-16 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:04:05 - End Time 2025-01-16 01:04:05 [2025-01-16 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257468', 'tblTempUsageDetail_20' ) start [2025-01-16 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257468', 'tblTempUsageDetail_20' ) end [2025-01-16 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257468', 'tblTempVendorCDR_20' ) start [2025-01-16 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257468', 'tblTempVendorCDR_20' ) end [2025-01-16 01:04:19] Production.INFO: ProcessCDR(1,14257468,1,1,2) [2025-01-16 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257468', 'tblTempUsageDetail_20' ) start [2025-01-16 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257468', 'tblTempUsageDetail_20' ) end [2025-01-16 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:04:22] Production.INFO: ==12029== Releasing lock... [2025-01-16 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:05:06 [end_date_ymd] => 2025-01-16 01:05:06 [RateCDR] => 1 ) [2025-01-16 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:05:06' and `end` < '2025-01-16 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:05:18] Production.INFO: count ==150 [2025-01-16 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:05:06 - End Time 2025-01-16 01:05:06 [2025-01-16 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257473', 'tblTempUsageDetail_20' ) start [2025-01-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257473', 'tblTempUsageDetail_20' ) end [2025-01-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257473', 'tblTempVendorCDR_20' ) start [2025-01-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257473', 'tblTempVendorCDR_20' ) end [2025-01-16 01:05:18] Production.INFO: ProcessCDR(1,14257473,1,1,2) [2025-01-16 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257473', 'tblTempUsageDetail_20' ) start [2025-01-16 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257473', 'tblTempUsageDetail_20' ) end [2025-01-16 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:05:21] Production.INFO: ==12153== Releasing lock... [2025-01-16 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:06:05 [end_date_ymd] => 2025-01-16 01:06:05 [RateCDR] => 1 ) [2025-01-16 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:06:05' and `end` < '2025-01-16 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:06:17] Production.INFO: count ==148 [2025-01-16 01:06:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:06:05 - End Time 2025-01-16 01:06:05 [2025-01-16 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257478', 'tblTempUsageDetail_20' ) start [2025-01-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257478', 'tblTempUsageDetail_20' ) end [2025-01-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257478', 'tblTempVendorCDR_20' ) start [2025-01-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257478', 'tblTempVendorCDR_20' ) end [2025-01-16 01:06:17] Production.INFO: ProcessCDR(1,14257478,1,1,2) [2025-01-16 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257478', 'tblTempUsageDetail_20' ) start [2025-01-16 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257478', 'tblTempUsageDetail_20' ) end [2025-01-16 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:06:20] Production.INFO: ==12269== Releasing lock... [2025-01-16 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:06:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:07:05 [end_date_ymd] => 2025-01-16 01:07:05 [RateCDR] => 1 ) [2025-01-16 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-01-15 22:07:05' and `end` < '2025-01-16 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-01-16 01:07:18] Production.INFO: count ==147 [2025-01-16 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:07:05 - End Time 2025-01-16 01:07:05 [2025-01-16 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257483', 'tblTempUsageDetail_20' ) start [2025-01-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257483', 'tblTempUsageDetail_20' ) end [2025-01-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257483', 'tblTempVendorCDR_20' ) start [2025-01-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257483', 'tblTempVendorCDR_20' ) end [2025-01-16 01:07:18] Production.INFO: ProcessCDR(1,14257483,1,1,2) [2025-01-16 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257483', 'tblTempUsageDetail_20' ) start [2025-01-16 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257483', 'tblTempUsageDetail_20' ) end [2025-01-16 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:07:21] Production.INFO: ==12389== Releasing lock... [2025-01-16 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:08:04 [end_date_ymd] => 2025-01-16 01:08:04 [RateCDR] => 1 ) [2025-01-16 01:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:08:04' and `end` < '2025-01-16 01:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:08:18] Production.INFO: count ==147 [2025-01-16 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:08:04 - End Time 2025-01-16 01:08:04 [2025-01-16 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257488', 'tblTempUsageDetail_20' ) start [2025-01-16 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257488', 'tblTempUsageDetail_20' ) end [2025-01-16 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257488', 'tblTempVendorCDR_20' ) start [2025-01-16 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257488', 'tblTempVendorCDR_20' ) end [2025-01-16 01:08:18] Production.INFO: ProcessCDR(1,14257488,1,1,2) [2025-01-16 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257488', 'tblTempUsageDetail_20' ) start [2025-01-16 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257488', 'tblTempUsageDetail_20' ) end [2025-01-16 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:08:21] Production.INFO: ==12509== Releasing lock... [2025-01-16 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:09:05 [end_date_ymd] => 2025-01-16 01:09:05 [RateCDR] => 1 ) [2025-01-16 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:09:05' and `end` < '2025-01-16 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:09:18] Production.INFO: count ==147 [2025-01-16 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:09:05 - End Time 2025-01-16 01:09:05 [2025-01-16 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257493', 'tblTempUsageDetail_20' ) start [2025-01-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257493', 'tblTempUsageDetail_20' ) end [2025-01-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257493', 'tblTempVendorCDR_20' ) start [2025-01-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257493', 'tblTempVendorCDR_20' ) end [2025-01-16 01:09:18] Production.INFO: ProcessCDR(1,14257493,1,1,2) [2025-01-16 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257493', 'tblTempUsageDetail_20' ) start [2025-01-16 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257493', 'tblTempUsageDetail_20' ) end [2025-01-16 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:09:21] Production.INFO: ==12632== Releasing lock... [2025-01-16 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:10:05 [end_date_ymd] => 2025-01-16 01:10:05 [RateCDR] => 1 ) [2025-01-16 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:10:05' and `end` < '2025-01-16 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:10:17] Production.INFO: count ==153 [2025-01-16 01:10:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:10:05 - End Time 2025-01-16 01:10:05 [2025-01-16 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257499', 'tblTempUsageDetail_20' ) start [2025-01-16 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257499', 'tblTempUsageDetail_20' ) end [2025-01-16 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257499', 'tblTempVendorCDR_20' ) start [2025-01-16 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257499', 'tblTempVendorCDR_20' ) end [2025-01-16 01:10:17] Production.INFO: ProcessCDR(1,14257499,1,1,2) [2025-01-16 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257499', 'tblTempUsageDetail_20' ) start [2025-01-16 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257499', 'tblTempUsageDetail_20' ) end [2025-01-16 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:10:21] Production.INFO: ==12749== Releasing lock... [2025-01-16 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:11:05 [end_date_ymd] => 2025-01-16 01:11:05 [RateCDR] => 1 ) [2025-01-16 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:11:05' and `end` < '2025-01-16 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:11:17] Production.INFO: count ==157 [2025-01-16 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:11:05 - End Time 2025-01-16 01:11:05 [2025-01-16 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257504', 'tblTempUsageDetail_20' ) start [2025-01-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257504', 'tblTempUsageDetail_20' ) end [2025-01-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257504', 'tblTempVendorCDR_20' ) start [2025-01-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257504', 'tblTempVendorCDR_20' ) end [2025-01-16 01:11:17] Production.INFO: ProcessCDR(1,14257504,1,1,2) [2025-01-16 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257504', 'tblTempUsageDetail_20' ) start [2025-01-16 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257504', 'tblTempUsageDetail_20' ) end [2025-01-16 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:11:21] Production.INFO: ==12871== Releasing lock... [2025-01-16 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:12:05 [end_date_ymd] => 2025-01-16 01:12:05 [RateCDR] => 1 ) [2025-01-16 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:12:05' and `end` < '2025-01-16 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:12:19] Production.INFO: count ==155 [2025-01-16 01:12:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:12:05 - End Time 2025-01-16 01:12:05 [2025-01-16 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257509', 'tblTempUsageDetail_20' ) start [2025-01-16 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257509', 'tblTempUsageDetail_20' ) end [2025-01-16 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257509', 'tblTempVendorCDR_20' ) start [2025-01-16 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257509', 'tblTempVendorCDR_20' ) end [2025-01-16 01:12:19] Production.INFO: ProcessCDR(1,14257509,1,1,2) [2025-01-16 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257509', 'tblTempUsageDetail_20' ) start [2025-01-16 01:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257509', 'tblTempUsageDetail_20' ) end [2025-01-16 01:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:12:24] Production.INFO: ==13027== Releasing lock... [2025-01-16 01:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:12:24] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:13:05 [end_date_ymd] => 2025-01-16 01:13:05 [RateCDR] => 1 ) [2025-01-16 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:13:05' and `end` < '2025-01-16 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:13:18] Production.INFO: count ==154 [2025-01-16 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:13:05 - End Time 2025-01-16 01:13:05 [2025-01-16 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257514', 'tblTempUsageDetail_20' ) start [2025-01-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257514', 'tblTempUsageDetail_20' ) end [2025-01-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257514', 'tblTempVendorCDR_20' ) start [2025-01-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257514', 'tblTempVendorCDR_20' ) end [2025-01-16 01:13:18] Production.INFO: ProcessCDR(1,14257514,1,1,2) [2025-01-16 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257514', 'tblTempUsageDetail_20' ) start [2025-01-16 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257514', 'tblTempUsageDetail_20' ) end [2025-01-16 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:13:21] Production.INFO: ==13136== Releasing lock... [2025-01-16 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:14:05 [end_date_ymd] => 2025-01-16 01:14:05 [RateCDR] => 1 ) [2025-01-16 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:14:05' and `end` < '2025-01-16 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:14:19] Production.INFO: count ==152 [2025-01-16 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:14:05 - End Time 2025-01-16 01:14:05 [2025-01-16 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257519', 'tblTempUsageDetail_20' ) start [2025-01-16 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257519', 'tblTempUsageDetail_20' ) end [2025-01-16 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257519', 'tblTempVendorCDR_20' ) start [2025-01-16 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257519', 'tblTempVendorCDR_20' ) end [2025-01-16 01:14:19] Production.INFO: ProcessCDR(1,14257519,1,1,2) [2025-01-16 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257519', 'tblTempUsageDetail_20' ) start [2025-01-16 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257519', 'tblTempUsageDetail_20' ) end [2025-01-16 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:14:22] Production.INFO: ==13251== Releasing lock... [2025-01-16 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:15:05 [end_date_ymd] => 2025-01-16 01:15:05 [RateCDR] => 1 ) [2025-01-16 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:15:05' and `end` < '2025-01-16 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:15:17] Production.INFO: count ==152 [2025-01-16 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:15:05 - End Time 2025-01-16 01:15:05 [2025-01-16 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257524', 'tblTempUsageDetail_20' ) start [2025-01-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257524', 'tblTempUsageDetail_20' ) end [2025-01-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257524', 'tblTempVendorCDR_20' ) start [2025-01-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257524', 'tblTempVendorCDR_20' ) end [2025-01-16 01:15:17] Production.INFO: ProcessCDR(1,14257524,1,1,2) [2025-01-16 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257524', 'tblTempUsageDetail_20' ) start [2025-01-16 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257524', 'tblTempUsageDetail_20' ) end [2025-01-16 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:15:20] Production.INFO: ==13361== Releasing lock... [2025-01-16 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:15:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:16:06 [end_date_ymd] => 2025-01-16 01:16:06 [RateCDR] => 1 ) [2025-01-16 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:16:06' and `end` < '2025-01-16 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:16:19] Production.INFO: count ==152 [2025-01-16 01:16:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:16:06 - End Time 2025-01-16 01:16:06 [2025-01-16 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257529', 'tblTempUsageDetail_20' ) start [2025-01-16 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257529', 'tblTempUsageDetail_20' ) end [2025-01-16 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257529', 'tblTempVendorCDR_20' ) start [2025-01-16 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257529', 'tblTempVendorCDR_20' ) end [2025-01-16 01:16:19] Production.INFO: ProcessCDR(1,14257529,1,1,2) [2025-01-16 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257529', 'tblTempUsageDetail_20' ) start [2025-01-16 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257529', 'tblTempUsageDetail_20' ) end [2025-01-16 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:16:22] Production.INFO: ==13471== Releasing lock... [2025-01-16 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:17:05 [end_date_ymd] => 2025-01-16 01:17:05 [RateCDR] => 1 ) [2025-01-16 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:17:05' and `end` < '2025-01-16 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:17:17] Production.INFO: count ==156 [2025-01-16 01:17:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:17:05 - End Time 2025-01-16 01:17:05 [2025-01-16 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257534', 'tblTempUsageDetail_20' ) start [2025-01-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257534', 'tblTempUsageDetail_20' ) end [2025-01-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257534', 'tblTempVendorCDR_20' ) start [2025-01-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257534', 'tblTempVendorCDR_20' ) end [2025-01-16 01:17:17] Production.INFO: ProcessCDR(1,14257534,1,1,2) [2025-01-16 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257534', 'tblTempUsageDetail_20' ) start [2025-01-16 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257534', 'tblTempUsageDetail_20' ) end [2025-01-16 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:17:20] Production.INFO: ==13581== Releasing lock... [2025-01-16 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:17:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:18:06 [end_date_ymd] => 2025-01-16 01:18:06 [RateCDR] => 1 ) [2025-01-16 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:18:06' and `end` < '2025-01-16 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:18:19] Production.INFO: count ==156 [2025-01-16 01:18:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:18:06 - End Time 2025-01-16 01:18:06 [2025-01-16 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257539', 'tblTempUsageDetail_20' ) start [2025-01-16 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257539', 'tblTempUsageDetail_20' ) end [2025-01-16 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257539', 'tblTempVendorCDR_20' ) start [2025-01-16 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257539', 'tblTempVendorCDR_20' ) end [2025-01-16 01:18:19] Production.INFO: ProcessCDR(1,14257539,1,1,2) [2025-01-16 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257539', 'tblTempUsageDetail_20' ) start [2025-01-16 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257539', 'tblTempUsageDetail_20' ) end [2025-01-16 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:18:22] Production.INFO: ==13696== Releasing lock... [2025-01-16 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:18:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:19:05 [end_date_ymd] => 2025-01-16 01:19:05 [RateCDR] => 1 ) [2025-01-16 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:19:05' and `end` < '2025-01-16 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:19:17] Production.INFO: count ==155 [2025-01-16 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:19:05 - End Time 2025-01-16 01:19:05 [2025-01-16 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257544', 'tblTempUsageDetail_20' ) start [2025-01-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257544', 'tblTempUsageDetail_20' ) end [2025-01-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257544', 'tblTempVendorCDR_20' ) start [2025-01-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257544', 'tblTempVendorCDR_20' ) end [2025-01-16 01:19:17] Production.INFO: ProcessCDR(1,14257544,1,1,2) [2025-01-16 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257544', 'tblTempUsageDetail_20' ) start [2025-01-16 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257544', 'tblTempUsageDetail_20' ) end [2025-01-16 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:19:21] Production.INFO: ==13789== Releasing lock... [2025-01-16 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:20:06 [end_date_ymd] => 2025-01-16 01:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 22:20:06' and `end` < '2025-01-16 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-01-16 01:20:18] Production.INFO: count ==153 [2025-01-16 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:20:06 - End Time 2025-01-16 01:20:06 [2025-01-16 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257550', 'tblTempUsageDetail_20' ) start [2025-01-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257550', 'tblTempUsageDetail_20' ) end [2025-01-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257550', 'tblTempVendorCDR_20' ) start [2025-01-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257550', 'tblTempVendorCDR_20' ) end [2025-01-16 01:20:18] Production.INFO: ProcessCDR(1,14257550,1,1,2) [2025-01-16 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257550', 'tblTempUsageDetail_20' ) start [2025-01-16 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257550', 'tblTempUsageDetail_20' ) end [2025-01-16 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:20:22] Production.INFO: ==13895== Releasing lock... [2025-01-16 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:20:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:21:04 [end_date_ymd] => 2025-01-16 01:21:04 [RateCDR] => 1 ) [2025-01-16 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:21:04' and `end` < '2025-01-16 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:21:17] Production.INFO: count ==153 [2025-01-16 01:21:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:21:04 - End Time 2025-01-16 01:21:04 [2025-01-16 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257555', 'tblTempUsageDetail_20' ) start [2025-01-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257555', 'tblTempUsageDetail_20' ) end [2025-01-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257555', 'tblTempVendorCDR_20' ) start [2025-01-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257555', 'tblTempVendorCDR_20' ) end [2025-01-16 01:21:17] Production.INFO: ProcessCDR(1,14257555,1,1,2) [2025-01-16 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257555', 'tblTempUsageDetail_20' ) start [2025-01-16 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257555', 'tblTempUsageDetail_20' ) end [2025-01-16 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:21:20] Production.INFO: ==13997== Releasing lock... [2025-01-16 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:21:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:22:05 [end_date_ymd] => 2025-01-16 01:22:05 [RateCDR] => 1 ) [2025-01-16 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:22:05' and `end` < '2025-01-16 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:22:18] Production.INFO: count ==153 [2025-01-16 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:22:05 - End Time 2025-01-16 01:22:05 [2025-01-16 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257560', 'tblTempUsageDetail_20' ) start [2025-01-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257560', 'tblTempUsageDetail_20' ) end [2025-01-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257560', 'tblTempVendorCDR_20' ) start [2025-01-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257560', 'tblTempVendorCDR_20' ) end [2025-01-16 01:22:18] Production.INFO: ProcessCDR(1,14257560,1,1,2) [2025-01-16 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257560', 'tblTempUsageDetail_20' ) start [2025-01-16 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257560', 'tblTempUsageDetail_20' ) end [2025-01-16 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:22:21] Production.INFO: ==14099== Releasing lock... [2025-01-16 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:23:06 [end_date_ymd] => 2025-01-16 01:23:06 [RateCDR] => 1 ) [2025-01-16 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:23:06' and `end` < '2025-01-16 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:23:18] Production.INFO: count ==153 [2025-01-16 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:23:06 - End Time 2025-01-16 01:23:06 [2025-01-16 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257565', 'tblTempUsageDetail_20' ) start [2025-01-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257565', 'tblTempUsageDetail_20' ) end [2025-01-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257565', 'tblTempVendorCDR_20' ) start [2025-01-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257565', 'tblTempVendorCDR_20' ) end [2025-01-16 01:23:18] Production.INFO: ProcessCDR(1,14257565,1,1,2) [2025-01-16 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257565', 'tblTempUsageDetail_20' ) start [2025-01-16 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257565', 'tblTempUsageDetail_20' ) end [2025-01-16 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:23:22] Production.INFO: ==14199== Releasing lock... [2025-01-16 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:23:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:24:05 [end_date_ymd] => 2025-01-16 01:24:05 [RateCDR] => 1 ) [2025-01-16 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-01-15 22:24:05' and `end` < '2025-01-16 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-01-16 01:24:18] Production.INFO: count ==153 [2025-01-16 01:24:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:24:05 - End Time 2025-01-16 01:24:05 [2025-01-16 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257570', 'tblTempUsageDetail_20' ) start [2025-01-16 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257570', 'tblTempUsageDetail_20' ) end [2025-01-16 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257570', 'tblTempVendorCDR_20' ) start [2025-01-16 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257570', 'tblTempVendorCDR_20' ) end [2025-01-16 01:24:19] Production.INFO: ProcessCDR(1,14257570,1,1,2) [2025-01-16 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257570', 'tblTempUsageDetail_20' ) start [2025-01-16 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257570', 'tblTempUsageDetail_20' ) end [2025-01-16 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:24:22] Production.INFO: ==14302== Releasing lock... [2025-01-16 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:24:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:25:05 [end_date_ymd] => 2025-01-16 01:25:05 [RateCDR] => 1 ) [2025-01-16 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:25:05' and `end` < '2025-01-16 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:25:18] Production.INFO: count ==153 [2025-01-16 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:25:05 - End Time 2025-01-16 01:25:05 [2025-01-16 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257575', 'tblTempUsageDetail_20' ) start [2025-01-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257575', 'tblTempUsageDetail_20' ) end [2025-01-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257575', 'tblTempVendorCDR_20' ) start [2025-01-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257575', 'tblTempVendorCDR_20' ) end [2025-01-16 01:25:18] Production.INFO: ProcessCDR(1,14257575,1,1,2) [2025-01-16 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257575', 'tblTempUsageDetail_20' ) start [2025-01-16 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257575', 'tblTempUsageDetail_20' ) end [2025-01-16 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:25:21] Production.INFO: ==14403== Releasing lock... [2025-01-16 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:26:05 [end_date_ymd] => 2025-01-16 01:26:05 [RateCDR] => 1 ) [2025-01-16 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:26:05' and `end` < '2025-01-16 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:26:18] Production.INFO: count ==154 [2025-01-16 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:26:05 - End Time 2025-01-16 01:26:05 [2025-01-16 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257580', 'tblTempUsageDetail_20' ) start [2025-01-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257580', 'tblTempUsageDetail_20' ) end [2025-01-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257580', 'tblTempVendorCDR_20' ) start [2025-01-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257580', 'tblTempVendorCDR_20' ) end [2025-01-16 01:26:18] Production.INFO: ProcessCDR(1,14257580,1,1,2) [2025-01-16 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257580', 'tblTempUsageDetail_20' ) start [2025-01-16 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257580', 'tblTempUsageDetail_20' ) end [2025-01-16 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:26:23] Production.INFO: ==14500== Releasing lock... [2025-01-16 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:26:23] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:27:05 [end_date_ymd] => 2025-01-16 01:27:05 [RateCDR] => 1 ) [2025-01-16 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:27:05' and `end` < '2025-01-16 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:27:19] Production.INFO: count ==154 [2025-01-16 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:27:05 - End Time 2025-01-16 01:27:05 [2025-01-16 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257585', 'tblTempUsageDetail_20' ) start [2025-01-16 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257585', 'tblTempUsageDetail_20' ) end [2025-01-16 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257585', 'tblTempVendorCDR_20' ) start [2025-01-16 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257585', 'tblTempVendorCDR_20' ) end [2025-01-16 01:27:19] Production.INFO: ProcessCDR(1,14257585,1,1,2) [2025-01-16 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257585', 'tblTempUsageDetail_20' ) start [2025-01-16 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257585', 'tblTempUsageDetail_20' ) end [2025-01-16 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:27:22] Production.INFO: ==14594== Releasing lock... [2025-01-16 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:28:05 [end_date_ymd] => 2025-01-16 01:28:05 [RateCDR] => 1 ) [2025-01-16 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:28:05' and `end` < '2025-01-16 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:28:17] Production.INFO: count ==154 [2025-01-16 01:28:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:28:05 - End Time 2025-01-16 01:28:05 [2025-01-16 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257590', 'tblTempUsageDetail_20' ) start [2025-01-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257590', 'tblTempUsageDetail_20' ) end [2025-01-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257590', 'tblTempVendorCDR_20' ) start [2025-01-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257590', 'tblTempVendorCDR_20' ) end [2025-01-16 01:28:17] Production.INFO: ProcessCDR(1,14257590,1,1,2) [2025-01-16 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257590', 'tblTempUsageDetail_20' ) start [2025-01-16 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257590', 'tblTempUsageDetail_20' ) end [2025-01-16 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:28:20] Production.INFO: ==14726== Releasing lock... [2025-01-16 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:28:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:29:06 [end_date_ymd] => 2025-01-16 01:29:06 [RateCDR] => 1 ) [2025-01-16 01: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-01-15 22:29:06' and `end` < '2025-01-16 01: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-01-16 01:29:18] Production.INFO: count ==155 [2025-01-16 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:29:06 - End Time 2025-01-16 01:29:06 [2025-01-16 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257595', 'tblTempUsageDetail_20' ) start [2025-01-16 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257595', 'tblTempUsageDetail_20' ) end [2025-01-16 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257595', 'tblTempVendorCDR_20' ) start [2025-01-16 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257595', 'tblTempVendorCDR_20' ) end [2025-01-16 01:29:18] Production.INFO: ProcessCDR(1,14257595,1,1,2) [2025-01-16 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257595', 'tblTempUsageDetail_20' ) start [2025-01-16 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257595', 'tblTempUsageDetail_20' ) end [2025-01-16 01:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:29:23] Production.INFO: ==14821== Releasing lock... [2025-01-16 01:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:29:23] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:30:06 [end_date_ymd] => 2025-01-16 01:30:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 22:30:06' and `end` < '2025-01-16 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-01-16 01:30:18] Production.INFO: count ==162 [2025-01-16 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:30:06 - End Time 2025-01-16 01:30:06 [2025-01-16 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257601', 'tblTempUsageDetail_20' ) start [2025-01-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257601', 'tblTempUsageDetail_20' ) end [2025-01-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257601', 'tblTempVendorCDR_20' ) start [2025-01-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257601', 'tblTempVendorCDR_20' ) end [2025-01-16 01:30:18] Production.INFO: ProcessCDR(1,14257601,1,1,2) [2025-01-16 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257601', 'tblTempUsageDetail_20' ) start [2025-01-16 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257601', 'tblTempUsageDetail_20' ) end [2025-01-16 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:30:22] Production.INFO: ==14917== Releasing lock... [2025-01-16 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:31:05 [end_date_ymd] => 2025-01-16 01:31:05 [RateCDR] => 1 ) [2025-01-16 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:31:05' and `end` < '2025-01-16 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:31:18] Production.INFO: count ==164 [2025-01-16 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:31:05 - End Time 2025-01-16 01:31:05 [2025-01-16 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257606', 'tblTempUsageDetail_20' ) start [2025-01-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257606', 'tblTempUsageDetail_20' ) end [2025-01-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257606', 'tblTempVendorCDR_20' ) start [2025-01-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257606', 'tblTempVendorCDR_20' ) end [2025-01-16 01:31:18] Production.INFO: ProcessCDR(1,14257606,1,1,2) [2025-01-16 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257606', 'tblTempUsageDetail_20' ) start [2025-01-16 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257606', 'tblTempUsageDetail_20' ) end [2025-01-16 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:31:21] Production.INFO: ==15018== Releasing lock... [2025-01-16 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:32:05 [end_date_ymd] => 2025-01-16 01:32:05 [RateCDR] => 1 ) [2025-01-16 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:32:05' and `end` < '2025-01-16 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:32:18] Production.INFO: count ==164 [2025-01-16 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:32:05 - End Time 2025-01-16 01:32:05 [2025-01-16 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257611', 'tblTempUsageDetail_20' ) start [2025-01-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257611', 'tblTempUsageDetail_20' ) end [2025-01-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257611', 'tblTempVendorCDR_20' ) start [2025-01-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257611', 'tblTempVendorCDR_20' ) end [2025-01-16 01:32:18] Production.INFO: ProcessCDR(1,14257611,1,1,2) [2025-01-16 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257611', 'tblTempUsageDetail_20' ) start [2025-01-16 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257611', 'tblTempUsageDetail_20' ) end [2025-01-16 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:32:22] Production.INFO: ==15112== Releasing lock... [2025-01-16 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:32:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:33:04 [end_date_ymd] => 2025-01-16 01:33:04 [RateCDR] => 1 ) [2025-01-16 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:33:04' and `end` < '2025-01-16 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:33:17] Production.INFO: count ==163 [2025-01-16 01:33:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:33:04 - End Time 2025-01-16 01:33:04 [2025-01-16 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257616', 'tblTempUsageDetail_20' ) start [2025-01-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257616', 'tblTempUsageDetail_20' ) end [2025-01-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257616', 'tblTempVendorCDR_20' ) start [2025-01-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257616', 'tblTempVendorCDR_20' ) end [2025-01-16 01:33:17] Production.INFO: ProcessCDR(1,14257616,1,1,2) [2025-01-16 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257616', 'tblTempUsageDetail_20' ) start [2025-01-16 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257616', 'tblTempUsageDetail_20' ) end [2025-01-16 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:33:20] Production.INFO: ==15212== Releasing lock... [2025-01-16 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:34:05 [end_date_ymd] => 2025-01-16 01:34:05 [RateCDR] => 1 ) [2025-01-16 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:34:05' and `end` < '2025-01-16 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:34:17] Production.INFO: count ==163 [2025-01-16 01:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:34:05 - End Time 2025-01-16 01:34:05 [2025-01-16 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257621', 'tblTempUsageDetail_20' ) start [2025-01-16 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257621', 'tblTempUsageDetail_20' ) end [2025-01-16 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257621', 'tblTempVendorCDR_20' ) start [2025-01-16 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257621', 'tblTempVendorCDR_20' ) end [2025-01-16 01:34:17] Production.INFO: ProcessCDR(1,14257621,1,1,2) [2025-01-16 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257621', 'tblTempUsageDetail_20' ) start [2025-01-16 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257621', 'tblTempUsageDetail_20' ) end [2025-01-16 01:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:34:20] Production.INFO: ==15305== Releasing lock... [2025-01-16 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:34:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:35:05 [end_date_ymd] => 2025-01-16 01:35:05 [RateCDR] => 1 ) [2025-01-16 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:35:05' and `end` < '2025-01-16 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:35:17] Production.INFO: count ==163 [2025-01-16 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:35:05 - End Time 2025-01-16 01:35:05 [2025-01-16 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257626', 'tblTempUsageDetail_20' ) start [2025-01-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257626', 'tblTempUsageDetail_20' ) end [2025-01-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257626', 'tblTempVendorCDR_20' ) start [2025-01-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257626', 'tblTempVendorCDR_20' ) end [2025-01-16 01:35:17] Production.INFO: ProcessCDR(1,14257626,1,1,2) [2025-01-16 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257626', 'tblTempUsageDetail_20' ) start [2025-01-16 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257626', 'tblTempUsageDetail_20' ) end [2025-01-16 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:35:20] Production.INFO: ==15400== Releasing lock... [2025-01-16 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:36:05 [end_date_ymd] => 2025-01-16 01:36:05 [RateCDR] => 1 ) [2025-01-16 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:36:05' and `end` < '2025-01-16 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:36:17] Production.INFO: count ==165 [2025-01-16 01:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:36:05 - End Time 2025-01-16 01:36:05 [2025-01-16 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257631', 'tblTempUsageDetail_20' ) start [2025-01-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257631', 'tblTempUsageDetail_20' ) end [2025-01-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257631', 'tblTempVendorCDR_20' ) start [2025-01-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257631', 'tblTempVendorCDR_20' ) end [2025-01-16 01:36:17] Production.INFO: ProcessCDR(1,14257631,1,1,2) [2025-01-16 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257631', 'tblTempUsageDetail_20' ) start [2025-01-16 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257631', 'tblTempUsageDetail_20' ) end [2025-01-16 01:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:36:20] Production.INFO: ==15494== Releasing lock... [2025-01-16 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:36:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:37:05 [end_date_ymd] => 2025-01-16 01:37:05 [RateCDR] => 1 ) [2025-01-16 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:37:05' and `end` < '2025-01-16 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:37:18] Production.INFO: count ==169 [2025-01-16 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:37:05 - End Time 2025-01-16 01:37:05 [2025-01-16 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257636', 'tblTempUsageDetail_20' ) start [2025-01-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257636', 'tblTempUsageDetail_20' ) end [2025-01-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257636', 'tblTempVendorCDR_20' ) start [2025-01-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257636', 'tblTempVendorCDR_20' ) end [2025-01-16 01:37:18] Production.INFO: ProcessCDR(1,14257636,1,1,2) [2025-01-16 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257636', 'tblTempUsageDetail_20' ) start [2025-01-16 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257636', 'tblTempUsageDetail_20' ) end [2025-01-16 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:37:21] Production.INFO: ==15590== Releasing lock... [2025-01-16 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:38:04 [end_date_ymd] => 2025-01-16 01:38:04 [RateCDR] => 1 ) [2025-01-16 01:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:38:04' and `end` < '2025-01-16 01:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:38:17] Production.INFO: count ==165 [2025-01-16 01:38:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:38:04 - End Time 2025-01-16 01:38:04 [2025-01-16 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257641', 'tblTempUsageDetail_20' ) start [2025-01-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257641', 'tblTempUsageDetail_20' ) end [2025-01-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257641', 'tblTempVendorCDR_20' ) start [2025-01-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257641', 'tblTempVendorCDR_20' ) end [2025-01-16 01:38:17] Production.INFO: ProcessCDR(1,14257641,1,1,2) [2025-01-16 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257641', 'tblTempUsageDetail_20' ) start [2025-01-16 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257641', 'tblTempUsageDetail_20' ) end [2025-01-16 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:38:20] Production.INFO: ==15682== Releasing lock... [2025-01-16 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:38:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:39:05 [end_date_ymd] => 2025-01-16 01:39:05 [RateCDR] => 1 ) [2025-01-16 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:39:05' and `end` < '2025-01-16 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:39:19] Production.INFO: count ==164 [2025-01-16 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:39:05 - End Time 2025-01-16 01:39:05 [2025-01-16 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257646', 'tblTempUsageDetail_20' ) start [2025-01-16 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257646', 'tblTempUsageDetail_20' ) end [2025-01-16 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257646', 'tblTempVendorCDR_20' ) start [2025-01-16 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257646', 'tblTempVendorCDR_20' ) end [2025-01-16 01:39:19] Production.INFO: ProcessCDR(1,14257646,1,1,2) [2025-01-16 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257646', 'tblTempUsageDetail_20' ) start [2025-01-16 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257646', 'tblTempUsageDetail_20' ) end [2025-01-16 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:39:22] Production.INFO: ==15776== Releasing lock... [2025-01-16 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:39:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:40:05 [end_date_ymd] => 2025-01-16 01:40:05 [RateCDR] => 1 ) [2025-01-16 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:40:05' and `end` < '2025-01-16 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:40:18] Production.INFO: count ==164 [2025-01-16 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:40:05 - End Time 2025-01-16 01:40:05 [2025-01-16 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257652', 'tblTempUsageDetail_20' ) start [2025-01-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257652', 'tblTempUsageDetail_20' ) end [2025-01-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257652', 'tblTempVendorCDR_20' ) start [2025-01-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257652', 'tblTempVendorCDR_20' ) end [2025-01-16 01:40:18] Production.INFO: ProcessCDR(1,14257652,1,1,2) [2025-01-16 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257652', 'tblTempUsageDetail_20' ) start [2025-01-16 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257652', 'tblTempUsageDetail_20' ) end [2025-01-16 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:40:21] Production.INFO: ==15858== Releasing lock... [2025-01-16 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:41:05 [end_date_ymd] => 2025-01-16 01:41:05 [RateCDR] => 1 ) [2025-01-16 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:41:05' and `end` < '2025-01-16 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:41:19] Production.INFO: count ==165 [2025-01-16 01:41:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:41:05 - End Time 2025-01-16 01:41:05 [2025-01-16 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257657', 'tblTempUsageDetail_20' ) start [2025-01-16 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257657', 'tblTempUsageDetail_20' ) end [2025-01-16 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257657', 'tblTempVendorCDR_20' ) start [2025-01-16 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257657', 'tblTempVendorCDR_20' ) end [2025-01-16 01:41:19] Production.INFO: ProcessCDR(1,14257657,1,1,2) [2025-01-16 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257657', 'tblTempUsageDetail_20' ) start [2025-01-16 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257657', 'tblTempUsageDetail_20' ) end [2025-01-16 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:41:22] Production.INFO: ==15933== Releasing lock... [2025-01-16 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:41:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:42:05 [end_date_ymd] => 2025-01-16 01:42:05 [RateCDR] => 1 ) [2025-01-16 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:42:05' and `end` < '2025-01-16 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:42:17] Production.INFO: count ==165 [2025-01-16 01:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:42:05 - End Time 2025-01-16 01:42:05 [2025-01-16 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257662', 'tblTempUsageDetail_20' ) start [2025-01-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257662', 'tblTempUsageDetail_20' ) end [2025-01-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257662', 'tblTempVendorCDR_20' ) start [2025-01-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257662', 'tblTempVendorCDR_20' ) end [2025-01-16 01:42:17] Production.INFO: ProcessCDR(1,14257662,1,1,2) [2025-01-16 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257662', 'tblTempUsageDetail_20' ) start [2025-01-16 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257662', 'tblTempUsageDetail_20' ) end [2025-01-16 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:42:21] Production.INFO: ==16001== Releasing lock... [2025-01-16 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:43:05 [end_date_ymd] => 2025-01-16 01:43:05 [RateCDR] => 1 ) [2025-01-16 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:43:05' and `end` < '2025-01-16 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:43:18] Production.INFO: count ==165 [2025-01-16 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:43:05 - End Time 2025-01-16 01:43:05 [2025-01-16 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257667', 'tblTempUsageDetail_20' ) start [2025-01-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257667', 'tblTempUsageDetail_20' ) end [2025-01-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257667', 'tblTempVendorCDR_20' ) start [2025-01-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257667', 'tblTempVendorCDR_20' ) end [2025-01-16 01:43:18] Production.INFO: ProcessCDR(1,14257667,1,1,2) [2025-01-16 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257667', 'tblTempUsageDetail_20' ) start [2025-01-16 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257667', 'tblTempUsageDetail_20' ) end [2025-01-16 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:43:21] Production.INFO: ==16118== Releasing lock... [2025-01-16 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:44:05 [end_date_ymd] => 2025-01-16 01:44:05 [RateCDR] => 1 ) [2025-01-16 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:44:05' and `end` < '2025-01-16 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:44:17] Production.INFO: count ==165 [2025-01-16 01:44:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:44:05 - End Time 2025-01-16 01:44:05 [2025-01-16 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257672', 'tblTempUsageDetail_20' ) start [2025-01-16 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257672', 'tblTempUsageDetail_20' ) end [2025-01-16 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257672', 'tblTempVendorCDR_20' ) start [2025-01-16 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257672', 'tblTempVendorCDR_20' ) end [2025-01-16 01:44:17] Production.INFO: ProcessCDR(1,14257672,1,1,2) [2025-01-16 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257672', 'tblTempUsageDetail_20' ) start [2025-01-16 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257672', 'tblTempUsageDetail_20' ) end [2025-01-16 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:44:20] Production.INFO: ==16189== Releasing lock... [2025-01-16 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:45:05 [end_date_ymd] => 2025-01-16 01:45:05 [RateCDR] => 1 ) [2025-01-16 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:45:05' and `end` < '2025-01-16 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:45:17] Production.INFO: count ==165 [2025-01-16 01:45:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:45:05 - End Time 2025-01-16 01:45:05 [2025-01-16 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257677', 'tblTempUsageDetail_20' ) start [2025-01-16 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257677', 'tblTempUsageDetail_20' ) end [2025-01-16 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257677', 'tblTempVendorCDR_20' ) start [2025-01-16 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257677', 'tblTempVendorCDR_20' ) end [2025-01-16 01:45:17] Production.INFO: ProcessCDR(1,14257677,1,1,2) [2025-01-16 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257677', 'tblTempUsageDetail_20' ) start [2025-01-16 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257677', 'tblTempUsageDetail_20' ) end [2025-01-16 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:45:21] Production.INFO: ==16259== Releasing lock... [2025-01-16 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:46:04 [end_date_ymd] => 2025-01-16 01:46:04 [RateCDR] => 1 ) [2025-01-16 01:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:46:04' and `end` < '2025-01-16 01:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:46:17] Production.INFO: count ==165 [2025-01-16 01:46:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:46:04 - End Time 2025-01-16 01:46:04 [2025-01-16 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257682', 'tblTempUsageDetail_20' ) start [2025-01-16 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257682', 'tblTempUsageDetail_20' ) end [2025-01-16 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257682', 'tblTempVendorCDR_20' ) start [2025-01-16 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257682', 'tblTempVendorCDR_20' ) end [2025-01-16 01:46:17] Production.INFO: ProcessCDR(1,14257682,1,1,2) [2025-01-16 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257682', 'tblTempUsageDetail_20' ) start [2025-01-16 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257682', 'tblTempUsageDetail_20' ) end [2025-01-16 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:46:21] Production.INFO: ==16329== Releasing lock... [2025-01-16 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:47:05 [end_date_ymd] => 2025-01-16 01:47:05 [RateCDR] => 1 ) [2025-01-16 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:47:05' and `end` < '2025-01-16 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:47:18] Production.INFO: count ==165 [2025-01-16 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:47:05 - End Time 2025-01-16 01:47:05 [2025-01-16 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257687', 'tblTempUsageDetail_20' ) start [2025-01-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257687', 'tblTempUsageDetail_20' ) end [2025-01-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257687', 'tblTempVendorCDR_20' ) start [2025-01-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257687', 'tblTempVendorCDR_20' ) end [2025-01-16 01:47:18] Production.INFO: ProcessCDR(1,14257687,1,1,2) [2025-01-16 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257687', 'tblTempUsageDetail_20' ) start [2025-01-16 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257687', 'tblTempUsageDetail_20' ) end [2025-01-16 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:47:21] Production.INFO: ==16408== Releasing lock... [2025-01-16 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:48:05 [end_date_ymd] => 2025-01-16 01:48:05 [RateCDR] => 1 ) [2025-01-16 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:48:05' and `end` < '2025-01-16 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:48:17] Production.INFO: count ==165 [2025-01-16 01:48:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:48:05 - End Time 2025-01-16 01:48:05 [2025-01-16 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257692', 'tblTempUsageDetail_20' ) start [2025-01-16 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257692', 'tblTempUsageDetail_20' ) end [2025-01-16 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257692', 'tblTempVendorCDR_20' ) start [2025-01-16 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257692', 'tblTempVendorCDR_20' ) end [2025-01-16 01:48:17] Production.INFO: ProcessCDR(1,14257692,1,1,2) [2025-01-16 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257692', 'tblTempUsageDetail_20' ) start [2025-01-16 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257692', 'tblTempUsageDetail_20' ) end [2025-01-16 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:48:21] Production.INFO: ==16478== Releasing lock... [2025-01-16 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:49:05 [end_date_ymd] => 2025-01-16 01:49:05 [RateCDR] => 1 ) [2025-01-16 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:49:05' and `end` < '2025-01-16 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:49:17] Production.INFO: count ==165 [2025-01-16 01:49:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:49:05 - End Time 2025-01-16 01:49:05 [2025-01-16 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257697', 'tblTempUsageDetail_20' ) start [2025-01-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257697', 'tblTempUsageDetail_20' ) end [2025-01-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257697', 'tblTempVendorCDR_20' ) start [2025-01-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257697', 'tblTempVendorCDR_20' ) end [2025-01-16 01:49:17] Production.INFO: ProcessCDR(1,14257697,1,1,2) [2025-01-16 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257697', 'tblTempUsageDetail_20' ) start [2025-01-16 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257697', 'tblTempUsageDetail_20' ) end [2025-01-16 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:49:21] Production.INFO: ==16550== Releasing lock... [2025-01-16 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:50:06 [end_date_ymd] => 2025-01-16 01:50:06 [RateCDR] => 1 ) [2025-01-16 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:50:06' and `end` < '2025-01-16 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:50:18] Production.INFO: count ==175 [2025-01-16 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:50:06 - End Time 2025-01-16 01:50:06 [2025-01-16 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257703', 'tblTempUsageDetail_20' ) start [2025-01-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257703', 'tblTempUsageDetail_20' ) end [2025-01-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257703', 'tblTempVendorCDR_20' ) start [2025-01-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257703', 'tblTempVendorCDR_20' ) end [2025-01-16 01:50:18] Production.INFO: ProcessCDR(1,14257703,1,1,2) [2025-01-16 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257703', 'tblTempUsageDetail_20' ) start [2025-01-16 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257703', 'tblTempUsageDetail_20' ) end [2025-01-16 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:50:21] Production.INFO: ==16626== Releasing lock... [2025-01-16 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:51:05 [end_date_ymd] => 2025-01-16 01:51:05 [RateCDR] => 1 ) [2025-01-16 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:51:05' and `end` < '2025-01-16 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:51:18] Production.INFO: count ==177 [2025-01-16 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:51:05 - End Time 2025-01-16 01:51:05 [2025-01-16 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257708', 'tblTempUsageDetail_20' ) start [2025-01-16 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257708', 'tblTempUsageDetail_20' ) end [2025-01-16 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257708', 'tblTempVendorCDR_20' ) start [2025-01-16 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257708', 'tblTempVendorCDR_20' ) end [2025-01-16 01:51:18] Production.INFO: ProcessCDR(1,14257708,1,1,2) [2025-01-16 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257708', 'tblTempUsageDetail_20' ) start [2025-01-16 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257708', 'tblTempUsageDetail_20' ) end [2025-01-16 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:51:21] Production.INFO: ==16699== Releasing lock... [2025-01-16 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:52:05 [end_date_ymd] => 2025-01-16 01:52:05 [RateCDR] => 1 ) [2025-01-16 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:52:05' and `end` < '2025-01-16 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:52:17] Production.INFO: count ==173 [2025-01-16 01:52:17] Production.ERROR: pbx CDR StartTime 2025-01-15 22:52:05 - End Time 2025-01-16 01:52:05 [2025-01-16 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257713', 'tblTempUsageDetail_20' ) start [2025-01-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257713', 'tblTempUsageDetail_20' ) end [2025-01-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257713', 'tblTempVendorCDR_20' ) start [2025-01-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257713', 'tblTempVendorCDR_20' ) end [2025-01-16 01:52:17] Production.INFO: ProcessCDR(1,14257713,1,1,2) [2025-01-16 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257713', 'tblTempUsageDetail_20' ) start [2025-01-16 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257713', 'tblTempUsageDetail_20' ) end [2025-01-16 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:52:20] Production.INFO: ==16769== Releasing lock... [2025-01-16 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:52:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:53:05 [end_date_ymd] => 2025-01-16 01:53:05 [RateCDR] => 1 ) [2025-01-16 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-01-15 22:53:05' and `end` < '2025-01-16 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-01-16 01:53:18] Production.INFO: count ==173 [2025-01-16 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:53:05 - End Time 2025-01-16 01:53:05 [2025-01-16 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257718', 'tblTempUsageDetail_20' ) start [2025-01-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257718', 'tblTempUsageDetail_20' ) end [2025-01-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257718', 'tblTempVendorCDR_20' ) start [2025-01-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257718', 'tblTempVendorCDR_20' ) end [2025-01-16 01:53:18] Production.INFO: ProcessCDR(1,14257718,1,1,2) [2025-01-16 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257718', 'tblTempUsageDetail_20' ) start [2025-01-16 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257718', 'tblTempUsageDetail_20' ) end [2025-01-16 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:53:22] Production.INFO: ==16838== Releasing lock... [2025-01-16 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:54:06 [end_date_ymd] => 2025-01-16 01:54:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 22:54:06' and `end` < '2025-01-16 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-01-16 01:54:18] Production.INFO: count ==173 [2025-01-16 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:54:06 - End Time 2025-01-16 01:54:06 [2025-01-16 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257723', 'tblTempUsageDetail_20' ) start [2025-01-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257723', 'tblTempUsageDetail_20' ) end [2025-01-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257723', 'tblTempVendorCDR_20' ) start [2025-01-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257723', 'tblTempVendorCDR_20' ) end [2025-01-16 01:54:18] Production.INFO: ProcessCDR(1,14257723,1,1,2) [2025-01-16 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257723', 'tblTempUsageDetail_20' ) start [2025-01-16 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257723', 'tblTempUsageDetail_20' ) end [2025-01-16 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:54:21] Production.INFO: ==16909== Releasing lock... [2025-01-16 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:54:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:55:05 [end_date_ymd] => 2025-01-16 01:55:05 [RateCDR] => 1 ) [2025-01-16 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:55:05' and `end` < '2025-01-16 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:55:18] Production.INFO: count ==173 [2025-01-16 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:55:05 - End Time 2025-01-16 01:55:05 [2025-01-16 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257728', 'tblTempUsageDetail_20' ) start [2025-01-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257728', 'tblTempUsageDetail_20' ) end [2025-01-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257728', 'tblTempVendorCDR_20' ) start [2025-01-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257728', 'tblTempVendorCDR_20' ) end [2025-01-16 01:55:18] Production.INFO: ProcessCDR(1,14257728,1,1,2) [2025-01-16 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257728', 'tblTempUsageDetail_20' ) start [2025-01-16 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257728', 'tblTempUsageDetail_20' ) end [2025-01-16 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:55:21] Production.INFO: ==16984== Releasing lock... [2025-01-16 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:55:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:56:05 [end_date_ymd] => 2025-01-16 01:56:05 [RateCDR] => 1 ) [2025-01-16 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:56:05' and `end` < '2025-01-16 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:56:18] Production.INFO: count ==173 [2025-01-16 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:56:05 - End Time 2025-01-16 01:56:05 [2025-01-16 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257733', 'tblTempUsageDetail_20' ) start [2025-01-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257733', 'tblTempUsageDetail_20' ) end [2025-01-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257733', 'tblTempVendorCDR_20' ) start [2025-01-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257733', 'tblTempVendorCDR_20' ) end [2025-01-16 01:56:18] Production.INFO: ProcessCDR(1,14257733,1,1,2) [2025-01-16 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257733', 'tblTempUsageDetail_20' ) start [2025-01-16 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257733', 'tblTempUsageDetail_20' ) end [2025-01-16 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:56:22] Production.INFO: ==17056== Releasing lock... [2025-01-16 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:56:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:57:05 [end_date_ymd] => 2025-01-16 01:57:05 [RateCDR] => 1 ) [2025-01-16 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:57:05' and `end` < '2025-01-16 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:57:19] Production.INFO: count ==176 [2025-01-16 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-15 22:57:05 - End Time 2025-01-16 01:57:05 [2025-01-16 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257738', 'tblTempUsageDetail_20' ) start [2025-01-16 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257738', 'tblTempUsageDetail_20' ) end [2025-01-16 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257738', 'tblTempVendorCDR_20' ) start [2025-01-16 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257738', 'tblTempVendorCDR_20' ) end [2025-01-16 01:57:19] Production.INFO: ProcessCDR(1,14257738,1,1,2) [2025-01-16 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257738', 'tblTempUsageDetail_20' ) start [2025-01-16 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257738', 'tblTempUsageDetail_20' ) end [2025-01-16 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:57:22] Production.INFO: ==17129== Releasing lock... [2025-01-16 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:58:05 [end_date_ymd] => 2025-01-16 01:58:05 [RateCDR] => 1 ) [2025-01-16 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:58:05' and `end` < '2025-01-16 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:58:18] Production.INFO: count ==176 [2025-01-16 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:58:05 - End Time 2025-01-16 01:58:05 [2025-01-16 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257743', 'tblTempUsageDetail_20' ) start [2025-01-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257743', 'tblTempUsageDetail_20' ) end [2025-01-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257743', 'tblTempVendorCDR_20' ) start [2025-01-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257743', 'tblTempVendorCDR_20' ) end [2025-01-16 01:58:18] Production.INFO: ProcessCDR(1,14257743,1,1,2) [2025-01-16 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257743', 'tblTempUsageDetail_20' ) start [2025-01-16 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257743', 'tblTempUsageDetail_20' ) end [2025-01-16 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:58:21] Production.INFO: ==17199== Releasing lock... [2025-01-16 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 22:59:05 [end_date_ymd] => 2025-01-16 01:59:05 [RateCDR] => 1 ) [2025-01-16 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 22:59:05' and `end` < '2025-01-16 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 01:59:18] Production.INFO: count ==180 [2025-01-16 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 22:59:05 - End Time 2025-01-16 01:59:05 [2025-01-16 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257748', 'tblTempUsageDetail_20' ) start [2025-01-16 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257748', 'tblTempUsageDetail_20' ) end [2025-01-16 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257748', 'tblTempVendorCDR_20' ) start [2025-01-16 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257748', 'tblTempVendorCDR_20' ) end [2025-01-16 01:59:18] Production.INFO: ProcessCDR(1,14257748,1,1,2) [2025-01-16 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257748', 'tblTempUsageDetail_20' ) start [2025-01-16 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257748', 'tblTempUsageDetail_20' ) end [2025-01-16 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 01:59:21] Production.INFO: ==17309== Releasing lock... [2025-01-16 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 01:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:00:06 [end_date_ymd] => 2025-01-16 02:00:06 [RateCDR] => 1 ) [2025-01-16 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:00:06' and `end` < '2025-01-16 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:00:18] Production.INFO: count ==189 [2025-01-16 02:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:00:06 - End Time 2025-01-16 02:00:06 [2025-01-16 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257754', 'tblTempUsageDetail_20' ) start [2025-01-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257754', 'tblTempUsageDetail_20' ) end [2025-01-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257754', 'tblTempVendorCDR_20' ) start [2025-01-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257754', 'tblTempVendorCDR_20' ) end [2025-01-16 02:00:18] Production.INFO: ProcessCDR(1,14257754,1,1,2) [2025-01-16 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257754', 'tblTempUsageDetail_20' ) start [2025-01-16 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257754', 'tblTempUsageDetail_20' ) end [2025-01-16 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:00:22] Production.INFO: ==17383== Releasing lock... [2025-01-16 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:01:05 [end_date_ymd] => 2025-01-16 02:01:05 [RateCDR] => 1 ) [2025-01-16 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-01-15 23:01:05' and `end` < '2025-01-16 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-01-16 02:01:17] Production.INFO: count ==189 [2025-01-16 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:01:05 - End Time 2025-01-16 02:01:05 [2025-01-16 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257759', 'tblTempUsageDetail_20' ) start [2025-01-16 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257759', 'tblTempUsageDetail_20' ) end [2025-01-16 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257759', 'tblTempVendorCDR_20' ) start [2025-01-16 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257759', 'tblTempVendorCDR_20' ) end [2025-01-16 02:01:17] Production.INFO: ProcessCDR(1,14257759,1,1,2) [2025-01-16 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257759', 'tblTempUsageDetail_20' ) start [2025-01-16 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257759', 'tblTempUsageDetail_20' ) end [2025-01-16 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:01:21] Production.INFO: ==17569== Releasing lock... [2025-01-16 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:02:05 [end_date_ymd] => 2025-01-16 02:02:05 [RateCDR] => 1 ) [2025-01-16 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:02:05' and `end` < '2025-01-16 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:02:17] Production.INFO: count ==189 [2025-01-16 02:02:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:02:05 - End Time 2025-01-16 02:02:05 [2025-01-16 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257764', 'tblTempUsageDetail_20' ) start [2025-01-16 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257764', 'tblTempUsageDetail_20' ) end [2025-01-16 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257764', 'tblTempVendorCDR_20' ) start [2025-01-16 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257764', 'tblTempVendorCDR_20' ) end [2025-01-16 02:02:17] Production.INFO: ProcessCDR(1,14257764,1,1,2) [2025-01-16 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257764', 'tblTempUsageDetail_20' ) start [2025-01-16 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257764', 'tblTempUsageDetail_20' ) end [2025-01-16 02:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:02:20] Production.INFO: ==17641== Releasing lock... [2025-01-16 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:02:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:03:05 [end_date_ymd] => 2025-01-16 02:03:05 [RateCDR] => 1 ) [2025-01-16 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:03:05' and `end` < '2025-01-16 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:03:17] Production.INFO: count ==189 [2025-01-16 02:03:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:03:05 - End Time 2025-01-16 02:03:05 [2025-01-16 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257769', 'tblTempUsageDetail_20' ) start [2025-01-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257769', 'tblTempUsageDetail_20' ) end [2025-01-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257769', 'tblTempVendorCDR_20' ) start [2025-01-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257769', 'tblTempVendorCDR_20' ) end [2025-01-16 02:03:17] Production.INFO: ProcessCDR(1,14257769,1,1,2) [2025-01-16 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257769', 'tblTempUsageDetail_20' ) start [2025-01-16 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257769', 'tblTempUsageDetail_20' ) end [2025-01-16 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:03:21] Production.INFO: ==17713== Releasing lock... [2025-01-16 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:04:05 [end_date_ymd] => 2025-01-16 02:04:05 [RateCDR] => 1 ) [2025-01-16 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:04:05' and `end` < '2025-01-16 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:04:17] Production.INFO: count ==189 [2025-01-16 02:04:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:04:05 - End Time 2025-01-16 02:04:05 [2025-01-16 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257774', 'tblTempUsageDetail_20' ) start [2025-01-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257774', 'tblTempUsageDetail_20' ) end [2025-01-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257774', 'tblTempVendorCDR_20' ) start [2025-01-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257774', 'tblTempVendorCDR_20' ) end [2025-01-16 02:04:17] Production.INFO: ProcessCDR(1,14257774,1,1,2) [2025-01-16 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257774', 'tblTempUsageDetail_20' ) start [2025-01-16 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257774', 'tblTempUsageDetail_20' ) end [2025-01-16 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:04:21] Production.INFO: ==17782== Releasing lock... [2025-01-16 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:05:06 [end_date_ymd] => 2025-01-16 02:05:06 [RateCDR] => 1 ) [2025-01-16 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:05:06' and `end` < '2025-01-16 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:05:18] Production.INFO: count ==189 [2025-01-16 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:05:06 - End Time 2025-01-16 02:05:06 [2025-01-16 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257779', 'tblTempUsageDetail_20' ) start [2025-01-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257779', 'tblTempUsageDetail_20' ) end [2025-01-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257779', 'tblTempVendorCDR_20' ) start [2025-01-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257779', 'tblTempVendorCDR_20' ) end [2025-01-16 02:05:18] Production.INFO: ProcessCDR(1,14257779,1,1,2) [2025-01-16 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257779', 'tblTempUsageDetail_20' ) start [2025-01-16 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257779', 'tblTempUsageDetail_20' ) end [2025-01-16 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:05:21] Production.INFO: ==17854== Releasing lock... [2025-01-16 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:06:04 [end_date_ymd] => 2025-01-16 02:06:04 [RateCDR] => 1 ) [2025-01-16 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:06:04' and `end` < '2025-01-16 02:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:06:18] Production.INFO: count ==189 [2025-01-16 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:06:04 - End Time 2025-01-16 02:06:04 [2025-01-16 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257784', 'tblTempUsageDetail_20' ) start [2025-01-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257784', 'tblTempUsageDetail_20' ) end [2025-01-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257784', 'tblTempVendorCDR_20' ) start [2025-01-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257784', 'tblTempVendorCDR_20' ) end [2025-01-16 02:06:18] Production.INFO: ProcessCDR(1,14257784,1,1,2) [2025-01-16 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257784', 'tblTempUsageDetail_20' ) start [2025-01-16 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257784', 'tblTempUsageDetail_20' ) end [2025-01-16 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:06:21] Production.INFO: ==17925== Releasing lock... [2025-01-16 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:07:05 [end_date_ymd] => 2025-01-16 02:07:05 [RateCDR] => 1 ) [2025-01-16 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:07:05' and `end` < '2025-01-16 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:07:18] Production.INFO: count ==189 [2025-01-16 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:07:05 - End Time 2025-01-16 02:07:05 [2025-01-16 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257789', 'tblTempUsageDetail_20' ) start [2025-01-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257789', 'tblTempUsageDetail_20' ) end [2025-01-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257789', 'tblTempVendorCDR_20' ) start [2025-01-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257789', 'tblTempVendorCDR_20' ) end [2025-01-16 02:07:18] Production.INFO: ProcessCDR(1,14257789,1,1,2) [2025-01-16 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257789', 'tblTempUsageDetail_20' ) start [2025-01-16 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257789', 'tblTempUsageDetail_20' ) end [2025-01-16 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:07:21] Production.INFO: ==18004== Releasing lock... [2025-01-16 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:08:04 [end_date_ymd] => 2025-01-16 02:08:04 [RateCDR] => 1 ) [2025-01-16 02:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:08:04' and `end` < '2025-01-16 02:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:08:16] Production.INFO: count ==189 [2025-01-16 02:08:16] Production.ERROR: pbx CDR StartTime 2025-01-15 23:08:04 - End Time 2025-01-16 02:08:04 [2025-01-16 02:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257794', 'tblTempUsageDetail_20' ) start [2025-01-16 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257794', 'tblTempUsageDetail_20' ) end [2025-01-16 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257794', 'tblTempVendorCDR_20' ) start [2025-01-16 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257794', 'tblTempVendorCDR_20' ) end [2025-01-16 02:08:16] Production.INFO: ProcessCDR(1,14257794,1,1,2) [2025-01-16 02:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257794', 'tblTempUsageDetail_20' ) start [2025-01-16 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257794', 'tblTempUsageDetail_20' ) end [2025-01-16 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:08:20] Production.INFO: ==18077== Releasing lock... [2025-01-16 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:08:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:09:05 [end_date_ymd] => 2025-01-16 02:09:05 [RateCDR] => 1 ) [2025-01-16 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:09:05' and `end` < '2025-01-16 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:09:17] Production.INFO: count ==189 [2025-01-16 02:09:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:09:05 - End Time 2025-01-16 02:09:05 [2025-01-16 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257799', 'tblTempUsageDetail_20' ) start [2025-01-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257799', 'tblTempUsageDetail_20' ) end [2025-01-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257799', 'tblTempVendorCDR_20' ) start [2025-01-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257799', 'tblTempVendorCDR_20' ) end [2025-01-16 02:09:17] Production.INFO: ProcessCDR(1,14257799,1,1,2) [2025-01-16 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257799', 'tblTempUsageDetail_20' ) start [2025-01-16 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257799', 'tblTempUsageDetail_20' ) end [2025-01-16 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:09:21] Production.INFO: ==18148== Releasing lock... [2025-01-16 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:10:06 [end_date_ymd] => 2025-01-16 02:10:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 23:10:06' and `end` < '2025-01-16 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-01-16 02:10:18] Production.INFO: count ==199 [2025-01-16 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:10:06 - End Time 2025-01-16 02:10:06 [2025-01-16 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257804', 'tblTempUsageDetail_20' ) start [2025-01-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257804', 'tblTempUsageDetail_20' ) end [2025-01-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257804', 'tblTempVendorCDR_20' ) start [2025-01-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257804', 'tblTempVendorCDR_20' ) end [2025-01-16 02:10:18] Production.INFO: ProcessCDR(1,14257804,1,1,2) [2025-01-16 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257804', 'tblTempUsageDetail_20' ) start [2025-01-16 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257804', 'tblTempUsageDetail_20' ) end [2025-01-16 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:10:21] Production.INFO: ==18221== Releasing lock... [2025-01-16 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:11:05 [end_date_ymd] => 2025-01-16 02:11:05 [RateCDR] => 1 ) [2025-01-16 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:11:05' and `end` < '2025-01-16 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:11:17] Production.INFO: count ==199 [2025-01-16 02:11:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:11:05 - End Time 2025-01-16 02:11:05 [2025-01-16 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257810', 'tblTempUsageDetail_20' ) start [2025-01-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257810', 'tblTempUsageDetail_20' ) end [2025-01-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257810', 'tblTempVendorCDR_20' ) start [2025-01-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257810', 'tblTempVendorCDR_20' ) end [2025-01-16 02:11:17] Production.INFO: ProcessCDR(1,14257810,1,1,2) [2025-01-16 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257810', 'tblTempUsageDetail_20' ) start [2025-01-16 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257810', 'tblTempUsageDetail_20' ) end [2025-01-16 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:11:20] Production.INFO: ==18295== Releasing lock... [2025-01-16 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:11:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:12:05 [end_date_ymd] => 2025-01-16 02:12:05 [RateCDR] => 1 ) [2025-01-16 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:12:05' and `end` < '2025-01-16 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:12:19] Production.INFO: count ==199 [2025-01-16 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-15 23:12:05 - End Time 2025-01-16 02:12:05 [2025-01-16 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257815', 'tblTempUsageDetail_20' ) start [2025-01-16 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257815', 'tblTempUsageDetail_20' ) end [2025-01-16 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257815', 'tblTempVendorCDR_20' ) start [2025-01-16 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257815', 'tblTempVendorCDR_20' ) end [2025-01-16 02:12:19] Production.INFO: ProcessCDR(1,14257815,1,1,2) [2025-01-16 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257815', 'tblTempUsageDetail_20' ) start [2025-01-16 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257815', 'tblTempUsageDetail_20' ) end [2025-01-16 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:12:22] Production.INFO: ==18367== Releasing lock... [2025-01-16 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:13:04 [end_date_ymd] => 2025-01-16 02:13:04 [RateCDR] => 1 ) [2025-01-16 02:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:13:04' and `end` < '2025-01-16 02:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:13:17] Production.INFO: count ==199 [2025-01-16 02:13:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:13:04 - End Time 2025-01-16 02:13:04 [2025-01-16 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257820', 'tblTempUsageDetail_20' ) start [2025-01-16 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257820', 'tblTempUsageDetail_20' ) end [2025-01-16 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257820', 'tblTempVendorCDR_20' ) start [2025-01-16 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257820', 'tblTempVendorCDR_20' ) end [2025-01-16 02:13:17] Production.INFO: ProcessCDR(1,14257820,1,1,2) [2025-01-16 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257820', 'tblTempUsageDetail_20' ) start [2025-01-16 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257820', 'tblTempUsageDetail_20' ) end [2025-01-16 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:13:20] Production.INFO: ==18438== Releasing lock... [2025-01-16 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:13:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:14:05 [end_date_ymd] => 2025-01-16 02:14:05 [RateCDR] => 1 ) [2025-01-16 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:14:05' and `end` < '2025-01-16 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:14:18] Production.INFO: count ==203 [2025-01-16 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:14:05 - End Time 2025-01-16 02:14:05 [2025-01-16 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257825', 'tblTempUsageDetail_20' ) start [2025-01-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257825', 'tblTempUsageDetail_20' ) end [2025-01-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257825', 'tblTempVendorCDR_20' ) start [2025-01-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257825', 'tblTempVendorCDR_20' ) end [2025-01-16 02:14:18] Production.INFO: ProcessCDR(1,14257825,1,1,2) [2025-01-16 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257825', 'tblTempUsageDetail_20' ) start [2025-01-16 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257825', 'tblTempUsageDetail_20' ) end [2025-01-16 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:14:22] Production.INFO: ==18515== Releasing lock... [2025-01-16 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:15:05 [end_date_ymd] => 2025-01-16 02:15:05 [RateCDR] => 1 ) [2025-01-16 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:15:05' and `end` < '2025-01-16 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:15:18] Production.INFO: count ==203 [2025-01-16 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:15:05 - End Time 2025-01-16 02:15:05 [2025-01-16 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257830', 'tblTempUsageDetail_20' ) start [2025-01-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257830', 'tblTempUsageDetail_20' ) end [2025-01-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257830', 'tblTempVendorCDR_20' ) start [2025-01-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257830', 'tblTempVendorCDR_20' ) end [2025-01-16 02:15:18] Production.INFO: ProcessCDR(1,14257830,1,1,2) [2025-01-16 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257830', 'tblTempUsageDetail_20' ) start [2025-01-16 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257830', 'tblTempUsageDetail_20' ) end [2025-01-16 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:15:21] Production.INFO: ==18632== Releasing lock... [2025-01-16 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:16:06 [end_date_ymd] => 2025-01-16 02:16:06 [RateCDR] => 1 ) [2025-01-16 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:16:06' and `end` < '2025-01-16 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:16:18] Production.INFO: count ==203 [2025-01-16 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:16:06 - End Time 2025-01-16 02:16:06 [2025-01-16 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257835', 'tblTempUsageDetail_20' ) start [2025-01-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257835', 'tblTempUsageDetail_20' ) end [2025-01-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257835', 'tblTempVendorCDR_20' ) start [2025-01-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257835', 'tblTempVendorCDR_20' ) end [2025-01-16 02:16:18] Production.INFO: ProcessCDR(1,14257835,1,1,2) [2025-01-16 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257835', 'tblTempUsageDetail_20' ) start [2025-01-16 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257835', 'tblTempUsageDetail_20' ) end [2025-01-16 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:16:21] Production.INFO: ==18702== Releasing lock... [2025-01-16 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:17:05 [end_date_ymd] => 2025-01-16 02:17:05 [RateCDR] => 1 ) [2025-01-16 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-01-15 23:17:05' and `end` < '2025-01-16 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-01-16 02:17:18] Production.INFO: count ==203 [2025-01-16 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:17:05 - End Time 2025-01-16 02:17:05 [2025-01-16 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257840', 'tblTempUsageDetail_20' ) start [2025-01-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257840', 'tblTempUsageDetail_20' ) end [2025-01-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257840', 'tblTempVendorCDR_20' ) start [2025-01-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257840', 'tblTempVendorCDR_20' ) end [2025-01-16 02:17:18] Production.INFO: ProcessCDR(1,14257840,1,1,2) [2025-01-16 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257840', 'tblTempUsageDetail_20' ) start [2025-01-16 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257840', 'tblTempUsageDetail_20' ) end [2025-01-16 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:17:21] Production.INFO: ==18774== Releasing lock... [2025-01-16 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:18:05 [end_date_ymd] => 2025-01-16 02:18:05 [RateCDR] => 1 ) [2025-01-16 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:18:05' and `end` < '2025-01-16 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:18:18] Production.INFO: count ==203 [2025-01-16 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:18:05 - End Time 2025-01-16 02:18:05 [2025-01-16 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257845', 'tblTempUsageDetail_20' ) start [2025-01-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257845', 'tblTempUsageDetail_20' ) end [2025-01-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257845', 'tblTempVendorCDR_20' ) start [2025-01-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257845', 'tblTempVendorCDR_20' ) end [2025-01-16 02:18:18] Production.INFO: ProcessCDR(1,14257845,1,1,2) [2025-01-16 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257845', 'tblTempUsageDetail_20' ) start [2025-01-16 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257845', 'tblTempUsageDetail_20' ) end [2025-01-16 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:18:21] Production.INFO: ==18843== Releasing lock... [2025-01-16 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:19:05 [end_date_ymd] => 2025-01-16 02:19:05 [RateCDR] => 1 ) [2025-01-16 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:19:05' and `end` < '2025-01-16 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:19:17] Production.INFO: count ==203 [2025-01-16 02:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:19:05 - End Time 2025-01-16 02:19:05 [2025-01-16 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257850', 'tblTempUsageDetail_20' ) start [2025-01-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257850', 'tblTempUsageDetail_20' ) end [2025-01-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257850', 'tblTempVendorCDR_20' ) start [2025-01-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257850', 'tblTempVendorCDR_20' ) end [2025-01-16 02:19:17] Production.INFO: ProcessCDR(1,14257850,1,1,2) [2025-01-16 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257850', 'tblTempUsageDetail_20' ) start [2025-01-16 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257850', 'tblTempUsageDetail_20' ) end [2025-01-16 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:19:20] Production.INFO: ==18917== Releasing lock... [2025-01-16 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:20:06 [end_date_ymd] => 2025-01-16 02:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 23:20:06' and `end` < '2025-01-16 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-01-16 02:20:18] Production.INFO: count ==205 [2025-01-16 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:20:06 - End Time 2025-01-16 02:20:06 [2025-01-16 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257855', 'tblTempUsageDetail_20' ) start [2025-01-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257855', 'tblTempUsageDetail_20' ) end [2025-01-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257855', 'tblTempVendorCDR_20' ) start [2025-01-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257855', 'tblTempVendorCDR_20' ) end [2025-01-16 02:20:18] Production.INFO: ProcessCDR(1,14257855,1,1,2) [2025-01-16 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257855', 'tblTempUsageDetail_20' ) start [2025-01-16 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257855', 'tblTempUsageDetail_20' ) end [2025-01-16 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:20:21] Production.INFO: ==18993== Releasing lock... [2025-01-16 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:21:05 [end_date_ymd] => 2025-01-16 02:21:05 [RateCDR] => 1 ) [2025-01-16 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:21:05' and `end` < '2025-01-16 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:21:18] Production.INFO: count ==205 [2025-01-16 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:21:05 - End Time 2025-01-16 02:21:05 [2025-01-16 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257861', 'tblTempUsageDetail_20' ) start [2025-01-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257861', 'tblTempUsageDetail_20' ) end [2025-01-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257861', 'tblTempVendorCDR_20' ) start [2025-01-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257861', 'tblTempVendorCDR_20' ) end [2025-01-16 02:21:18] Production.INFO: ProcessCDR(1,14257861,1,1,2) [2025-01-16 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257861', 'tblTempUsageDetail_20' ) start [2025-01-16 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257861', 'tblTempUsageDetail_20' ) end [2025-01-16 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:21:21] Production.INFO: ==19066== Releasing lock... [2025-01-16 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:22:04 [end_date_ymd] => 2025-01-16 02:22:04 [RateCDR] => 1 ) [2025-01-16 02:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:22:04' and `end` < '2025-01-16 02:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:22:16] Production.INFO: count ==204 [2025-01-16 02:22:16] Production.ERROR: pbx CDR StartTime 2025-01-15 23:22:04 - End Time 2025-01-16 02:22:04 [2025-01-16 02:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257866', 'tblTempUsageDetail_20' ) start [2025-01-16 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257866', 'tblTempUsageDetail_20' ) end [2025-01-16 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257866', 'tblTempVendorCDR_20' ) start [2025-01-16 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257866', 'tblTempVendorCDR_20' ) end [2025-01-16 02:22:16] Production.INFO: ProcessCDR(1,14257866,1,1,2) [2025-01-16 02:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257866', 'tblTempUsageDetail_20' ) start [2025-01-16 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257866', 'tblTempUsageDetail_20' ) end [2025-01-16 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:22:20] Production.INFO: ==19136== Releasing lock... [2025-01-16 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:22:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:23:05 [end_date_ymd] => 2025-01-16 02:23:05 [RateCDR] => 1 ) [2025-01-16 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:23:05' and `end` < '2025-01-16 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:23:18] Production.INFO: count ==204 [2025-01-16 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:23:05 - End Time 2025-01-16 02:23:05 [2025-01-16 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257871', 'tblTempUsageDetail_20' ) start [2025-01-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257871', 'tblTempUsageDetail_20' ) end [2025-01-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257871', 'tblTempVendorCDR_20' ) start [2025-01-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257871', 'tblTempVendorCDR_20' ) end [2025-01-16 02:23:18] Production.INFO: ProcessCDR(1,14257871,1,1,2) [2025-01-16 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257871', 'tblTempUsageDetail_20' ) start [2025-01-16 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257871', 'tblTempUsageDetail_20' ) end [2025-01-16 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:23:21] Production.INFO: ==19207== Releasing lock... [2025-01-16 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:24:04 [end_date_ymd] => 2025-01-16 02:24:04 [RateCDR] => 1 ) [2025-01-16 02:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:24:04' and `end` < '2025-01-16 02:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:24:17] Production.INFO: count ==204 [2025-01-16 02:24:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:24:04 - End Time 2025-01-16 02:24:04 [2025-01-16 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257876', 'tblTempUsageDetail_20' ) start [2025-01-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257876', 'tblTempUsageDetail_20' ) end [2025-01-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257876', 'tblTempVendorCDR_20' ) start [2025-01-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257876', 'tblTempVendorCDR_20' ) end [2025-01-16 02:24:17] Production.INFO: ProcessCDR(1,14257876,1,1,2) [2025-01-16 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257876', 'tblTempUsageDetail_20' ) start [2025-01-16 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257876', 'tblTempUsageDetail_20' ) end [2025-01-16 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:24:20] Production.INFO: ==19283== Releasing lock... [2025-01-16 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:24:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:25:05 [end_date_ymd] => 2025-01-16 02:25:05 [RateCDR] => 1 ) [2025-01-16 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:25:05' and `end` < '2025-01-16 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:25:17] Production.INFO: count ==204 [2025-01-16 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:25:05 - End Time 2025-01-16 02:25:05 [2025-01-16 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257881', 'tblTempUsageDetail_20' ) start [2025-01-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257881', 'tblTempUsageDetail_20' ) end [2025-01-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257881', 'tblTempVendorCDR_20' ) start [2025-01-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257881', 'tblTempVendorCDR_20' ) end [2025-01-16 02:25:17] Production.INFO: ProcessCDR(1,14257881,1,1,2) [2025-01-16 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257881', 'tblTempUsageDetail_20' ) start [2025-01-16 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257881', 'tblTempUsageDetail_20' ) end [2025-01-16 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:25:20] Production.INFO: ==19357== Releasing lock... [2025-01-16 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:25:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:26:06 [end_date_ymd] => 2025-01-16 02:26:06 [RateCDR] => 1 ) [2025-01-16 02: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-01-15 23:26:06' and `end` < '2025-01-16 02: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-01-16 02:26:18] Production.INFO: count ==203 [2025-01-16 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:26:06 - End Time 2025-01-16 02:26:06 [2025-01-16 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257886', 'tblTempUsageDetail_20' ) start [2025-01-16 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257886', 'tblTempUsageDetail_20' ) end [2025-01-16 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257886', 'tblTempVendorCDR_20' ) start [2025-01-16 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257886', 'tblTempVendorCDR_20' ) end [2025-01-16 02:26:18] Production.INFO: ProcessCDR(1,14257886,1,1,2) [2025-01-16 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257886', 'tblTempUsageDetail_20' ) start [2025-01-16 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257886', 'tblTempUsageDetail_20' ) end [2025-01-16 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:26:22] Production.INFO: ==19431== Releasing lock... [2025-01-16 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:26:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:27:04 [end_date_ymd] => 2025-01-16 02:27:04 [RateCDR] => 1 ) [2025-01-16 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:27:04' and `end` < '2025-01-16 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:27:17] Production.INFO: count ==201 [2025-01-16 02:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:27:04 - End Time 2025-01-16 02:27:04 [2025-01-16 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257891', 'tblTempUsageDetail_20' ) start [2025-01-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257891', 'tblTempUsageDetail_20' ) end [2025-01-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257891', 'tblTempVendorCDR_20' ) start [2025-01-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257891', 'tblTempVendorCDR_20' ) end [2025-01-16 02:27:17] Production.INFO: ProcessCDR(1,14257891,1,1,2) [2025-01-16 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257891', 'tblTempUsageDetail_20' ) start [2025-01-16 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257891', 'tblTempUsageDetail_20' ) end [2025-01-16 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:27:20] Production.INFO: ==19503== Releasing lock... [2025-01-16 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:28:05 [end_date_ymd] => 2025-01-16 02:28:05 [RateCDR] => 1 ) [2025-01-16 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:28:05' and `end` < '2025-01-16 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:28:17] Production.INFO: count ==201 [2025-01-16 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:28:05 - End Time 2025-01-16 02:28:05 [2025-01-16 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257896', 'tblTempUsageDetail_20' ) start [2025-01-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257896', 'tblTempUsageDetail_20' ) end [2025-01-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257896', 'tblTempVendorCDR_20' ) start [2025-01-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257896', 'tblTempVendorCDR_20' ) end [2025-01-16 02:28:17] Production.INFO: ProcessCDR(1,14257896,1,1,2) [2025-01-16 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257896', 'tblTempUsageDetail_20' ) start [2025-01-16 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257896', 'tblTempUsageDetail_20' ) end [2025-01-16 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:28:20] Production.INFO: ==19573== Releasing lock... [2025-01-16 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:28:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:29:04 [end_date_ymd] => 2025-01-16 02:29:04 [RateCDR] => 1 ) [2025-01-16 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:29:04' and `end` < '2025-01-16 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:29:17] Production.INFO: count ==200 [2025-01-16 02:29:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:29:04 - End Time 2025-01-16 02:29:04 [2025-01-16 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257901', 'tblTempUsageDetail_20' ) start [2025-01-16 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257901', 'tblTempUsageDetail_20' ) end [2025-01-16 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257901', 'tblTempVendorCDR_20' ) start [2025-01-16 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257901', 'tblTempVendorCDR_20' ) end [2025-01-16 02:29:17] Production.INFO: ProcessCDR(1,14257901,1,1,2) [2025-01-16 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257901', 'tblTempUsageDetail_20' ) start [2025-01-16 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257901', 'tblTempUsageDetail_20' ) end [2025-01-16 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:29:20] Production.INFO: ==19648== Releasing lock... [2025-01-16 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:30:05 [end_date_ymd] => 2025-01-16 02:30:05 [RateCDR] => 1 ) [2025-01-16 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:30:05' and `end` < '2025-01-16 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:30:18] Production.INFO: count ==202 [2025-01-16 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:30:05 - End Time 2025-01-16 02:30:05 [2025-01-16 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257906', 'tblTempUsageDetail_20' ) start [2025-01-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257906', 'tblTempUsageDetail_20' ) end [2025-01-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257906', 'tblTempVendorCDR_20' ) start [2025-01-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257906', 'tblTempVendorCDR_20' ) end [2025-01-16 02:30:18] Production.INFO: ProcessCDR(1,14257906,1,1,2) [2025-01-16 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257906', 'tblTempUsageDetail_20' ) start [2025-01-16 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257906', 'tblTempUsageDetail_20' ) end [2025-01-16 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:30:21] Production.INFO: ==19762== Releasing lock... [2025-01-16 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:31:04 [end_date_ymd] => 2025-01-16 02:31:04 [RateCDR] => 1 ) [2025-01-16 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:31:04' and `end` < '2025-01-16 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:31:17] Production.INFO: count ==201 [2025-01-16 02:31:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:31:04 - End Time 2025-01-16 02:31:04 [2025-01-16 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257912', 'tblTempUsageDetail_20' ) start [2025-01-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257912', 'tblTempUsageDetail_20' ) end [2025-01-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257912', 'tblTempVendorCDR_20' ) start [2025-01-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257912', 'tblTempVendorCDR_20' ) end [2025-01-16 02:31:17] Production.INFO: ProcessCDR(1,14257912,1,1,2) [2025-01-16 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257912', 'tblTempUsageDetail_20' ) start [2025-01-16 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257912', 'tblTempUsageDetail_20' ) end [2025-01-16 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:31:21] Production.INFO: ==19838== Releasing lock... [2025-01-16 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:32:05 [end_date_ymd] => 2025-01-16 02:32:05 [RateCDR] => 1 ) [2025-01-16 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:32:05' and `end` < '2025-01-16 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:32:17] Production.INFO: count ==200 [2025-01-16 02:32:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:32:05 - End Time 2025-01-16 02:32:05 [2025-01-16 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257917', 'tblTempUsageDetail_20' ) start [2025-01-16 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257917', 'tblTempUsageDetail_20' ) end [2025-01-16 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257917', 'tblTempVendorCDR_20' ) start [2025-01-16 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257917', 'tblTempVendorCDR_20' ) end [2025-01-16 02:32:17] Production.INFO: ProcessCDR(1,14257917,1,1,2) [2025-01-16 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257917', 'tblTempUsageDetail_20' ) start [2025-01-16 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257917', 'tblTempUsageDetail_20' ) end [2025-01-16 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:32:20] Production.INFO: ==19913== Releasing lock... [2025-01-16 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:33:05 [end_date_ymd] => 2025-01-16 02:33:05 [RateCDR] => 1 ) [2025-01-16 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:33:05' and `end` < '2025-01-16 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:33:17] Production.INFO: count ==197 [2025-01-16 02:33:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:33:05 - End Time 2025-01-16 02:33:05 [2025-01-16 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257922', 'tblTempUsageDetail_20' ) start [2025-01-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257922', 'tblTempUsageDetail_20' ) end [2025-01-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257922', 'tblTempVendorCDR_20' ) start [2025-01-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257922', 'tblTempVendorCDR_20' ) end [2025-01-16 02:33:17] Production.INFO: ProcessCDR(1,14257922,1,1,2) [2025-01-16 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257922', 'tblTempUsageDetail_20' ) start [2025-01-16 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257922', 'tblTempUsageDetail_20' ) end [2025-01-16 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:33:20] Production.INFO: ==19985== Releasing lock... [2025-01-16 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:34:05 [end_date_ymd] => 2025-01-16 02:34:05 [RateCDR] => 1 ) [2025-01-16 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:34:05' and `end` < '2025-01-16 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:34:17] Production.INFO: count ==197 [2025-01-16 02:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:34:05 - End Time 2025-01-16 02:34:05 [2025-01-16 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257927', 'tblTempUsageDetail_20' ) start [2025-01-16 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257927', 'tblTempUsageDetail_20' ) end [2025-01-16 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257927', 'tblTempVendorCDR_20' ) start [2025-01-16 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257927', 'tblTempVendorCDR_20' ) end [2025-01-16 02:34:17] Production.INFO: ProcessCDR(1,14257927,1,1,2) [2025-01-16 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257927', 'tblTempUsageDetail_20' ) start [2025-01-16 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257927', 'tblTempUsageDetail_20' ) end [2025-01-16 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:34:21] Production.INFO: ==20056== Releasing lock... [2025-01-16 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:35:05 [end_date_ymd] => 2025-01-16 02:35:05 [RateCDR] => 1 ) [2025-01-16 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:35:05' and `end` < '2025-01-16 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:35:18] Production.INFO: count ==196 [2025-01-16 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:35:05 - End Time 2025-01-16 02:35:05 [2025-01-16 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257932', 'tblTempUsageDetail_20' ) start [2025-01-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257932', 'tblTempUsageDetail_20' ) end [2025-01-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257932', 'tblTempVendorCDR_20' ) start [2025-01-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257932', 'tblTempVendorCDR_20' ) end [2025-01-16 02:35:18] Production.INFO: ProcessCDR(1,14257932,1,1,2) [2025-01-16 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257932', 'tblTempUsageDetail_20' ) start [2025-01-16 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257932', 'tblTempUsageDetail_20' ) end [2025-01-16 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:35:21] Production.INFO: ==20126== Releasing lock... [2025-01-16 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:36:04 [end_date_ymd] => 2025-01-16 02:36:04 [RateCDR] => 1 ) [2025-01-16 02:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:36:04' and `end` < '2025-01-16 02:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:36:17] Production.INFO: count ==196 [2025-01-16 02:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:36:04 - End Time 2025-01-16 02:36:04 [2025-01-16 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257937', 'tblTempUsageDetail_20' ) start [2025-01-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257937', 'tblTempUsageDetail_20' ) end [2025-01-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257937', 'tblTempVendorCDR_20' ) start [2025-01-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257937', 'tblTempVendorCDR_20' ) end [2025-01-16 02:36:17] Production.INFO: ProcessCDR(1,14257937,1,1,2) [2025-01-16 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257937', 'tblTempUsageDetail_20' ) start [2025-01-16 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257937', 'tblTempUsageDetail_20' ) end [2025-01-16 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:36:20] Production.INFO: ==20199== Releasing lock... [2025-01-16 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:36:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:37:05 [end_date_ymd] => 2025-01-16 02:37:05 [RateCDR] => 1 ) [2025-01-16 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:37:05' and `end` < '2025-01-16 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:37:17] Production.INFO: count ==196 [2025-01-16 02:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:37:05 - End Time 2025-01-16 02:37:05 [2025-01-16 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257942', 'tblTempUsageDetail_20' ) start [2025-01-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257942', 'tblTempUsageDetail_20' ) end [2025-01-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257942', 'tblTempVendorCDR_20' ) start [2025-01-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257942', 'tblTempVendorCDR_20' ) end [2025-01-16 02:37:18] Production.INFO: ProcessCDR(1,14257942,1,1,2) [2025-01-16 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257942', 'tblTempUsageDetail_20' ) start [2025-01-16 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257942', 'tblTempUsageDetail_20' ) end [2025-01-16 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:37:21] Production.INFO: ==20270== Releasing lock... [2025-01-16 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:38:05 [end_date_ymd] => 2025-01-16 02:38:05 [RateCDR] => 1 ) [2025-01-16 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:38:05' and `end` < '2025-01-16 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:38:18] Production.INFO: count ==196 [2025-01-16 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:38:05 - End Time 2025-01-16 02:38:05 [2025-01-16 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257947', 'tblTempUsageDetail_20' ) start [2025-01-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257947', 'tblTempUsageDetail_20' ) end [2025-01-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257947', 'tblTempVendorCDR_20' ) start [2025-01-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257947', 'tblTempVendorCDR_20' ) end [2025-01-16 02:38:18] Production.INFO: ProcessCDR(1,14257947,1,1,2) [2025-01-16 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257947', 'tblTempUsageDetail_20' ) start [2025-01-16 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257947', 'tblTempUsageDetail_20' ) end [2025-01-16 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:38:21] Production.INFO: ==20343== Releasing lock... [2025-01-16 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:39:05 [end_date_ymd] => 2025-01-16 02:39:05 [RateCDR] => 1 ) [2025-01-16 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:39:05' and `end` < '2025-01-16 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:39:17] Production.INFO: count ==196 [2025-01-16 02:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:39:05 - End Time 2025-01-16 02:39:05 [2025-01-16 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257952', 'tblTempUsageDetail_20' ) start [2025-01-16 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257952', 'tblTempUsageDetail_20' ) end [2025-01-16 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257952', 'tblTempVendorCDR_20' ) start [2025-01-16 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257952', 'tblTempVendorCDR_20' ) end [2025-01-16 02:39:17] Production.INFO: ProcessCDR(1,14257952,1,1,2) [2025-01-16 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257952', 'tblTempUsageDetail_20' ) start [2025-01-16 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257952', 'tblTempUsageDetail_20' ) end [2025-01-16 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:39:21] Production.INFO: ==20415== Releasing lock... [2025-01-16 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:40:06 [end_date_ymd] => 2025-01-16 02:40:06 [RateCDR] => 1 ) [2025-01-16 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:40:06' and `end` < '2025-01-16 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:40:19] Production.INFO: count ==200 [2025-01-16 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 23:40:06 - End Time 2025-01-16 02:40:06 [2025-01-16 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257957', 'tblTempUsageDetail_20' ) start [2025-01-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257957', 'tblTempUsageDetail_20' ) end [2025-01-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257957', 'tblTempVendorCDR_20' ) start [2025-01-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257957', 'tblTempVendorCDR_20' ) end [2025-01-16 02:40:19] Production.INFO: ProcessCDR(1,14257957,1,1,2) [2025-01-16 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257957', 'tblTempUsageDetail_20' ) start [2025-01-16 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257957', 'tblTempUsageDetail_20' ) end [2025-01-16 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:40:22] Production.INFO: ==20488== Releasing lock... [2025-01-16 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:41:05 [end_date_ymd] => 2025-01-16 02:41:05 [RateCDR] => 1 ) [2025-01-16 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:41:05' and `end` < '2025-01-16 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:41:18] Production.INFO: count ==200 [2025-01-16 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:41:05 - End Time 2025-01-16 02:41:05 [2025-01-16 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257963', 'tblTempUsageDetail_20' ) start [2025-01-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257963', 'tblTempUsageDetail_20' ) end [2025-01-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257963', 'tblTempVendorCDR_20' ) start [2025-01-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257963', 'tblTempVendorCDR_20' ) end [2025-01-16 02:41:18] Production.INFO: ProcessCDR(1,14257963,1,1,2) [2025-01-16 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257963', 'tblTempUsageDetail_20' ) start [2025-01-16 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257963', 'tblTempUsageDetail_20' ) end [2025-01-16 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:41:21] Production.INFO: ==20559== Releasing lock... [2025-01-16 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:42:05 [end_date_ymd] => 2025-01-16 02:42:05 [RateCDR] => 1 ) [2025-01-16 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:42:05' and `end` < '2025-01-16 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:42:18] Production.INFO: count ==197 [2025-01-16 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:42:05 - End Time 2025-01-16 02:42:05 [2025-01-16 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257968', 'tblTempUsageDetail_20' ) start [2025-01-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257968', 'tblTempUsageDetail_20' ) end [2025-01-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257968', 'tblTempVendorCDR_20' ) start [2025-01-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257968', 'tblTempVendorCDR_20' ) end [2025-01-16 02:42:18] Production.INFO: ProcessCDR(1,14257968,1,1,2) [2025-01-16 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257968', 'tblTempUsageDetail_20' ) start [2025-01-16 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257968', 'tblTempUsageDetail_20' ) end [2025-01-16 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:42:21] Production.INFO: ==20636== Releasing lock... [2025-01-16 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:42:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:43:05 [end_date_ymd] => 2025-01-16 02:43:05 [RateCDR] => 1 ) [2025-01-16 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:43:05' and `end` < '2025-01-16 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:43:17] Production.INFO: count ==196 [2025-01-16 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:43:05 - End Time 2025-01-16 02:43:05 [2025-01-16 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257973', 'tblTempUsageDetail_20' ) start [2025-01-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257973', 'tblTempUsageDetail_20' ) end [2025-01-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257973', 'tblTempVendorCDR_20' ) start [2025-01-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257973', 'tblTempVendorCDR_20' ) end [2025-01-16 02:43:17] Production.INFO: ProcessCDR(1,14257973,1,1,2) [2025-01-16 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257973', 'tblTempUsageDetail_20' ) start [2025-01-16 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257973', 'tblTempUsageDetail_20' ) end [2025-01-16 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:43:20] Production.INFO: ==20710== Releasing lock... [2025-01-16 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:43:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:44:05 [end_date_ymd] => 2025-01-16 02:44:05 [RateCDR] => 1 ) [2025-01-16 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:44:05' and `end` < '2025-01-16 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:44:18] Production.INFO: count ==196 [2025-01-16 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:44:05 - End Time 2025-01-16 02:44:05 [2025-01-16 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257978', 'tblTempUsageDetail_20' ) start [2025-01-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257978', 'tblTempUsageDetail_20' ) end [2025-01-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257978', 'tblTempVendorCDR_20' ) start [2025-01-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257978', 'tblTempVendorCDR_20' ) end [2025-01-16 02:44:18] Production.INFO: ProcessCDR(1,14257978,1,1,2) [2025-01-16 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257978', 'tblTempUsageDetail_20' ) start [2025-01-16 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257978', 'tblTempUsageDetail_20' ) end [2025-01-16 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:44:21] Production.INFO: ==20781== Releasing lock... [2025-01-16 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:45:04 [end_date_ymd] => 2025-01-16 02:45:04 [RateCDR] => 1 ) [2025-01-16 02:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:45:04' and `end` < '2025-01-16 02:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:45:16] Production.INFO: count ==196 [2025-01-16 02:45:16] Production.ERROR: pbx CDR StartTime 2025-01-15 23:45:04 - End Time 2025-01-16 02:45:04 [2025-01-16 02:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257983', 'tblTempUsageDetail_20' ) start [2025-01-16 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257983', 'tblTempUsageDetail_20' ) end [2025-01-16 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257983', 'tblTempVendorCDR_20' ) start [2025-01-16 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257983', 'tblTempVendorCDR_20' ) end [2025-01-16 02:45:16] Production.INFO: ProcessCDR(1,14257983,1,1,2) [2025-01-16 02:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257983', 'tblTempUsageDetail_20' ) start [2025-01-16 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257983', 'tblTempUsageDetail_20' ) end [2025-01-16 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:45:20] Production.INFO: ==20855== Releasing lock... [2025-01-16 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:45:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:46:05 [end_date_ymd] => 2025-01-16 02:46:05 [RateCDR] => 1 ) [2025-01-16 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:46:05' and `end` < '2025-01-16 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:46:17] Production.INFO: count ==195 [2025-01-16 02:46:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:46:05 - End Time 2025-01-16 02:46:05 [2025-01-16 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257988', 'tblTempUsageDetail_20' ) start [2025-01-16 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257988', 'tblTempUsageDetail_20' ) end [2025-01-16 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257988', 'tblTempVendorCDR_20' ) start [2025-01-16 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257988', 'tblTempVendorCDR_20' ) end [2025-01-16 02:46:17] Production.INFO: ProcessCDR(1,14257988,1,1,2) [2025-01-16 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257988', 'tblTempUsageDetail_20' ) start [2025-01-16 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257988', 'tblTempUsageDetail_20' ) end [2025-01-16 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:46:20] Production.INFO: ==20965== Releasing lock... [2025-01-16 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:46:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:47:04 [end_date_ymd] => 2025-01-16 02:47:04 [RateCDR] => 1 ) [2025-01-16 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:47:04' and `end` < '2025-01-16 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:47:16] Production.INFO: count ==193 [2025-01-16 02:47:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:47:04 - End Time 2025-01-16 02:47:04 [2025-01-16 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257993', 'tblTempUsageDetail_20' ) start [2025-01-16 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257993', 'tblTempUsageDetail_20' ) end [2025-01-16 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257993', 'tblTempVendorCDR_20' ) start [2025-01-16 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257993', 'tblTempVendorCDR_20' ) end [2025-01-16 02:47:17] Production.INFO: ProcessCDR(1,14257993,1,1,2) [2025-01-16 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257993', 'tblTempUsageDetail_20' ) start [2025-01-16 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257993', 'tblTempUsageDetail_20' ) end [2025-01-16 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:47:20] Production.INFO: ==21037== Releasing lock... [2025-01-16 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:47:20] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:48:04 [end_date_ymd] => 2025-01-16 02:48:04 [RateCDR] => 1 ) [2025-01-16 02:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:48:04' and `end` < '2025-01-16 02:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:48:18] Production.INFO: count ==193 [2025-01-16 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:48:04 - End Time 2025-01-16 02:48:04 [2025-01-16 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257998', 'tblTempUsageDetail_20' ) start [2025-01-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257998', 'tblTempUsageDetail_20' ) end [2025-01-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257998', 'tblTempVendorCDR_20' ) start [2025-01-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257998', 'tblTempVendorCDR_20' ) end [2025-01-16 02:48:18] Production.INFO: ProcessCDR(1,14257998,1,1,2) [2025-01-16 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257998', 'tblTempUsageDetail_20' ) start [2025-01-16 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257998', 'tblTempUsageDetail_20' ) end [2025-01-16 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:48:21] Production.INFO: ==21110== Releasing lock... [2025-01-16 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:49:06 [end_date_ymd] => 2025-01-16 02:49:06 [RateCDR] => 1 ) [2025-01-16 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-01-15 23:49:06' and `end` < '2025-01-16 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-01-16 02:49:18] Production.INFO: count ==193 [2025-01-16 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:49:06 - End Time 2025-01-16 02:49:06 [2025-01-16 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258003', 'tblTempUsageDetail_20' ) start [2025-01-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258003', 'tblTempUsageDetail_20' ) end [2025-01-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258003', 'tblTempVendorCDR_20' ) start [2025-01-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258003', 'tblTempVendorCDR_20' ) end [2025-01-16 02:49:18] Production.INFO: ProcessCDR(1,14258003,1,1,2) [2025-01-16 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258003', 'tblTempUsageDetail_20' ) start [2025-01-16 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258003', 'tblTempUsageDetail_20' ) end [2025-01-16 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:49:22] Production.INFO: ==21180== Releasing lock... [2025-01-16 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-16 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:50:05 [end_date_ymd] => 2025-01-16 02:50:05 [RateCDR] => 1 ) [2025-01-16 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:50:05' and `end` < '2025-01-16 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:50:18] Production.INFO: count ==192 [2025-01-16 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:50:05 - End Time 2025-01-16 02:50:05 [2025-01-16 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258008', 'tblTempUsageDetail_20' ) start [2025-01-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258008', 'tblTempUsageDetail_20' ) end [2025-01-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258008', 'tblTempVendorCDR_20' ) start [2025-01-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258008', 'tblTempVendorCDR_20' ) end [2025-01-16 02:50:18] Production.INFO: ProcessCDR(1,14258008,1,1,2) [2025-01-16 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258008', 'tblTempUsageDetail_20' ) start [2025-01-16 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258008', 'tblTempUsageDetail_20' ) end [2025-01-16 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:50:21] Production.INFO: ==21252== Releasing lock... [2025-01-16 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:51:05 [end_date_ymd] => 2025-01-16 02:51:05 [RateCDR] => 1 ) [2025-01-16 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:51:05' and `end` < '2025-01-16 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:51:17] Production.INFO: count ==191 [2025-01-16 02:51:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:51:05 - End Time 2025-01-16 02:51:05 [2025-01-16 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258014', 'tblTempUsageDetail_20' ) start [2025-01-16 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258014', 'tblTempUsageDetail_20' ) end [2025-01-16 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258014', 'tblTempVendorCDR_20' ) start [2025-01-16 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258014', 'tblTempVendorCDR_20' ) end [2025-01-16 02:51:17] Production.INFO: ProcessCDR(1,14258014,1,1,2) [2025-01-16 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258014', 'tblTempUsageDetail_20' ) start [2025-01-16 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258014', 'tblTempUsageDetail_20' ) end [2025-01-16 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:51:20] Production.INFO: ==21330== Releasing lock... [2025-01-16 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:52:04 [end_date_ymd] => 2025-01-16 02:52:04 [RateCDR] => 1 ) [2025-01-16 02:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:52:04' and `end` < '2025-01-16 02:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:52:17] Production.INFO: count ==191 [2025-01-16 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:52:04 - End Time 2025-01-16 02:52:04 [2025-01-16 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258019', 'tblTempUsageDetail_20' ) start [2025-01-16 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258019', 'tblTempUsageDetail_20' ) end [2025-01-16 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258019', 'tblTempVendorCDR_20' ) start [2025-01-16 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258019', 'tblTempVendorCDR_20' ) end [2025-01-16 02:52:17] Production.INFO: ProcessCDR(1,14258019,1,1,2) [2025-01-16 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258019', 'tblTempUsageDetail_20' ) start [2025-01-16 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258019', 'tblTempUsageDetail_20' ) end [2025-01-16 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:52:20] Production.INFO: ==21400== Releasing lock... [2025-01-16 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:53:04 [end_date_ymd] => 2025-01-16 02:53:04 [RateCDR] => 1 ) [2025-01-16 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:53:04' and `end` < '2025-01-16 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:53:17] Production.INFO: count ==191 [2025-01-16 02:53:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:53:04 - End Time 2025-01-16 02:53:04 [2025-01-16 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258024', 'tblTempUsageDetail_20' ) start [2025-01-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258024', 'tblTempUsageDetail_20' ) end [2025-01-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258024', 'tblTempVendorCDR_20' ) start [2025-01-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258024', 'tblTempVendorCDR_20' ) end [2025-01-16 02:53:17] Production.INFO: ProcessCDR(1,14258024,1,1,2) [2025-01-16 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258024', 'tblTempUsageDetail_20' ) start [2025-01-16 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258024', 'tblTempUsageDetail_20' ) end [2025-01-16 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:53:20] Production.INFO: ==21470== Releasing lock... [2025-01-16 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:54:06 [end_date_ymd] => 2025-01-16 02:54:06 [RateCDR] => 1 ) [2025-01-16 02: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-01-15 23:54:06' and `end` < '2025-01-16 02: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-01-16 02:54:18] Production.INFO: count ==190 [2025-01-16 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:54:06 - End Time 2025-01-16 02:54:06 [2025-01-16 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258029', 'tblTempUsageDetail_20' ) start [2025-01-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258029', 'tblTempUsageDetail_20' ) end [2025-01-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258029', 'tblTempVendorCDR_20' ) start [2025-01-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258029', 'tblTempVendorCDR_20' ) end [2025-01-16 02:54:18] Production.INFO: ProcessCDR(1,14258029,1,1,2) [2025-01-16 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258029', 'tblTempUsageDetail_20' ) start [2025-01-16 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258029', 'tblTempUsageDetail_20' ) end [2025-01-16 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:54:21] Production.INFO: ==21543== Releasing lock... [2025-01-16 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:55:05 [end_date_ymd] => 2025-01-16 02:55:05 [RateCDR] => 1 ) [2025-01-16 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:55:05' and `end` < '2025-01-16 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:55:18] Production.INFO: count ==189 [2025-01-16 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:55:05 - End Time 2025-01-16 02:55:05 [2025-01-16 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258034', 'tblTempUsageDetail_20' ) start [2025-01-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258034', 'tblTempUsageDetail_20' ) end [2025-01-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258034', 'tblTempVendorCDR_20' ) start [2025-01-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258034', 'tblTempVendorCDR_20' ) end [2025-01-16 02:55:18] Production.INFO: ProcessCDR(1,14258034,1,1,2) [2025-01-16 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258034', 'tblTempUsageDetail_20' ) start [2025-01-16 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258034', 'tblTempUsageDetail_20' ) end [2025-01-16 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:55:21] Production.INFO: ==21616== Releasing lock... [2025-01-16 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:56:05 [end_date_ymd] => 2025-01-16 02:56:05 [RateCDR] => 1 ) [2025-01-16 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:56:05' and `end` < '2025-01-16 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:56:17] Production.INFO: count ==189 [2025-01-16 02:56:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:56:05 - End Time 2025-01-16 02:56:05 [2025-01-16 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258039', 'tblTempUsageDetail_20' ) start [2025-01-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258039', 'tblTempUsageDetail_20' ) end [2025-01-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258039', 'tblTempVendorCDR_20' ) start [2025-01-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258039', 'tblTempVendorCDR_20' ) end [2025-01-16 02:56:17] Production.INFO: ProcessCDR(1,14258039,1,1,2) [2025-01-16 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258039', 'tblTempUsageDetail_20' ) start [2025-01-16 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258039', 'tblTempUsageDetail_20' ) end [2025-01-16 02:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:56:20] Production.INFO: ==21684== Releasing lock... [2025-01-16 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:57:04 [end_date_ymd] => 2025-01-16 02:57:04 [RateCDR] => 1 ) [2025-01-16 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:57:04' and `end` < '2025-01-16 02:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:57:17] Production.INFO: count ==189 [2025-01-16 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:57:04 - End Time 2025-01-16 02:57:04 [2025-01-16 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258044', 'tblTempUsageDetail_20' ) start [2025-01-16 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258044', 'tblTempUsageDetail_20' ) end [2025-01-16 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258044', 'tblTempVendorCDR_20' ) start [2025-01-16 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258044', 'tblTempVendorCDR_20' ) end [2025-01-16 02:57:17] Production.INFO: ProcessCDR(1,14258044,1,1,2) [2025-01-16 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258044', 'tblTempUsageDetail_20' ) start [2025-01-16 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258044', 'tblTempUsageDetail_20' ) end [2025-01-16 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:57:21] Production.INFO: ==21766== Releasing lock... [2025-01-16 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:58:05 [end_date_ymd] => 2025-01-16 02:58:05 [RateCDR] => 1 ) [2025-01-16 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:58:05' and `end` < '2025-01-16 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:58:17] Production.INFO: count ==189 [2025-01-16 02:58:17] Production.ERROR: pbx CDR StartTime 2025-01-15 23:58:05 - End Time 2025-01-16 02:58:05 [2025-01-16 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258049', 'tblTempUsageDetail_20' ) start [2025-01-16 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258049', 'tblTempUsageDetail_20' ) end [2025-01-16 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258049', 'tblTempVendorCDR_20' ) start [2025-01-16 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258049', 'tblTempVendorCDR_20' ) end [2025-01-16 02:58:17] Production.INFO: ProcessCDR(1,14258049,1,1,2) [2025-01-16 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258049', 'tblTempUsageDetail_20' ) start [2025-01-16 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258049', 'tblTempUsageDetail_20' ) end [2025-01-16 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:58:21] Production.INFO: ==21837== Releasing lock... [2025-01-16 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 23:59:05 [end_date_ymd] => 2025-01-16 02:59:05 [RateCDR] => 1 ) [2025-01-16 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 23:59:05' and `end` < '2025-01-16 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 02:59:18] Production.INFO: count ==186 [2025-01-16 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 23:59:05 - End Time 2025-01-16 02:59:05 [2025-01-16 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258054', 'tblTempUsageDetail_20' ) start [2025-01-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258054', 'tblTempUsageDetail_20' ) end [2025-01-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258054', 'tblTempVendorCDR_20' ) start [2025-01-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258054', 'tblTempVendorCDR_20' ) end [2025-01-16 02:59:18] Production.INFO: ProcessCDR(1,14258054,1,1,2) [2025-01-16 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258054', 'tblTempUsageDetail_20' ) start [2025-01-16 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258054', 'tblTempUsageDetail_20' ) end [2025-01-16 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 02:59:21] Production.INFO: ==21908== Releasing lock... [2025-01-16 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 02:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:00:06 [end_date_ymd] => 2025-01-16 03:00:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 00:00:06' and `end` < '2025-01-16 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-01-16 03:00:18] Production.INFO: count ==194 [2025-01-16 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:00:06 - End Time 2025-01-16 03:00:06 [2025-01-16 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258060', 'tblTempUsageDetail_20' ) start [2025-01-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258060', 'tblTempUsageDetail_20' ) end [2025-01-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258060', 'tblTempVendorCDR_20' ) start [2025-01-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258060', 'tblTempVendorCDR_20' ) end [2025-01-16 03:00:18] Production.INFO: ProcessCDR(1,14258060,1,1,2) [2025-01-16 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258060', 'tblTempUsageDetail_20' ) start [2025-01-16 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258060', 'tblTempUsageDetail_20' ) end [2025-01-16 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:00:21] Production.INFO: ==21981== Releasing lock... [2025-01-16 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:01:04 [end_date_ymd] => 2025-01-16 03:01:04 [RateCDR] => 1 ) [2025-01-16 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:01:04' and `end` < '2025-01-16 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:01:17] Production.INFO: count ==194 [2025-01-16 03:01:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:01:04 - End Time 2025-01-16 03:01:04 [2025-01-16 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258065', 'tblTempUsageDetail_20' ) start [2025-01-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258065', 'tblTempUsageDetail_20' ) end [2025-01-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258065', 'tblTempVendorCDR_20' ) start [2025-01-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258065', 'tblTempVendorCDR_20' ) end [2025-01-16 03:01:17] Production.INFO: ProcessCDR(1,14258065,1,1,2) [2025-01-16 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258065', 'tblTempUsageDetail_20' ) start [2025-01-16 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258065', 'tblTempUsageDetail_20' ) end [2025-01-16 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:01:20] Production.INFO: ==22107== Releasing lock... [2025-01-16 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:02:05 [end_date_ymd] => 2025-01-16 03:02:05 [RateCDR] => 1 ) [2025-01-16 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:02:05' and `end` < '2025-01-16 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:02:18] Production.INFO: count ==192 [2025-01-16 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:02:05 - End Time 2025-01-16 03:02:05 [2025-01-16 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258070', 'tblTempUsageDetail_20' ) start [2025-01-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258070', 'tblTempUsageDetail_20' ) end [2025-01-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258070', 'tblTempVendorCDR_20' ) start [2025-01-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258070', 'tblTempVendorCDR_20' ) end [2025-01-16 03:02:18] Production.INFO: ProcessCDR(1,14258070,1,1,2) [2025-01-16 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258070', 'tblTempUsageDetail_20' ) start [2025-01-16 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258070', 'tblTempUsageDetail_20' ) end [2025-01-16 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:02:21] Production.INFO: ==22254== Releasing lock... [2025-01-16 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:03:04 [end_date_ymd] => 2025-01-16 03:03:04 [RateCDR] => 1 ) [2025-01-16 03:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:03:04' and `end` < '2025-01-16 03:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:03:17] Production.INFO: count ==190 [2025-01-16 03:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:03:04 - End Time 2025-01-16 03:03:04 [2025-01-16 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258075', 'tblTempUsageDetail_20' ) start [2025-01-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258075', 'tblTempUsageDetail_20' ) end [2025-01-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258075', 'tblTempVendorCDR_20' ) start [2025-01-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258075', 'tblTempVendorCDR_20' ) end [2025-01-16 03:03:17] Production.INFO: ProcessCDR(1,14258075,1,1,2) [2025-01-16 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258075', 'tblTempUsageDetail_20' ) start [2025-01-16 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258075', 'tblTempUsageDetail_20' ) end [2025-01-16 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:03:20] Production.INFO: ==22324== Releasing lock... [2025-01-16 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:04:05 [end_date_ymd] => 2025-01-16 03:04:05 [RateCDR] => 1 ) [2025-01-16 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:04:05' and `end` < '2025-01-16 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:04:18] Production.INFO: count ==190 [2025-01-16 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:04:05 - End Time 2025-01-16 03:04:05 [2025-01-16 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258080', 'tblTempUsageDetail_20' ) start [2025-01-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258080', 'tblTempUsageDetail_20' ) end [2025-01-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258080', 'tblTempVendorCDR_20' ) start [2025-01-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258080', 'tblTempVendorCDR_20' ) end [2025-01-16 03:04:18] Production.INFO: ProcessCDR(1,14258080,1,1,2) [2025-01-16 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258080', 'tblTempUsageDetail_20' ) start [2025-01-16 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258080', 'tblTempUsageDetail_20' ) end [2025-01-16 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:04:21] Production.INFO: ==22395== Releasing lock... [2025-01-16 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:05:04 [end_date_ymd] => 2025-01-16 03:05:04 [RateCDR] => 1 ) [2025-01-16 03:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:05:04' and `end` < '2025-01-16 03:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:05:17] Production.INFO: count ==190 [2025-01-16 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:05:04 - End Time 2025-01-16 03:05:04 [2025-01-16 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258085', 'tblTempUsageDetail_20' ) start [2025-01-16 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258085', 'tblTempUsageDetail_20' ) end [2025-01-16 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258085', 'tblTempVendorCDR_20' ) start [2025-01-16 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258085', 'tblTempVendorCDR_20' ) end [2025-01-16 03:05:17] Production.INFO: ProcessCDR(1,14258085,1,1,2) [2025-01-16 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258085', 'tblTempUsageDetail_20' ) start [2025-01-16 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258085', 'tblTempUsageDetail_20' ) end [2025-01-16 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:05:20] Production.INFO: ==22503== Releasing lock... [2025-01-16 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:06:05 [end_date_ymd] => 2025-01-16 03:06:05 [RateCDR] => 1 ) [2025-01-16 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:06:05' and `end` < '2025-01-16 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:06:17] Production.INFO: count ==186 [2025-01-16 03:06:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:06:05 - End Time 2025-01-16 03:06:05 [2025-01-16 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258090', 'tblTempUsageDetail_20' ) start [2025-01-16 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258090', 'tblTempUsageDetail_20' ) end [2025-01-16 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258090', 'tblTempVendorCDR_20' ) start [2025-01-16 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258090', 'tblTempVendorCDR_20' ) end [2025-01-16 03:06:17] Production.INFO: ProcessCDR(1,14258090,1,1,2) [2025-01-16 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258090', 'tblTempUsageDetail_20' ) start [2025-01-16 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258090', 'tblTempUsageDetail_20' ) end [2025-01-16 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:06:20] Production.INFO: ==22613== Releasing lock... [2025-01-16 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:07:05 [end_date_ymd] => 2025-01-16 03:07:05 [RateCDR] => 1 ) [2025-01-16 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:07:05' and `end` < '2025-01-16 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:07:17] Production.INFO: count ==185 [2025-01-16 03:07:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:07:05 - End Time 2025-01-16 03:07:05 [2025-01-16 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258095', 'tblTempUsageDetail_20' ) start [2025-01-16 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258095', 'tblTempUsageDetail_20' ) end [2025-01-16 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258095', 'tblTempVendorCDR_20' ) start [2025-01-16 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258095', 'tblTempVendorCDR_20' ) end [2025-01-16 03:07:17] Production.INFO: ProcessCDR(1,14258095,1,1,2) [2025-01-16 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258095', 'tblTempUsageDetail_20' ) start [2025-01-16 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258095', 'tblTempUsageDetail_20' ) end [2025-01-16 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:07:20] Production.INFO: ==22685== Releasing lock... [2025-01-16 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:08:05 [end_date_ymd] => 2025-01-16 03:08:05 [RateCDR] => 1 ) [2025-01-16 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:08:05' and `end` < '2025-01-16 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:08:17] Production.INFO: count ==185 [2025-01-16 03:08:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:08:05 - End Time 2025-01-16 03:08:05 [2025-01-16 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258100', 'tblTempUsageDetail_20' ) start [2025-01-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258100', 'tblTempUsageDetail_20' ) end [2025-01-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258100', 'tblTempVendorCDR_20' ) start [2025-01-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258100', 'tblTempVendorCDR_20' ) end [2025-01-16 03:08:17] Production.INFO: ProcessCDR(1,14258100,1,1,2) [2025-01-16 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258100', 'tblTempUsageDetail_20' ) start [2025-01-16 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258100', 'tblTempUsageDetail_20' ) end [2025-01-16 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:08:20] Production.INFO: ==22755== Releasing lock... [2025-01-16 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:08:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:09:05 [end_date_ymd] => 2025-01-16 03:09:05 [RateCDR] => 1 ) [2025-01-16 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:09:05' and `end` < '2025-01-16 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:09:17] Production.INFO: count ==185 [2025-01-16 03:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:09:05 - End Time 2025-01-16 03:09:05 [2025-01-16 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258105', 'tblTempUsageDetail_20' ) start [2025-01-16 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258105', 'tblTempUsageDetail_20' ) end [2025-01-16 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258105', 'tblTempVendorCDR_20' ) start [2025-01-16 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258105', 'tblTempVendorCDR_20' ) end [2025-01-16 03:09:17] Production.INFO: ProcessCDR(1,14258105,1,1,2) [2025-01-16 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258105', 'tblTempUsageDetail_20' ) start [2025-01-16 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258105', 'tblTempUsageDetail_20' ) end [2025-01-16 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:09:20] Production.INFO: ==22904== Releasing lock... [2025-01-16 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:09:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:10:05 [end_date_ymd] => 2025-01-16 03:10:05 [RateCDR] => 1 ) [2025-01-16 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:10:05' and `end` < '2025-01-16 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:10:18] Production.INFO: count ==187 [2025-01-16 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:10:05 - End Time 2025-01-16 03:10:05 [2025-01-16 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258111', 'tblTempUsageDetail_20' ) start [2025-01-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258111', 'tblTempUsageDetail_20' ) end [2025-01-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258111', 'tblTempVendorCDR_20' ) start [2025-01-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258111', 'tblTempVendorCDR_20' ) end [2025-01-16 03:10:18] Production.INFO: ProcessCDR(1,14258111,1,1,2) [2025-01-16 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258111', 'tblTempUsageDetail_20' ) start [2025-01-16 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258111', 'tblTempUsageDetail_20' ) end [2025-01-16 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:10:21] Production.INFO: ==22977== Releasing lock... [2025-01-16 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:11:06 [end_date_ymd] => 2025-01-16 03:11:06 [RateCDR] => 1 ) [2025-01-16 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:11:06' and `end` < '2025-01-16 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:11:18] Production.INFO: count ==179 [2025-01-16 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:11:06 - End Time 2025-01-16 03:11:06 [2025-01-16 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258116', 'tblTempUsageDetail_20' ) start [2025-01-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258116', 'tblTempUsageDetail_20' ) end [2025-01-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258116', 'tblTempVendorCDR_20' ) start [2025-01-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258116', 'tblTempVendorCDR_20' ) end [2025-01-16 03:11:18] Production.INFO: ProcessCDR(1,14258116,1,1,2) [2025-01-16 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258116', 'tblTempUsageDetail_20' ) start [2025-01-16 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258116', 'tblTempUsageDetail_20' ) end [2025-01-16 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:11:22] Production.INFO: ==23054== Releasing lock... [2025-01-16 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:12:05 [end_date_ymd] => 2025-01-16 03:12:05 [RateCDR] => 1 ) [2025-01-16 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:12:05' and `end` < '2025-01-16 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:12:17] Production.INFO: count ==178 [2025-01-16 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:12:05 - End Time 2025-01-16 03:12:05 [2025-01-16 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258121', 'tblTempUsageDetail_20' ) start [2025-01-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258121', 'tblTempUsageDetail_20' ) end [2025-01-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258121', 'tblTempVendorCDR_20' ) start [2025-01-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258121', 'tblTempVendorCDR_20' ) end [2025-01-16 03:12:17] Production.INFO: ProcessCDR(1,14258121,1,1,2) [2025-01-16 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258121', 'tblTempUsageDetail_20' ) start [2025-01-16 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258121', 'tblTempUsageDetail_20' ) end [2025-01-16 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:12:20] Production.INFO: ==23128== Releasing lock... [2025-01-16 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:13:05 [end_date_ymd] => 2025-01-16 03:13:05 [RateCDR] => 1 ) [2025-01-16 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:13:05' and `end` < '2025-01-16 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:13:17] Production.INFO: count ==178 [2025-01-16 03:13:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:13:05 - End Time 2025-01-16 03:13:05 [2025-01-16 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258126', 'tblTempUsageDetail_20' ) start [2025-01-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258126', 'tblTempUsageDetail_20' ) end [2025-01-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258126', 'tblTempVendorCDR_20' ) start [2025-01-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258126', 'tblTempVendorCDR_20' ) end [2025-01-16 03:13:17] Production.INFO: ProcessCDR(1,14258126,1,1,2) [2025-01-16 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258126', 'tblTempUsageDetail_20' ) start [2025-01-16 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258126', 'tblTempUsageDetail_20' ) end [2025-01-16 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:13:20] Production.INFO: ==23285== Releasing lock... [2025-01-16 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:14:05 [end_date_ymd] => 2025-01-16 03:14:05 [RateCDR] => 1 ) [2025-01-16 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:14:05' and `end` < '2025-01-16 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:14:18] Production.INFO: count ==178 [2025-01-16 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:14:05 - End Time 2025-01-16 03:14:05 [2025-01-16 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258131', 'tblTempUsageDetail_20' ) start [2025-01-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258131', 'tblTempUsageDetail_20' ) end [2025-01-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258131', 'tblTempVendorCDR_20' ) start [2025-01-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258131', 'tblTempVendorCDR_20' ) end [2025-01-16 03:14:18] Production.INFO: ProcessCDR(1,14258131,1,1,2) [2025-01-16 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258131', 'tblTempUsageDetail_20' ) start [2025-01-16 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258131', 'tblTempUsageDetail_20' ) end [2025-01-16 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:14:22] Production.INFO: ==23362== Releasing lock... [2025-01-16 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:15:05 [end_date_ymd] => 2025-01-16 03:15:05 [RateCDR] => 1 ) [2025-01-16 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:15:05' and `end` < '2025-01-16 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:15:17] Production.INFO: count ==178 [2025-01-16 03:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:15:05 - End Time 2025-01-16 03:15:05 [2025-01-16 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258136', 'tblTempUsageDetail_20' ) start [2025-01-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258136', 'tblTempUsageDetail_20' ) end [2025-01-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258136', 'tblTempVendorCDR_20' ) start [2025-01-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258136', 'tblTempVendorCDR_20' ) end [2025-01-16 03:15:17] Production.INFO: ProcessCDR(1,14258136,1,1,2) [2025-01-16 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258136', 'tblTempUsageDetail_20' ) start [2025-01-16 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258136', 'tblTempUsageDetail_20' ) end [2025-01-16 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:15:21] Production.INFO: ==23439== Releasing lock... [2025-01-16 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:16:05 [end_date_ymd] => 2025-01-16 03:16:05 [RateCDR] => 1 ) [2025-01-16 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:16:05' and `end` < '2025-01-16 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:16:18] Production.INFO: count ==178 [2025-01-16 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:16:05 - End Time 2025-01-16 03:16:05 [2025-01-16 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258141', 'tblTempUsageDetail_20' ) start [2025-01-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258141', 'tblTempUsageDetail_20' ) end [2025-01-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258141', 'tblTempVendorCDR_20' ) start [2025-01-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258141', 'tblTempVendorCDR_20' ) end [2025-01-16 03:16:18] Production.INFO: ProcessCDR(1,14258141,1,1,2) [2025-01-16 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258141', 'tblTempUsageDetail_20' ) start [2025-01-16 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258141', 'tblTempUsageDetail_20' ) end [2025-01-16 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:16:22] Production.INFO: ==23518== Releasing lock... [2025-01-16 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:17:05 [end_date_ymd] => 2025-01-16 03:17:05 [RateCDR] => 1 ) [2025-01-16 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:17:05' and `end` < '2025-01-16 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:17:17] Production.INFO: count ==178 [2025-01-16 03:17:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:17:05 - End Time 2025-01-16 03:17:05 [2025-01-16 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258146', 'tblTempUsageDetail_20' ) start [2025-01-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258146', 'tblTempUsageDetail_20' ) end [2025-01-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258146', 'tblTempVendorCDR_20' ) start [2025-01-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258146', 'tblTempVendorCDR_20' ) end [2025-01-16 03:17:17] Production.INFO: ProcessCDR(1,14258146,1,1,2) [2025-01-16 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258146', 'tblTempUsageDetail_20' ) start [2025-01-16 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258146', 'tblTempUsageDetail_20' ) end [2025-01-16 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:17:20] Production.INFO: ==23673== Releasing lock... [2025-01-16 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:18:05 [end_date_ymd] => 2025-01-16 03:18:05 [RateCDR] => 1 ) [2025-01-16 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:18:05' and `end` < '2025-01-16 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:18:17] Production.INFO: count ==178 [2025-01-16 03:18:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:18:05 - End Time 2025-01-16 03:18:05 [2025-01-16 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258151', 'tblTempUsageDetail_20' ) start [2025-01-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258151', 'tblTempUsageDetail_20' ) end [2025-01-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258151', 'tblTempVendorCDR_20' ) start [2025-01-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258151', 'tblTempVendorCDR_20' ) end [2025-01-16 03:18:17] Production.INFO: ProcessCDR(1,14258151,1,1,2) [2025-01-16 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258151', 'tblTempUsageDetail_20' ) start [2025-01-16 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258151', 'tblTempUsageDetail_20' ) end [2025-01-16 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:18:21] Production.INFO: ==23752== Releasing lock... [2025-01-16 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:19:04 [end_date_ymd] => 2025-01-16 03:19:04 [RateCDR] => 1 ) [2025-01-16 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:19:04' and `end` < '2025-01-16 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:19:17] Production.INFO: count ==176 [2025-01-16 03:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:19:04 - End Time 2025-01-16 03:19:04 [2025-01-16 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258156', 'tblTempUsageDetail_20' ) start [2025-01-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258156', 'tblTempUsageDetail_20' ) end [2025-01-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258156', 'tblTempVendorCDR_20' ) start [2025-01-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258156', 'tblTempVendorCDR_20' ) end [2025-01-16 03:19:17] Production.INFO: ProcessCDR(1,14258156,1,1,2) [2025-01-16 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258156', 'tblTempUsageDetail_20' ) start [2025-01-16 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258156', 'tblTempUsageDetail_20' ) end [2025-01-16 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:19:20] Production.INFO: ==23867== Releasing lock... [2025-01-16 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-16 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:20:06 [end_date_ymd] => 2025-01-16 03:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 00:20:06' and `end` < '2025-01-16 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-01-16 03:20:18] Production.INFO: count ==168 [2025-01-16 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:20:06 - End Time 2025-01-16 03:20:06 [2025-01-16 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258162', 'tblTempUsageDetail_20' ) start [2025-01-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258162', 'tblTempUsageDetail_20' ) end [2025-01-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258162', 'tblTempVendorCDR_20' ) start [2025-01-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258162', 'tblTempVendorCDR_20' ) end [2025-01-16 03:20:18] Production.INFO: ProcessCDR(1,14258162,1,1,2) [2025-01-16 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258162', 'tblTempUsageDetail_20' ) start [2025-01-16 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258162', 'tblTempUsageDetail_20' ) end [2025-01-16 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:20:21] Production.INFO: ==23949== Releasing lock... [2025-01-16 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:21:05 [end_date_ymd] => 2025-01-16 03:21:05 [RateCDR] => 1 ) [2025-01-16 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:21:05' and `end` < '2025-01-16 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:21:17] Production.INFO: count ==164 [2025-01-16 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:21:05 - End Time 2025-01-16 03:21:05 [2025-01-16 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258167', 'tblTempUsageDetail_20' ) start [2025-01-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258167', 'tblTempUsageDetail_20' ) end [2025-01-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258167', 'tblTempVendorCDR_20' ) start [2025-01-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258167', 'tblTempVendorCDR_20' ) end [2025-01-16 03:21:17] Production.INFO: ProcessCDR(1,14258167,1,1,2) [2025-01-16 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258167', 'tblTempUsageDetail_20' ) start [2025-01-16 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258167', 'tblTempUsageDetail_20' ) end [2025-01-16 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:21:20] Production.INFO: ==24028== Releasing lock... [2025-01-16 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:21:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:22:05 [end_date_ymd] => 2025-01-16 03:22:05 [RateCDR] => 1 ) [2025-01-16 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:22:05' and `end` < '2025-01-16 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:22:17] Production.INFO: count ==163 [2025-01-16 03:22:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:22:05 - End Time 2025-01-16 03:22:05 [2025-01-16 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258172', 'tblTempUsageDetail_20' ) start [2025-01-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258172', 'tblTempUsageDetail_20' ) end [2025-01-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258172', 'tblTempVendorCDR_20' ) start [2025-01-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258172', 'tblTempVendorCDR_20' ) end [2025-01-16 03:22:17] Production.INFO: ProcessCDR(1,14258172,1,1,2) [2025-01-16 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258172', 'tblTempUsageDetail_20' ) start [2025-01-16 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258172', 'tblTempUsageDetail_20' ) end [2025-01-16 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:22:20] Production.INFO: ==24105== Releasing lock... [2025-01-16 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:23:04 [end_date_ymd] => 2025-01-16 03:23:04 [RateCDR] => 1 ) [2025-01-16 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:23:04' and `end` < '2025-01-16 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:23:17] Production.INFO: count ==162 [2025-01-16 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:23:04 - End Time 2025-01-16 03:23:04 [2025-01-16 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258177', 'tblTempUsageDetail_20' ) start [2025-01-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258177', 'tblTempUsageDetail_20' ) end [2025-01-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258177', 'tblTempVendorCDR_20' ) start [2025-01-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258177', 'tblTempVendorCDR_20' ) end [2025-01-16 03:23:17] Production.INFO: ProcessCDR(1,14258177,1,1,2) [2025-01-16 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258177', 'tblTempUsageDetail_20' ) start [2025-01-16 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258177', 'tblTempUsageDetail_20' ) end [2025-01-16 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:23:20] Production.INFO: ==24180== Releasing lock... [2025-01-16 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:24:04 [end_date_ymd] => 2025-01-16 03:24:04 [RateCDR] => 1 ) [2025-01-16 03:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:24:04' and `end` < '2025-01-16 03:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:24:17] Production.INFO: count ==162 [2025-01-16 03:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:24:04 - End Time 2025-01-16 03:24:04 [2025-01-16 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258182', 'tblTempUsageDetail_20' ) start [2025-01-16 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258182', 'tblTempUsageDetail_20' ) end [2025-01-16 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258182', 'tblTempVendorCDR_20' ) start [2025-01-16 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258182', 'tblTempVendorCDR_20' ) end [2025-01-16 03:24:17] Production.INFO: ProcessCDR(1,14258182,1,1,2) [2025-01-16 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258182', 'tblTempUsageDetail_20' ) start [2025-01-16 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258182', 'tblTempUsageDetail_20' ) end [2025-01-16 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:24:20] Production.INFO: ==24257== Releasing lock... [2025-01-16 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:25:05 [end_date_ymd] => 2025-01-16 03:25:05 [RateCDR] => 1 ) [2025-01-16 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:25:05' and `end` < '2025-01-16 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:25:17] Production.INFO: count ==162 [2025-01-16 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:25:05 - End Time 2025-01-16 03:25:05 [2025-01-16 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258187', 'tblTempUsageDetail_20' ) start [2025-01-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258187', 'tblTempUsageDetail_20' ) end [2025-01-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258187', 'tblTempVendorCDR_20' ) start [2025-01-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258187', 'tblTempVendorCDR_20' ) end [2025-01-16 03:25:17] Production.INFO: ProcessCDR(1,14258187,1,1,2) [2025-01-16 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258187', 'tblTempUsageDetail_20' ) start [2025-01-16 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258187', 'tblTempUsageDetail_20' ) end [2025-01-16 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:25:21] Production.INFO: ==24337== Releasing lock... [2025-01-16 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:26:05 [end_date_ymd] => 2025-01-16 03:26:05 [RateCDR] => 1 ) [2025-01-16 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:26:05' and `end` < '2025-01-16 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:26:17] Production.INFO: count ==162 [2025-01-16 03:26:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:26:05 - End Time 2025-01-16 03:26:05 [2025-01-16 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258192', 'tblTempUsageDetail_20' ) start [2025-01-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258192', 'tblTempUsageDetail_20' ) end [2025-01-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258192', 'tblTempVendorCDR_20' ) start [2025-01-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258192', 'tblTempVendorCDR_20' ) end [2025-01-16 03:26:17] Production.INFO: ProcessCDR(1,14258192,1,1,2) [2025-01-16 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258192', 'tblTempUsageDetail_20' ) start [2025-01-16 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258192', 'tblTempUsageDetail_20' ) end [2025-01-16 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:26:21] Production.INFO: ==24418== Releasing lock... [2025-01-16 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:27:05 [end_date_ymd] => 2025-01-16 03:27:05 [RateCDR] => 1 ) [2025-01-16 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:27:05' and `end` < '2025-01-16 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:27:17] Production.INFO: count ==162 [2025-01-16 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:27:05 - End Time 2025-01-16 03:27:05 [2025-01-16 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258197', 'tblTempUsageDetail_20' ) start [2025-01-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258197', 'tblTempUsageDetail_20' ) end [2025-01-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258197', 'tblTempVendorCDR_20' ) start [2025-01-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258197', 'tblTempVendorCDR_20' ) end [2025-01-16 03:27:17] Production.INFO: ProcessCDR(1,14258197,1,1,2) [2025-01-16 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258197', 'tblTempUsageDetail_20' ) start [2025-01-16 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258197', 'tblTempUsageDetail_20' ) end [2025-01-16 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:27:21] Production.INFO: ==24495== Releasing lock... [2025-01-16 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:28:05 [end_date_ymd] => 2025-01-16 03:28:05 [RateCDR] => 1 ) [2025-01-16 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:28:05' and `end` < '2025-01-16 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:28:17] Production.INFO: count ==162 [2025-01-16 03:28:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:28:05 - End Time 2025-01-16 03:28:05 [2025-01-16 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258202', 'tblTempUsageDetail_20' ) start [2025-01-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258202', 'tblTempUsageDetail_20' ) end [2025-01-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258202', 'tblTempVendorCDR_20' ) start [2025-01-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258202', 'tblTempVendorCDR_20' ) end [2025-01-16 03:28:17] Production.INFO: ProcessCDR(1,14258202,1,1,2) [2025-01-16 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258202', 'tblTempUsageDetail_20' ) start [2025-01-16 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258202', 'tblTempUsageDetail_20' ) end [2025-01-16 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:28:20] Production.INFO: ==24576== Releasing lock... [2025-01-16 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:29:05 [end_date_ymd] => 2025-01-16 03:29:05 [RateCDR] => 1 ) [2025-01-16 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:29:05' and `end` < '2025-01-16 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:29:18] Production.INFO: count ==162 [2025-01-16 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:29:05 - End Time 2025-01-16 03:29:05 [2025-01-16 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258207', 'tblTempUsageDetail_20' ) start [2025-01-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258207', 'tblTempUsageDetail_20' ) end [2025-01-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258207', 'tblTempVendorCDR_20' ) start [2025-01-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258207', 'tblTempVendorCDR_20' ) end [2025-01-16 03:29:18] Production.INFO: ProcessCDR(1,14258207,1,1,2) [2025-01-16 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258207', 'tblTempUsageDetail_20' ) start [2025-01-16 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258207', 'tblTempUsageDetail_20' ) end [2025-01-16 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:29:21] Production.INFO: ==24656== Releasing lock... [2025-01-16 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:30:06 [end_date_ymd] => 2025-01-16 03:30:06 [RateCDR] => 1 ) [2025-01-16 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:30:06' and `end` < '2025-01-16 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:30:18] Production.INFO: count ==154 [2025-01-16 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:30:06 - End Time 2025-01-16 03:30:06 [2025-01-16 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258212', 'tblTempUsageDetail_20' ) start [2025-01-16 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258212', 'tblTempUsageDetail_20' ) end [2025-01-16 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258212', 'tblTempVendorCDR_20' ) start [2025-01-16 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258212', 'tblTempVendorCDR_20' ) end [2025-01-16 03:30:18] Production.INFO: ProcessCDR(1,14258212,1,1,2) [2025-01-16 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258212', 'tblTempUsageDetail_20' ) start [2025-01-16 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258212', 'tblTempUsageDetail_20' ) end [2025-01-16 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:30:22] Production.INFO: ==24734== Releasing lock... [2025-01-16 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:31:05 [end_date_ymd] => 2025-01-16 03:31:05 [RateCDR] => 1 ) [2025-01-16 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:31:05' and `end` < '2025-01-16 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:31:18] Production.INFO: count ==151 [2025-01-16 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:31:05 - End Time 2025-01-16 03:31:05 [2025-01-16 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258218', 'tblTempUsageDetail_20' ) start [2025-01-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258218', 'tblTempUsageDetail_20' ) end [2025-01-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258218', 'tblTempVendorCDR_20' ) start [2025-01-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258218', 'tblTempVendorCDR_20' ) end [2025-01-16 03:31:18] Production.INFO: ProcessCDR(1,14258218,1,1,2) [2025-01-16 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258218', 'tblTempUsageDetail_20' ) start [2025-01-16 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258218', 'tblTempUsageDetail_20' ) end [2025-01-16 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:31:22] Production.INFO: ==24808== Releasing lock... [2025-01-16 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:32:05 [end_date_ymd] => 2025-01-16 03:32:05 [RateCDR] => 1 ) [2025-01-16 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:32:05' and `end` < '2025-01-16 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:32:18] Production.INFO: count ==151 [2025-01-16 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:32:05 - End Time 2025-01-16 03:32:05 [2025-01-16 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258223', 'tblTempUsageDetail_20' ) start [2025-01-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258223', 'tblTempUsageDetail_20' ) end [2025-01-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258223', 'tblTempVendorCDR_20' ) start [2025-01-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258223', 'tblTempVendorCDR_20' ) end [2025-01-16 03:32:18] Production.INFO: ProcessCDR(1,14258223,1,1,2) [2025-01-16 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258223', 'tblTempUsageDetail_20' ) start [2025-01-16 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258223', 'tblTempUsageDetail_20' ) end [2025-01-16 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:32:21] Production.INFO: ==24880== Releasing lock... [2025-01-16 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:33:05 [end_date_ymd] => 2025-01-16 03:33:05 [RateCDR] => 1 ) [2025-01-16 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:33:05' and `end` < '2025-01-16 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:33:17] Production.INFO: count ==151 [2025-01-16 03:33:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:33:05 - End Time 2025-01-16 03:33:05 [2025-01-16 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258228', 'tblTempUsageDetail_20' ) start [2025-01-16 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258228', 'tblTempUsageDetail_20' ) end [2025-01-16 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258228', 'tblTempVendorCDR_20' ) start [2025-01-16 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258228', 'tblTempVendorCDR_20' ) end [2025-01-16 03:33:17] Production.INFO: ProcessCDR(1,14258228,1,1,2) [2025-01-16 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258228', 'tblTempUsageDetail_20' ) start [2025-01-16 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258228', 'tblTempUsageDetail_20' ) end [2025-01-16 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:33:21] Production.INFO: ==24949== Releasing lock... [2025-01-16 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:34:05 [end_date_ymd] => 2025-01-16 03:34:05 [RateCDR] => 1 ) [2025-01-16 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:34:05' and `end` < '2025-01-16 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:34:17] Production.INFO: count ==151 [2025-01-16 03:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:34:05 - End Time 2025-01-16 03:34:05 [2025-01-16 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258233', 'tblTempUsageDetail_20' ) start [2025-01-16 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258233', 'tblTempUsageDetail_20' ) end [2025-01-16 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258233', 'tblTempVendorCDR_20' ) start [2025-01-16 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258233', 'tblTempVendorCDR_20' ) end [2025-01-16 03:34:17] Production.INFO: ProcessCDR(1,14258233,1,1,2) [2025-01-16 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258233', 'tblTempUsageDetail_20' ) start [2025-01-16 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258233', 'tblTempUsageDetail_20' ) end [2025-01-16 03:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:34:20] Production.INFO: ==25059== Releasing lock... [2025-01-16 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:35:04 [end_date_ymd] => 2025-01-16 03:35:04 [RateCDR] => 1 ) [2025-01-16 03:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:35:04' and `end` < '2025-01-16 03:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:35:17] Production.INFO: count ==151 [2025-01-16 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:35:04 - End Time 2025-01-16 03:35:04 [2025-01-16 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258238', 'tblTempUsageDetail_20' ) start [2025-01-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258238', 'tblTempUsageDetail_20' ) end [2025-01-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258238', 'tblTempVendorCDR_20' ) start [2025-01-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258238', 'tblTempVendorCDR_20' ) end [2025-01-16 03:35:17] Production.INFO: ProcessCDR(1,14258238,1,1,2) [2025-01-16 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258238', 'tblTempUsageDetail_20' ) start [2025-01-16 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258238', 'tblTempUsageDetail_20' ) end [2025-01-16 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:35:20] Production.INFO: ==25128== Releasing lock... [2025-01-16 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:36:05 [end_date_ymd] => 2025-01-16 03:36:05 [RateCDR] => 1 ) [2025-01-16 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:36:05' and `end` < '2025-01-16 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:36:17] Production.INFO: count ==151 [2025-01-16 03:36:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:36:05 - End Time 2025-01-16 03:36:05 [2025-01-16 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258243', 'tblTempUsageDetail_20' ) start [2025-01-16 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258243', 'tblTempUsageDetail_20' ) end [2025-01-16 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258243', 'tblTempVendorCDR_20' ) start [2025-01-16 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258243', 'tblTempVendorCDR_20' ) end [2025-01-16 03:36:17] Production.INFO: ProcessCDR(1,14258243,1,1,2) [2025-01-16 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258243', 'tblTempUsageDetail_20' ) start [2025-01-16 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258243', 'tblTempUsageDetail_20' ) end [2025-01-16 03:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:36:20] Production.INFO: ==25196== Releasing lock... [2025-01-16 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:37:05 [end_date_ymd] => 2025-01-16 03:37:05 [RateCDR] => 1 ) [2025-01-16 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:37:05' and `end` < '2025-01-16 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:37:17] Production.INFO: count ==151 [2025-01-16 03:37:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:37:05 - End Time 2025-01-16 03:37:05 [2025-01-16 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258248', 'tblTempUsageDetail_20' ) start [2025-01-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258248', 'tblTempUsageDetail_20' ) end [2025-01-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258248', 'tblTempVendorCDR_20' ) start [2025-01-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258248', 'tblTempVendorCDR_20' ) end [2025-01-16 03:37:17] Production.INFO: ProcessCDR(1,14258248,1,1,2) [2025-01-16 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258248', 'tblTempUsageDetail_20' ) start [2025-01-16 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258248', 'tblTempUsageDetail_20' ) end [2025-01-16 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:37:21] Production.INFO: ==25266== Releasing lock... [2025-01-16 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:38:05 [end_date_ymd] => 2025-01-16 03:38:05 [RateCDR] => 1 ) [2025-01-16 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:38:05' and `end` < '2025-01-16 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:38:18] Production.INFO: count ==151 [2025-01-16 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:38:05 - End Time 2025-01-16 03:38:05 [2025-01-16 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258253', 'tblTempUsageDetail_20' ) start [2025-01-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258253', 'tblTempUsageDetail_20' ) end [2025-01-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258253', 'tblTempVendorCDR_20' ) start [2025-01-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258253', 'tblTempVendorCDR_20' ) end [2025-01-16 03:38:18] Production.INFO: ProcessCDR(1,14258253,1,1,2) [2025-01-16 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258253', 'tblTempUsageDetail_20' ) start [2025-01-16 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258253', 'tblTempUsageDetail_20' ) end [2025-01-16 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:38:22] Production.INFO: ==25339== Releasing lock... [2025-01-16 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:39:05 [end_date_ymd] => 2025-01-16 03:39:05 [RateCDR] => 1 ) [2025-01-16 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:39:05' and `end` < '2025-01-16 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:39:18] Production.INFO: count ==148 [2025-01-16 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:39:05 - End Time 2025-01-16 03:39:05 [2025-01-16 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258258', 'tblTempUsageDetail_20' ) start [2025-01-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258258', 'tblTempUsageDetail_20' ) end [2025-01-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258258', 'tblTempVendorCDR_20' ) start [2025-01-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258258', 'tblTempVendorCDR_20' ) end [2025-01-16 03:39:18] Production.INFO: ProcessCDR(1,14258258,1,1,2) [2025-01-16 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258258', 'tblTempUsageDetail_20' ) start [2025-01-16 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258258', 'tblTempUsageDetail_20' ) end [2025-01-16 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:39:21] Production.INFO: ==25414== Releasing lock... [2025-01-16 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:40:06 [end_date_ymd] => 2025-01-16 03:40:06 [RateCDR] => 1 ) [2025-01-16 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:40:06' and `end` < '2025-01-16 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:40:18] Production.INFO: count ==140 [2025-01-16 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:40:06 - End Time 2025-01-16 03:40:06 [2025-01-16 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258264', 'tblTempUsageDetail_20' ) start [2025-01-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258264', 'tblTempUsageDetail_20' ) end [2025-01-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258264', 'tblTempVendorCDR_20' ) start [2025-01-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258264', 'tblTempVendorCDR_20' ) end [2025-01-16 03:40:18] Production.INFO: ProcessCDR(1,14258264,1,1,2) [2025-01-16 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258264', 'tblTempUsageDetail_20' ) start [2025-01-16 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258264', 'tblTempUsageDetail_20' ) end [2025-01-16 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:40:21] Production.INFO: ==25487== Releasing lock... [2025-01-16 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:41:04 [end_date_ymd] => 2025-01-16 03:41:04 [RateCDR] => 1 ) [2025-01-16 03:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:41:04' and `end` < '2025-01-16 03:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:41:17] Production.INFO: count ==138 [2025-01-16 03:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:41:04 - End Time 2025-01-16 03:41:04 [2025-01-16 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258269', 'tblTempUsageDetail_20' ) start [2025-01-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258269', 'tblTempUsageDetail_20' ) end [2025-01-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258269', 'tblTempVendorCDR_20' ) start [2025-01-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258269', 'tblTempVendorCDR_20' ) end [2025-01-16 03:41:17] Production.INFO: ProcessCDR(1,14258269,1,1,2) [2025-01-16 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258269', 'tblTempUsageDetail_20' ) start [2025-01-16 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258269', 'tblTempUsageDetail_20' ) end [2025-01-16 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:41:21] Production.INFO: ==25560== Releasing lock... [2025-01-16 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:42:05 [end_date_ymd] => 2025-01-16 03:42:05 [RateCDR] => 1 ) [2025-01-16 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:42:05' and `end` < '2025-01-16 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:42:17] Production.INFO: count ==138 [2025-01-16 03:42:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:42:05 - End Time 2025-01-16 03:42:05 [2025-01-16 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258274', 'tblTempUsageDetail_20' ) start [2025-01-16 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258274', 'tblTempUsageDetail_20' ) end [2025-01-16 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258274', 'tblTempVendorCDR_20' ) start [2025-01-16 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258274', 'tblTempVendorCDR_20' ) end [2025-01-16 03:42:17] Production.INFO: ProcessCDR(1,14258274,1,1,2) [2025-01-16 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258274', 'tblTempUsageDetail_20' ) start [2025-01-16 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258274', 'tblTempUsageDetail_20' ) end [2025-01-16 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:42:21] Production.INFO: ==25629== Releasing lock... [2025-01-16 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:43:04 [end_date_ymd] => 2025-01-16 03:43:04 [RateCDR] => 1 ) [2025-01-16 03:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:43:04' and `end` < '2025-01-16 03:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:43:17] Production.INFO: count ==138 [2025-01-16 03:43:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:43:04 - End Time 2025-01-16 03:43:04 [2025-01-16 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258279', 'tblTempUsageDetail_20' ) start [2025-01-16 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258279', 'tblTempUsageDetail_20' ) end [2025-01-16 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258279', 'tblTempVendorCDR_20' ) start [2025-01-16 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258279', 'tblTempVendorCDR_20' ) end [2025-01-16 03:43:17] Production.INFO: ProcessCDR(1,14258279,1,1,2) [2025-01-16 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258279', 'tblTempUsageDetail_20' ) start [2025-01-16 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258279', 'tblTempUsageDetail_20' ) end [2025-01-16 03:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:43:20] Production.INFO: ==25698== Releasing lock... [2025-01-16 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:44:05 [end_date_ymd] => 2025-01-16 03:44:05 [RateCDR] => 1 ) [2025-01-16 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:44:05' and `end` < '2025-01-16 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:44:18] Production.INFO: count ==138 [2025-01-16 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:44:05 - End Time 2025-01-16 03:44:05 [2025-01-16 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258284', 'tblTempUsageDetail_20' ) start [2025-01-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258284', 'tblTempUsageDetail_20' ) end [2025-01-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258284', 'tblTempVendorCDR_20' ) start [2025-01-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258284', 'tblTempVendorCDR_20' ) end [2025-01-16 03:44:18] Production.INFO: ProcessCDR(1,14258284,1,1,2) [2025-01-16 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258284', 'tblTempUsageDetail_20' ) start [2025-01-16 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258284', 'tblTempUsageDetail_20' ) end [2025-01-16 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:44:22] Production.INFO: ==25769== Releasing lock... [2025-01-16 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:45:05 [end_date_ymd] => 2025-01-16 03:45:05 [RateCDR] => 1 ) [2025-01-16 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:45:05' and `end` < '2025-01-16 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:45:17] Production.INFO: count ==138 [2025-01-16 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:45:05 - End Time 2025-01-16 03:45:05 [2025-01-16 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258289', 'tblTempUsageDetail_20' ) start [2025-01-16 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258289', 'tblTempUsageDetail_20' ) end [2025-01-16 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258289', 'tblTempVendorCDR_20' ) start [2025-01-16 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258289', 'tblTempVendorCDR_20' ) end [2025-01-16 03:45:17] Production.INFO: ProcessCDR(1,14258289,1,1,2) [2025-01-16 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258289', 'tblTempUsageDetail_20' ) start [2025-01-16 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258289', 'tblTempUsageDetail_20' ) end [2025-01-16 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:45:20] Production.INFO: ==25837== Releasing lock... [2025-01-16 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:46:05 [end_date_ymd] => 2025-01-16 03:46:05 [RateCDR] => 1 ) [2025-01-16 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:46:05' and `end` < '2025-01-16 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:46:18] Production.INFO: count ==138 [2025-01-16 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:46:05 - End Time 2025-01-16 03:46:05 [2025-01-16 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258294', 'tblTempUsageDetail_20' ) start [2025-01-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258294', 'tblTempUsageDetail_20' ) end [2025-01-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258294', 'tblTempVendorCDR_20' ) start [2025-01-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258294', 'tblTempVendorCDR_20' ) end [2025-01-16 03:46:18] Production.INFO: ProcessCDR(1,14258294,1,1,2) [2025-01-16 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258294', 'tblTempUsageDetail_20' ) start [2025-01-16 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258294', 'tblTempUsageDetail_20' ) end [2025-01-16 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:46:21] Production.INFO: ==25908== Releasing lock... [2025-01-16 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:47:04 [end_date_ymd] => 2025-01-16 03:47:04 [RateCDR] => 1 ) [2025-01-16 03:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:47:04' and `end` < '2025-01-16 03:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:47:17] Production.INFO: count ==138 [2025-01-16 03:47:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:47:04 - End Time 2025-01-16 03:47:04 [2025-01-16 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258299', 'tblTempUsageDetail_20' ) start [2025-01-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258299', 'tblTempUsageDetail_20' ) end [2025-01-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258299', 'tblTempVendorCDR_20' ) start [2025-01-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258299', 'tblTempVendorCDR_20' ) end [2025-01-16 03:47:17] Production.INFO: ProcessCDR(1,14258299,1,1,2) [2025-01-16 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258299', 'tblTempUsageDetail_20' ) start [2025-01-16 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258299', 'tblTempUsageDetail_20' ) end [2025-01-16 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:47:21] Production.INFO: ==25976== Releasing lock... [2025-01-16 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:48:05 [end_date_ymd] => 2025-01-16 03:48:05 [RateCDR] => 1 ) [2025-01-16 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:48:05' and `end` < '2025-01-16 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:48:18] Production.INFO: count ==138 [2025-01-16 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:48:05 - End Time 2025-01-16 03:48:05 [2025-01-16 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258304', 'tblTempUsageDetail_20' ) start [2025-01-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258304', 'tblTempUsageDetail_20' ) end [2025-01-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258304', 'tblTempVendorCDR_20' ) start [2025-01-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258304', 'tblTempVendorCDR_20' ) end [2025-01-16 03:48:18] Production.INFO: ProcessCDR(1,14258304,1,1,2) [2025-01-16 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258304', 'tblTempUsageDetail_20' ) start [2025-01-16 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258304', 'tblTempUsageDetail_20' ) end [2025-01-16 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:48:21] Production.INFO: ==26046== Releasing lock... [2025-01-16 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:49:05 [end_date_ymd] => 2025-01-16 03:49:05 [RateCDR] => 1 ) [2025-01-16 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:49:05' and `end` < '2025-01-16 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:49:17] Production.INFO: count ==138 [2025-01-16 03:49:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:49:05 - End Time 2025-01-16 03:49:05 [2025-01-16 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258309', 'tblTempUsageDetail_20' ) start [2025-01-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258309', 'tblTempUsageDetail_20' ) end [2025-01-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258309', 'tblTempVendorCDR_20' ) start [2025-01-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258309', 'tblTempVendorCDR_20' ) end [2025-01-16 03:49:17] Production.INFO: ProcessCDR(1,14258309,1,1,2) [2025-01-16 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258309', 'tblTempUsageDetail_20' ) start [2025-01-16 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258309', 'tblTempUsageDetail_20' ) end [2025-01-16 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:49:20] Production.INFO: ==26129== Releasing lock... [2025-01-16 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:50:05 [end_date_ymd] => 2025-01-16 03:50:05 [RateCDR] => 1 ) [2025-01-16 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:50:05' and `end` < '2025-01-16 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:50:18] Production.INFO: count ==132 [2025-01-16 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:50:05 - End Time 2025-01-16 03:50:05 [2025-01-16 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258314', 'tblTempUsageDetail_20' ) start [2025-01-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258314', 'tblTempUsageDetail_20' ) end [2025-01-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258314', 'tblTempVendorCDR_20' ) start [2025-01-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258314', 'tblTempVendorCDR_20' ) end [2025-01-16 03:50:18] Production.INFO: ProcessCDR(1,14258314,1,1,2) [2025-01-16 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258314', 'tblTempUsageDetail_20' ) start [2025-01-16 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258314', 'tblTempUsageDetail_20' ) end [2025-01-16 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:50:21] Production.INFO: ==26264== Releasing lock... [2025-01-16 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:51:05 [end_date_ymd] => 2025-01-16 03:51:05 [RateCDR] => 1 ) [2025-01-16 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:51:05' and `end` < '2025-01-16 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:51:17] Production.INFO: count ==128 [2025-01-16 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:51:05 - End Time 2025-01-16 03:51:05 [2025-01-16 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258320', 'tblTempUsageDetail_20' ) start [2025-01-16 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258320', 'tblTempUsageDetail_20' ) end [2025-01-16 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258320', 'tblTempVendorCDR_20' ) start [2025-01-16 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258320', 'tblTempVendorCDR_20' ) end [2025-01-16 03:51:18] Production.INFO: ProcessCDR(1,14258320,1,1,2) [2025-01-16 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258320', 'tblTempUsageDetail_20' ) start [2025-01-16 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258320', 'tblTempUsageDetail_20' ) end [2025-01-16 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:51:21] Production.INFO: ==26336== Releasing lock... [2025-01-16 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:52:05 [end_date_ymd] => 2025-01-16 03:52:05 [RateCDR] => 1 ) [2025-01-16 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:52:05' and `end` < '2025-01-16 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:52:17] Production.INFO: count ==128 [2025-01-16 03:52:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:52:05 - End Time 2025-01-16 03:52:05 [2025-01-16 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258325', 'tblTempUsageDetail_20' ) start [2025-01-16 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258325', 'tblTempUsageDetail_20' ) end [2025-01-16 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258325', 'tblTempVendorCDR_20' ) start [2025-01-16 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258325', 'tblTempVendorCDR_20' ) end [2025-01-16 03:52:17] Production.INFO: ProcessCDR(1,14258325,1,1,2) [2025-01-16 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258325', 'tblTempUsageDetail_20' ) start [2025-01-16 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258325', 'tblTempUsageDetail_20' ) end [2025-01-16 03:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:52:20] Production.INFO: ==26410== Releasing lock... [2025-01-16 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:53:05 [end_date_ymd] => 2025-01-16 03:53:05 [RateCDR] => 1 ) [2025-01-16 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:53:05' and `end` < '2025-01-16 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:53:17] Production.INFO: count ==128 [2025-01-16 03:53:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:53:05 - End Time 2025-01-16 03:53:05 [2025-01-16 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258330', 'tblTempUsageDetail_20' ) start [2025-01-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258330', 'tblTempUsageDetail_20' ) end [2025-01-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258330', 'tblTempVendorCDR_20' ) start [2025-01-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258330', 'tblTempVendorCDR_20' ) end [2025-01-16 03:53:17] Production.INFO: ProcessCDR(1,14258330,1,1,2) [2025-01-16 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258330', 'tblTempUsageDetail_20' ) start [2025-01-16 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258330', 'tblTempUsageDetail_20' ) end [2025-01-16 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:53:21] Production.INFO: ==26484== Releasing lock... [2025-01-16 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:54:05 [end_date_ymd] => 2025-01-16 03:54:05 [RateCDR] => 1 ) [2025-01-16 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:54:05' and `end` < '2025-01-16 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:54:17] Production.INFO: count ==128 [2025-01-16 03:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:54:05 - End Time 2025-01-16 03:54:05 [2025-01-16 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258335', 'tblTempUsageDetail_20' ) start [2025-01-16 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258335', 'tblTempUsageDetail_20' ) end [2025-01-16 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258335', 'tblTempVendorCDR_20' ) start [2025-01-16 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258335', 'tblTempVendorCDR_20' ) end [2025-01-16 03:54:17] Production.INFO: ProcessCDR(1,14258335,1,1,2) [2025-01-16 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258335', 'tblTempUsageDetail_20' ) start [2025-01-16 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258335', 'tblTempUsageDetail_20' ) end [2025-01-16 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:54:21] Production.INFO: ==26552== Releasing lock... [2025-01-16 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:55:06 [end_date_ymd] => 2025-01-16 03:55:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 00:55:06' and `end` < '2025-01-16 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-01-16 03:55:18] Production.INFO: count ==128 [2025-01-16 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:55:06 - End Time 2025-01-16 03:55:06 [2025-01-16 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258340', 'tblTempUsageDetail_20' ) start [2025-01-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258340', 'tblTempUsageDetail_20' ) end [2025-01-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258340', 'tblTempVendorCDR_20' ) start [2025-01-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258340', 'tblTempVendorCDR_20' ) end [2025-01-16 03:55:18] Production.INFO: ProcessCDR(1,14258340,1,1,2) [2025-01-16 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258340', 'tblTempUsageDetail_20' ) start [2025-01-16 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258340', 'tblTempUsageDetail_20' ) end [2025-01-16 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:55:21] Production.INFO: ==26629== Releasing lock... [2025-01-16 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:56:05 [end_date_ymd] => 2025-01-16 03:56:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 00:56:05' and `end` < '2025-01-16 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-01-16 03:56:17] Production.INFO: count ==128 [2025-01-16 03:56:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:56:05 - End Time 2025-01-16 03:56:05 [2025-01-16 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258345', 'tblTempUsageDetail_20' ) start [2025-01-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258345', 'tblTempUsageDetail_20' ) end [2025-01-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258345', 'tblTempVendorCDR_20' ) start [2025-01-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258345', 'tblTempVendorCDR_20' ) end [2025-01-16 03:56:17] Production.INFO: ProcessCDR(1,14258345,1,1,2) [2025-01-16 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258345', 'tblTempUsageDetail_20' ) start [2025-01-16 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258345', 'tblTempUsageDetail_20' ) end [2025-01-16 03:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:56:20] Production.INFO: ==26698== Releasing lock... [2025-01-16 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:57:05 [end_date_ymd] => 2025-01-16 03:57:05 [RateCDR] => 1 ) [2025-01-16 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:57:05' and `end` < '2025-01-16 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:57:17] Production.INFO: count ==128 [2025-01-16 03:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:57:05 - End Time 2025-01-16 03:57:05 [2025-01-16 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258350', 'tblTempUsageDetail_20' ) start [2025-01-16 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258350', 'tblTempUsageDetail_20' ) end [2025-01-16 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258350', 'tblTempVendorCDR_20' ) start [2025-01-16 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258350', 'tblTempVendorCDR_20' ) end [2025-01-16 03:57:17] Production.INFO: ProcessCDR(1,14258350,1,1,2) [2025-01-16 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258350', 'tblTempUsageDetail_20' ) start [2025-01-16 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258350', 'tblTempUsageDetail_20' ) end [2025-01-16 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:57:21] Production.INFO: ==26773== Releasing lock... [2025-01-16 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:58:05 [end_date_ymd] => 2025-01-16 03:58:05 [RateCDR] => 1 ) [2025-01-16 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:58:05' and `end` < '2025-01-16 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:58:18] Production.INFO: count ==128 [2025-01-16 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 00:58:05 - End Time 2025-01-16 03:58:05 [2025-01-16 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258355', 'tblTempUsageDetail_20' ) start [2025-01-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258355', 'tblTempUsageDetail_20' ) end [2025-01-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258355', 'tblTempVendorCDR_20' ) start [2025-01-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258355', 'tblTempVendorCDR_20' ) end [2025-01-16 03:58:18] Production.INFO: ProcessCDR(1,14258355,1,1,2) [2025-01-16 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258355', 'tblTempUsageDetail_20' ) start [2025-01-16 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258355', 'tblTempUsageDetail_20' ) end [2025-01-16 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:58:21] Production.INFO: ==26845== Releasing lock... [2025-01-16 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 00:59:04 [end_date_ymd] => 2025-01-16 03:59:04 [RateCDR] => 1 ) [2025-01-16 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 00:59:04' and `end` < '2025-01-16 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 03:59:17] Production.INFO: count ==128 [2025-01-16 03:59:17] Production.ERROR: pbx CDR StartTime 2025-01-16 00:59:04 - End Time 2025-01-16 03:59:04 [2025-01-16 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258360', 'tblTempUsageDetail_20' ) start [2025-01-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258360', 'tblTempUsageDetail_20' ) end [2025-01-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258360', 'tblTempVendorCDR_20' ) start [2025-01-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258360', 'tblTempVendorCDR_20' ) end [2025-01-16 03:59:17] Production.INFO: ProcessCDR(1,14258360,1,1,2) [2025-01-16 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258360', 'tblTempUsageDetail_20' ) start [2025-01-16 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258360', 'tblTempUsageDetail_20' ) end [2025-01-16 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 03:59:21] Production.INFO: ==26917== Releasing lock... [2025-01-16 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 03:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:00:06 [end_date_ymd] => 2025-01-16 04:00:06 [RateCDR] => 1 ) [2025-01-16 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:00:06' and `end` < '2025-01-16 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:00:18] Production.INFO: count ==118 [2025-01-16 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:00:06 - End Time 2025-01-16 04:00:06 [2025-01-16 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258366', 'tblTempUsageDetail_20' ) start [2025-01-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258366', 'tblTempUsageDetail_20' ) end [2025-01-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258366', 'tblTempVendorCDR_20' ) start [2025-01-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258366', 'tblTempVendorCDR_20' ) end [2025-01-16 04:00:19] Production.INFO: ProcessCDR(1,14258366,1,1,2) [2025-01-16 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258366', 'tblTempUsageDetail_20' ) start [2025-01-16 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258366', 'tblTempUsageDetail_20' ) end [2025-01-16 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:00:23] Production.INFO: ==26996== Releasing lock... [2025-01-16 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:01:04 [end_date_ymd] => 2025-01-16 04:01:04 [RateCDR] => 1 ) [2025-01-16 04:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:01:04' and `end` < '2025-01-16 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:01:17] Production.INFO: count ==118 [2025-01-16 04:01:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:01:04 - End Time 2025-01-16 04:01:04 [2025-01-16 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258372', 'tblTempUsageDetail_20' ) start [2025-01-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258372', 'tblTempUsageDetail_20' ) end [2025-01-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258372', 'tblTempVendorCDR_20' ) start [2025-01-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258372', 'tblTempVendorCDR_20' ) end [2025-01-16 04:01:17] Production.INFO: ProcessCDR(1,14258372,1,1,2) [2025-01-16 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258372', 'tblTempUsageDetail_20' ) start [2025-01-16 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258372', 'tblTempUsageDetail_20' ) end [2025-01-16 04:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:01:20] Production.INFO: ==27092== Releasing lock... [2025-01-16 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:02:05 [end_date_ymd] => 2025-01-16 04:02:05 [RateCDR] => 1 ) [2025-01-16 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:02:05' and `end` < '2025-01-16 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:02:18] Production.INFO: count ==118 [2025-01-16 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:02:05 - End Time 2025-01-16 04:02:05 [2025-01-16 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258377', 'tblTempUsageDetail_20' ) start [2025-01-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258377', 'tblTempUsageDetail_20' ) end [2025-01-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258377', 'tblTempVendorCDR_20' ) start [2025-01-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258377', 'tblTempVendorCDR_20' ) end [2025-01-16 04:02:18] Production.INFO: ProcessCDR(1,14258377,1,1,2) [2025-01-16 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258377', 'tblTempUsageDetail_20' ) start [2025-01-16 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258377', 'tblTempUsageDetail_20' ) end [2025-01-16 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:02:21] Production.INFO: ==27177== Releasing lock... [2025-01-16 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:03:05 [end_date_ymd] => 2025-01-16 04:03:05 [RateCDR] => 1 ) [2025-01-16 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:03:05' and `end` < '2025-01-16 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:03:17] Production.INFO: count ==114 [2025-01-16 04:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:03:05 - End Time 2025-01-16 04:03:05 [2025-01-16 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258382', 'tblTempUsageDetail_20' ) start [2025-01-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258382', 'tblTempUsageDetail_20' ) end [2025-01-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258382', 'tblTempVendorCDR_20' ) start [2025-01-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258382', 'tblTempVendorCDR_20' ) end [2025-01-16 04:03:17] Production.INFO: ProcessCDR(1,14258382,1,1,2) [2025-01-16 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258382', 'tblTempUsageDetail_20' ) start [2025-01-16 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258382', 'tblTempUsageDetail_20' ) end [2025-01-16 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:03:20] Production.INFO: ==27262== Releasing lock... [2025-01-16 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:04:05 [end_date_ymd] => 2025-01-16 04:04:05 [RateCDR] => 1 ) [2025-01-16 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:04:05' and `end` < '2025-01-16 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:04:17] Production.INFO: count ==114 [2025-01-16 04:04:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:04:05 - End Time 2025-01-16 04:04:05 [2025-01-16 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258387', 'tblTempUsageDetail_20' ) start [2025-01-16 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258387', 'tblTempUsageDetail_20' ) end [2025-01-16 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258387', 'tblTempVendorCDR_20' ) start [2025-01-16 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258387', 'tblTempVendorCDR_20' ) end [2025-01-16 04:04:17] Production.INFO: ProcessCDR(1,14258387,1,1,2) [2025-01-16 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258387', 'tblTempUsageDetail_20' ) start [2025-01-16 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258387', 'tblTempUsageDetail_20' ) end [2025-01-16 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:04:20] Production.INFO: ==27349== Releasing lock... [2025-01-16 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:05:05 [end_date_ymd] => 2025-01-16 04:05:05 [RateCDR] => 1 ) [2025-01-16 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:05:05' and `end` < '2025-01-16 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:05:17] Production.INFO: count ==114 [2025-01-16 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:05:05 - End Time 2025-01-16 04:05:05 [2025-01-16 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258392', 'tblTempUsageDetail_20' ) start [2025-01-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258392', 'tblTempUsageDetail_20' ) end [2025-01-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258392', 'tblTempVendorCDR_20' ) start [2025-01-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258392', 'tblTempVendorCDR_20' ) end [2025-01-16 04:05:17] Production.INFO: ProcessCDR(1,14258392,1,1,2) [2025-01-16 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258392', 'tblTempUsageDetail_20' ) start [2025-01-16 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258392', 'tblTempUsageDetail_20' ) end [2025-01-16 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:05:21] Production.INFO: ==27473== Releasing lock... [2025-01-16 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:06:05 [end_date_ymd] => 2025-01-16 04:06:05 [RateCDR] => 1 ) [2025-01-16 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:06:05' and `end` < '2025-01-16 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:06:17] Production.INFO: count ==114 [2025-01-16 04:06:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:06:05 - End Time 2025-01-16 04:06:05 [2025-01-16 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258397', 'tblTempUsageDetail_20' ) start [2025-01-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258397', 'tblTempUsageDetail_20' ) end [2025-01-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258397', 'tblTempVendorCDR_20' ) start [2025-01-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258397', 'tblTempVendorCDR_20' ) end [2025-01-16 04:06:17] Production.INFO: ProcessCDR(1,14258397,1,1,2) [2025-01-16 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258397', 'tblTempUsageDetail_20' ) start [2025-01-16 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258397', 'tblTempUsageDetail_20' ) end [2025-01-16 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:06:21] Production.INFO: ==27559== Releasing lock... [2025-01-16 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:07:05 [end_date_ymd] => 2025-01-16 04:07:05 [RateCDR] => 1 ) [2025-01-16 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:07:05' and `end` < '2025-01-16 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:07:17] Production.INFO: count ==114 [2025-01-16 04:07:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:07:05 - End Time 2025-01-16 04:07:05 [2025-01-16 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258402', 'tblTempUsageDetail_20' ) start [2025-01-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258402', 'tblTempUsageDetail_20' ) end [2025-01-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258402', 'tblTempVendorCDR_20' ) start [2025-01-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258402', 'tblTempVendorCDR_20' ) end [2025-01-16 04:07:17] Production.INFO: ProcessCDR(1,14258402,1,1,2) [2025-01-16 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258402', 'tblTempUsageDetail_20' ) start [2025-01-16 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258402', 'tblTempUsageDetail_20' ) end [2025-01-16 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:07:20] Production.INFO: ==27644== Releasing lock... [2025-01-16 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:08:05 [end_date_ymd] => 2025-01-16 04:08:05 [RateCDR] => 1 ) [2025-01-16 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:08:05' and `end` < '2025-01-16 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:08:17] Production.INFO: count ==114 [2025-01-16 04:08:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:08:05 - End Time 2025-01-16 04:08:05 [2025-01-16 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258407', 'tblTempUsageDetail_20' ) start [2025-01-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258407', 'tblTempUsageDetail_20' ) end [2025-01-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258407', 'tblTempVendorCDR_20' ) start [2025-01-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258407', 'tblTempVendorCDR_20' ) end [2025-01-16 04:08:17] Production.INFO: ProcessCDR(1,14258407,1,1,2) [2025-01-16 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258407', 'tblTempUsageDetail_20' ) start [2025-01-16 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258407', 'tblTempUsageDetail_20' ) end [2025-01-16 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:08:21] Production.INFO: ==27731== Releasing lock... [2025-01-16 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:09:04 [end_date_ymd] => 2025-01-16 04:09:04 [RateCDR] => 1 ) [2025-01-16 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:09:04' and `end` < '2025-01-16 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:09:17] Production.INFO: count ==114 [2025-01-16 04:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:09:04 - End Time 2025-01-16 04:09:04 [2025-01-16 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258412', 'tblTempUsageDetail_20' ) start [2025-01-16 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258412', 'tblTempUsageDetail_20' ) end [2025-01-16 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258412', 'tblTempVendorCDR_20' ) start [2025-01-16 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258412', 'tblTempVendorCDR_20' ) end [2025-01-16 04:09:17] Production.INFO: ProcessCDR(1,14258412,1,1,2) [2025-01-16 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258412', 'tblTempUsageDetail_20' ) start [2025-01-16 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258412', 'tblTempUsageDetail_20' ) end [2025-01-16 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:09:20] Production.INFO: ==27813== Releasing lock... [2025-01-16 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:10:06 [end_date_ymd] => 2025-01-16 04:10:06 [RateCDR] => 1 ) [2025-01-16 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:10:06' and `end` < '2025-01-16 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:10:18] Production.INFO: count ==106 [2025-01-16 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:10:06 - End Time 2025-01-16 04:10:06 [2025-01-16 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258418', 'tblTempUsageDetail_20' ) start [2025-01-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258418', 'tblTempUsageDetail_20' ) end [2025-01-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258418', 'tblTempVendorCDR_20' ) start [2025-01-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258418', 'tblTempVendorCDR_20' ) end [2025-01-16 04:10:18] Production.INFO: ProcessCDR(1,14258418,1,1,2) [2025-01-16 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258418', 'tblTempUsageDetail_20' ) start [2025-01-16 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258418', 'tblTempUsageDetail_20' ) end [2025-01-16 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:10:22] Production.INFO: ==27893== Releasing lock... [2025-01-16 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:11:05 [end_date_ymd] => 2025-01-16 04:11:05 [RateCDR] => 1 ) [2025-01-16 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:11:05' and `end` < '2025-01-16 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:11:18] Production.INFO: count ==104 [2025-01-16 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:11:05 - End Time 2025-01-16 04:11:05 [2025-01-16 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258423', 'tblTempUsageDetail_20' ) start [2025-01-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258423', 'tblTempUsageDetail_20' ) end [2025-01-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258423', 'tblTempVendorCDR_20' ) start [2025-01-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258423', 'tblTempVendorCDR_20' ) end [2025-01-16 04:11:18] Production.INFO: ProcessCDR(1,14258423,1,1,2) [2025-01-16 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258423', 'tblTempUsageDetail_20' ) start [2025-01-16 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258423', 'tblTempUsageDetail_20' ) end [2025-01-16 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:11:21] Production.INFO: ==27978== Releasing lock... [2025-01-16 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:12:05 [end_date_ymd] => 2025-01-16 04:12:05 [RateCDR] => 1 ) [2025-01-16 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:12:05' and `end` < '2025-01-16 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:12:17] Production.INFO: count ==103 [2025-01-16 04:12:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:12:05 - End Time 2025-01-16 04:12:05 [2025-01-16 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258428', 'tblTempUsageDetail_20' ) start [2025-01-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258428', 'tblTempUsageDetail_20' ) end [2025-01-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258428', 'tblTempVendorCDR_20' ) start [2025-01-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258428', 'tblTempVendorCDR_20' ) end [2025-01-16 04:12:17] Production.INFO: ProcessCDR(1,14258428,1,1,2) [2025-01-16 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258428', 'tblTempUsageDetail_20' ) start [2025-01-16 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258428', 'tblTempUsageDetail_20' ) end [2025-01-16 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:12:20] Production.INFO: ==28057== Releasing lock... [2025-01-16 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:13:05 [end_date_ymd] => 2025-01-16 04:13:05 [RateCDR] => 1 ) [2025-01-16 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:13:05' and `end` < '2025-01-16 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:13:18] Production.INFO: count ==103 [2025-01-16 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:13:05 - End Time 2025-01-16 04:13:05 [2025-01-16 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258433', 'tblTempUsageDetail_20' ) start [2025-01-16 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258433', 'tblTempUsageDetail_20' ) end [2025-01-16 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258433', 'tblTempVendorCDR_20' ) start [2025-01-16 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258433', 'tblTempVendorCDR_20' ) end [2025-01-16 04:13:18] Production.INFO: ProcessCDR(1,14258433,1,1,2) [2025-01-16 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258433', 'tblTempUsageDetail_20' ) start [2025-01-16 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258433', 'tblTempUsageDetail_20' ) end [2025-01-16 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:13:21] Production.INFO: ==28138== Releasing lock... [2025-01-16 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:14:05 [end_date_ymd] => 2025-01-16 04:14:05 [RateCDR] => 1 ) [2025-01-16 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:14:05' and `end` < '2025-01-16 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:14:17] Production.INFO: count ==99 [2025-01-16 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:14:05 - End Time 2025-01-16 04:14:05 [2025-01-16 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258438', 'tblTempUsageDetail_20' ) start [2025-01-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258438', 'tblTempUsageDetail_20' ) end [2025-01-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258438', 'tblTempVendorCDR_20' ) start [2025-01-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258438', 'tblTempVendorCDR_20' ) end [2025-01-16 04:14:17] Production.INFO: ProcessCDR(1,14258438,1,1,2) [2025-01-16 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258438', 'tblTempUsageDetail_20' ) start [2025-01-16 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258438', 'tblTempUsageDetail_20' ) end [2025-01-16 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:14:20] Production.INFO: ==28219== Releasing lock... [2025-01-16 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:15:05 [end_date_ymd] => 2025-01-16 04:15:05 [RateCDR] => 1 ) [2025-01-16 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:15:05' and `end` < '2025-01-16 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:15:17] Production.INFO: count ==99 [2025-01-16 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:15:05 - End Time 2025-01-16 04:15:05 [2025-01-16 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258443', 'tblTempUsageDetail_20' ) start [2025-01-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258443', 'tblTempUsageDetail_20' ) end [2025-01-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258443', 'tblTempVendorCDR_20' ) start [2025-01-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258443', 'tblTempVendorCDR_20' ) end [2025-01-16 04:15:17] Production.INFO: ProcessCDR(1,14258443,1,1,2) [2025-01-16 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258443', 'tblTempUsageDetail_20' ) start [2025-01-16 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258443', 'tblTempUsageDetail_20' ) end [2025-01-16 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:15:21] Production.INFO: ==28300== Releasing lock... [2025-01-16 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:16:05 [end_date_ymd] => 2025-01-16 04:16:05 [RateCDR] => 1 ) [2025-01-16 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:16:05' and `end` < '2025-01-16 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:16:17] Production.INFO: count ==99 [2025-01-16 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:16:05 - End Time 2025-01-16 04:16:05 [2025-01-16 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258448', 'tblTempUsageDetail_20' ) start [2025-01-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258448', 'tblTempUsageDetail_20' ) end [2025-01-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258448', 'tblTempVendorCDR_20' ) start [2025-01-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258448', 'tblTempVendorCDR_20' ) end [2025-01-16 04:16:17] Production.INFO: ProcessCDR(1,14258448,1,1,2) [2025-01-16 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258448', 'tblTempUsageDetail_20' ) start [2025-01-16 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258448', 'tblTempUsageDetail_20' ) end [2025-01-16 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:16:21] Production.INFO: ==28380== Releasing lock... [2025-01-16 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:17:05 [end_date_ymd] => 2025-01-16 04:17:05 [RateCDR] => 1 ) [2025-01-16 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:17:05' and `end` < '2025-01-16 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:17:17] Production.INFO: count ==99 [2025-01-16 04:17:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:17:05 - End Time 2025-01-16 04:17:05 [2025-01-16 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258453', 'tblTempUsageDetail_20' ) start [2025-01-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258453', 'tblTempUsageDetail_20' ) end [2025-01-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258453', 'tblTempVendorCDR_20' ) start [2025-01-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258453', 'tblTempVendorCDR_20' ) end [2025-01-16 04:17:17] Production.INFO: ProcessCDR(1,14258453,1,1,2) [2025-01-16 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258453', 'tblTempUsageDetail_20' ) start [2025-01-16 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258453', 'tblTempUsageDetail_20' ) end [2025-01-16 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:17:20] Production.INFO: ==28460== Releasing lock... [2025-01-16 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:18:05 [end_date_ymd] => 2025-01-16 04:18:05 [RateCDR] => 1 ) [2025-01-16 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:18:05' and `end` < '2025-01-16 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:18:18] Production.INFO: count ==99 [2025-01-16 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:18:05 - End Time 2025-01-16 04:18:05 [2025-01-16 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258458', 'tblTempUsageDetail_20' ) start [2025-01-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258458', 'tblTempUsageDetail_20' ) end [2025-01-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258458', 'tblTempVendorCDR_20' ) start [2025-01-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258458', 'tblTempVendorCDR_20' ) end [2025-01-16 04:18:18] Production.INFO: ProcessCDR(1,14258458,1,1,2) [2025-01-16 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258458', 'tblTempUsageDetail_20' ) start [2025-01-16 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258458', 'tblTempUsageDetail_20' ) end [2025-01-16 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:18:21] Production.INFO: ==28550== Releasing lock... [2025-01-16 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:19:04 [end_date_ymd] => 2025-01-16 04:19:04 [RateCDR] => 1 ) [2025-01-16 04:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:19:04' and `end` < '2025-01-16 04:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:19:17] Production.INFO: count ==99 [2025-01-16 04:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:19:04 - End Time 2025-01-16 04:19:04 [2025-01-16 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258463', 'tblTempUsageDetail_20' ) start [2025-01-16 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258463', 'tblTempUsageDetail_20' ) end [2025-01-16 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258463', 'tblTempVendorCDR_20' ) start [2025-01-16 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258463', 'tblTempVendorCDR_20' ) end [2025-01-16 04:19:17] Production.INFO: ProcessCDR(1,14258463,1,1,2) [2025-01-16 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258463', 'tblTempUsageDetail_20' ) start [2025-01-16 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258463', 'tblTempUsageDetail_20' ) end [2025-01-16 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:19:20] Production.INFO: ==28629== Releasing lock... [2025-01-16 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:20:05 [end_date_ymd] => 2025-01-16 04:20:05 [RateCDR] => 1 ) [2025-01-16 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:20:05' and `end` < '2025-01-16 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:20:18] Production.INFO: count ==99 [2025-01-16 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:20:05 - End Time 2025-01-16 04:20:05 [2025-01-16 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258468', 'tblTempUsageDetail_20' ) start [2025-01-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258468', 'tblTempUsageDetail_20' ) end [2025-01-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258468', 'tblTempVendorCDR_20' ) start [2025-01-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258468', 'tblTempVendorCDR_20' ) end [2025-01-16 04:20:18] Production.INFO: ProcessCDR(1,14258468,1,1,2) [2025-01-16 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258468', 'tblTempUsageDetail_20' ) start [2025-01-16 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258468', 'tblTempUsageDetail_20' ) end [2025-01-16 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:20:22] Production.INFO: ==28715== Releasing lock... [2025-01-16 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:21:04 [end_date_ymd] => 2025-01-16 04:21:04 [RateCDR] => 1 ) [2025-01-16 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:21:04' and `end` < '2025-01-16 04:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:21:17] Production.INFO: count ==99 [2025-01-16 04:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:21:04 - End Time 2025-01-16 04:21:04 [2025-01-16 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258474', 'tblTempUsageDetail_20' ) start [2025-01-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258474', 'tblTempUsageDetail_20' ) end [2025-01-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258474', 'tblTempVendorCDR_20' ) start [2025-01-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258474', 'tblTempVendorCDR_20' ) end [2025-01-16 04:21:17] Production.INFO: ProcessCDR(1,14258474,1,1,2) [2025-01-16 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258474', 'tblTempUsageDetail_20' ) start [2025-01-16 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258474', 'tblTempUsageDetail_20' ) end [2025-01-16 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:21:20] Production.INFO: ==28836== Releasing lock... [2025-01-16 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:22:05 [end_date_ymd] => 2025-01-16 04:22:05 [RateCDR] => 1 ) [2025-01-16 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:22:05' and `end` < '2025-01-16 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:22:18] Production.INFO: count ==99 [2025-01-16 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:22:05 - End Time 2025-01-16 04:22:05 [2025-01-16 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258479', 'tblTempUsageDetail_20' ) start [2025-01-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258479', 'tblTempUsageDetail_20' ) end [2025-01-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258479', 'tblTempVendorCDR_20' ) start [2025-01-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258479', 'tblTempVendorCDR_20' ) end [2025-01-16 04:22:18] Production.INFO: ProcessCDR(1,14258479,1,1,2) [2025-01-16 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258479', 'tblTempUsageDetail_20' ) start [2025-01-16 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258479', 'tblTempUsageDetail_20' ) end [2025-01-16 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:22:21] Production.INFO: ==28918== Releasing lock... [2025-01-16 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:23:05 [end_date_ymd] => 2025-01-16 04:23:05 [RateCDR] => 1 ) [2025-01-16 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:23:05' and `end` < '2025-01-16 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:23:18] Production.INFO: count ==99 [2025-01-16 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:23:05 - End Time 2025-01-16 04:23:05 [2025-01-16 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258484', 'tblTempUsageDetail_20' ) start [2025-01-16 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258484', 'tblTempUsageDetail_20' ) end [2025-01-16 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258484', 'tblTempVendorCDR_20' ) start [2025-01-16 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258484', 'tblTempVendorCDR_20' ) end [2025-01-16 04:23:18] Production.INFO: ProcessCDR(1,14258484,1,1,2) [2025-01-16 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258484', 'tblTempUsageDetail_20' ) start [2025-01-16 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258484', 'tblTempUsageDetail_20' ) end [2025-01-16 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:23:21] Production.INFO: ==28999== Releasing lock... [2025-01-16 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:24:05 [end_date_ymd] => 2025-01-16 04:24:05 [RateCDR] => 1 ) [2025-01-16 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:24:05' and `end` < '2025-01-16 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:24:17] Production.INFO: count ==99 [2025-01-16 04:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:24:05 - End Time 2025-01-16 04:24:05 [2025-01-16 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258489', 'tblTempUsageDetail_20' ) start [2025-01-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258489', 'tblTempUsageDetail_20' ) end [2025-01-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258489', 'tblTempVendorCDR_20' ) start [2025-01-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258489', 'tblTempVendorCDR_20' ) end [2025-01-16 04:24:17] Production.INFO: ProcessCDR(1,14258489,1,1,2) [2025-01-16 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258489', 'tblTempUsageDetail_20' ) start [2025-01-16 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258489', 'tblTempUsageDetail_20' ) end [2025-01-16 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:24:20] Production.INFO: ==29079== Releasing lock... [2025-01-16 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:25:05 [end_date_ymd] => 2025-01-16 04:25:05 [RateCDR] => 1 ) [2025-01-16 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:25:05' and `end` < '2025-01-16 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:25:17] Production.INFO: count ==99 [2025-01-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:25:05 - End Time 2025-01-16 04:25:05 [2025-01-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258494', 'tblTempUsageDetail_20' ) start [2025-01-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258494', 'tblTempUsageDetail_20' ) end [2025-01-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258494', 'tblTempVendorCDR_20' ) start [2025-01-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258494', 'tblTempVendorCDR_20' ) end [2025-01-16 04:25:17] Production.INFO: ProcessCDR(1,14258494,1,1,2) [2025-01-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258494', 'tblTempUsageDetail_20' ) start [2025-01-16 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258494', 'tblTempUsageDetail_20' ) end [2025-01-16 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:25:20] Production.INFO: ==29157== Releasing lock... [2025-01-16 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:26:04 [end_date_ymd] => 2025-01-16 04:26:04 [RateCDR] => 1 ) [2025-01-16 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:26:04' and `end` < '2025-01-16 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:26:17] Production.INFO: count ==98 [2025-01-16 04:26:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:26:04 - End Time 2025-01-16 04:26:04 [2025-01-16 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258499', 'tblTempUsageDetail_20' ) start [2025-01-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258499', 'tblTempUsageDetail_20' ) end [2025-01-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258499', 'tblTempVendorCDR_20' ) start [2025-01-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258499', 'tblTempVendorCDR_20' ) end [2025-01-16 04:26:17] Production.INFO: ProcessCDR(1,14258499,1,1,2) [2025-01-16 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258499', 'tblTempUsageDetail_20' ) start [2025-01-16 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258499', 'tblTempUsageDetail_20' ) end [2025-01-16 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:26:20] Production.INFO: ==29238== Releasing lock... [2025-01-16 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:27:05 [end_date_ymd] => 2025-01-16 04:27:05 [RateCDR] => 1 ) [2025-01-16 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:27:05' and `end` < '2025-01-16 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:27:17] Production.INFO: count ==98 [2025-01-16 04:27:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:27:05 - End Time 2025-01-16 04:27:05 [2025-01-16 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258504', 'tblTempUsageDetail_20' ) start [2025-01-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258504', 'tblTempUsageDetail_20' ) end [2025-01-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258504', 'tblTempVendorCDR_20' ) start [2025-01-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258504', 'tblTempVendorCDR_20' ) end [2025-01-16 04:27:17] Production.INFO: ProcessCDR(1,14258504,1,1,2) [2025-01-16 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258504', 'tblTempUsageDetail_20' ) start [2025-01-16 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258504', 'tblTempUsageDetail_20' ) end [2025-01-16 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:27:21] Production.INFO: ==29316== Releasing lock... [2025-01-16 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:28:04 [end_date_ymd] => 2025-01-16 04:28:04 [RateCDR] => 1 ) [2025-01-16 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:28:04' and `end` < '2025-01-16 04:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:28:16] Production.INFO: count ==98 [2025-01-16 04:28:16] Production.ERROR: pbx CDR StartTime 2025-01-16 01:28:04 - End Time 2025-01-16 04:28:04 [2025-01-16 04:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258509', 'tblTempUsageDetail_20' ) start [2025-01-16 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258509', 'tblTempUsageDetail_20' ) end [2025-01-16 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258509', 'tblTempVendorCDR_20' ) start [2025-01-16 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258509', 'tblTempVendorCDR_20' ) end [2025-01-16 04:28:16] Production.INFO: ProcessCDR(1,14258509,1,1,2) [2025-01-16 04:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258509', 'tblTempUsageDetail_20' ) start [2025-01-16 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258509', 'tblTempUsageDetail_20' ) end [2025-01-16 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:28:20] Production.INFO: ==29399== Releasing lock... [2025-01-16 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:29:05 [end_date_ymd] => 2025-01-16 04:29:05 [RateCDR] => 1 ) [2025-01-16 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:29:05' and `end` < '2025-01-16 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:29:18] Production.INFO: count ==97 [2025-01-16 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:29:05 - End Time 2025-01-16 04:29:05 [2025-01-16 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258514', 'tblTempUsageDetail_20' ) start [2025-01-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258514', 'tblTempUsageDetail_20' ) end [2025-01-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258514', 'tblTempVendorCDR_20' ) start [2025-01-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258514', 'tblTempVendorCDR_20' ) end [2025-01-16 04:29:18] Production.INFO: ProcessCDR(1,14258514,1,1,2) [2025-01-16 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258514', 'tblTempUsageDetail_20' ) start [2025-01-16 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258514', 'tblTempUsageDetail_20' ) end [2025-01-16 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:29:21] Production.INFO: ==29478== Releasing lock... [2025-01-16 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:30:06 [end_date_ymd] => 2025-01-16 04:30:06 [RateCDR] => 1 ) [2025-01-16 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:30:06' and `end` < '2025-01-16 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:30:19] Production.INFO: count ==91 [2025-01-16 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-16 01:30:06 - End Time 2025-01-16 04:30:06 [2025-01-16 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258521', 'tblTempUsageDetail_20' ) start [2025-01-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258521', 'tblTempUsageDetail_20' ) end [2025-01-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258521', 'tblTempVendorCDR_20' ) start [2025-01-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258521', 'tblTempVendorCDR_20' ) end [2025-01-16 04:30:19] Production.INFO: ProcessCDR(1,14258521,1,1,2) [2025-01-16 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258521', 'tblTempUsageDetail_20' ) start [2025-01-16 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258521', 'tblTempUsageDetail_20' ) end [2025-01-16 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:30:22] Production.INFO: ==29565== Releasing lock... [2025-01-16 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:31:05 [end_date_ymd] => 2025-01-16 04:31:05 [RateCDR] => 1 ) [2025-01-16 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:31:05' and `end` < '2025-01-16 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:31:17] Production.INFO: count ==90 [2025-01-16 04:31:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:31:05 - End Time 2025-01-16 04:31:05 [2025-01-16 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258526', 'tblTempUsageDetail_20' ) start [2025-01-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258526', 'tblTempUsageDetail_20' ) end [2025-01-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258526', 'tblTempVendorCDR_20' ) start [2025-01-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258526', 'tblTempVendorCDR_20' ) end [2025-01-16 04:31:17] Production.INFO: ProcessCDR(1,14258526,1,1,2) [2025-01-16 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258526', 'tblTempUsageDetail_20' ) start [2025-01-16 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258526', 'tblTempUsageDetail_20' ) end [2025-01-16 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:31:21] Production.INFO: ==29744== Releasing lock... [2025-01-16 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:32:05 [end_date_ymd] => 2025-01-16 04:32:05 [RateCDR] => 1 ) [2025-01-16 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:32:05' and `end` < '2025-01-16 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:32:19] Production.INFO: count ==90 [2025-01-16 04:32:19] Production.ERROR: pbx CDR StartTime 2025-01-16 01:32:05 - End Time 2025-01-16 04:32:05 [2025-01-16 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258531', 'tblTempUsageDetail_20' ) start [2025-01-16 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258531', 'tblTempUsageDetail_20' ) end [2025-01-16 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258531', 'tblTempVendorCDR_20' ) start [2025-01-16 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258531', 'tblTempVendorCDR_20' ) end [2025-01-16 04:32:19] Production.INFO: ProcessCDR(1,14258531,1,1,2) [2025-01-16 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258531', 'tblTempUsageDetail_20' ) start [2025-01-16 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258531', 'tblTempUsageDetail_20' ) end [2025-01-16 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:32:22] Production.INFO: ==29824== Releasing lock... [2025-01-16 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:33:05 [end_date_ymd] => 2025-01-16 04:33:05 [RateCDR] => 1 ) [2025-01-16 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:33:05' and `end` < '2025-01-16 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:33:17] Production.INFO: count ==90 [2025-01-16 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:33:05 - End Time 2025-01-16 04:33:05 [2025-01-16 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258536', 'tblTempUsageDetail_20' ) start [2025-01-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258536', 'tblTempUsageDetail_20' ) end [2025-01-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258536', 'tblTempVendorCDR_20' ) start [2025-01-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258536', 'tblTempVendorCDR_20' ) end [2025-01-16 04:33:17] Production.INFO: ProcessCDR(1,14258536,1,1,2) [2025-01-16 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258536', 'tblTempUsageDetail_20' ) start [2025-01-16 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258536', 'tblTempUsageDetail_20' ) end [2025-01-16 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:33:21] Production.INFO: ==29901== Releasing lock... [2025-01-16 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:34:06 [end_date_ymd] => 2025-01-16 04:34:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 01:34:06' and `end` < '2025-01-16 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-01-16 04:34:18] Production.INFO: count ==87 [2025-01-16 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:34:06 - End Time 2025-01-16 04:34:06 [2025-01-16 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258541', 'tblTempUsageDetail_20' ) start [2025-01-16 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258541', 'tblTempUsageDetail_20' ) end [2025-01-16 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258541', 'tblTempVendorCDR_20' ) start [2025-01-16 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258541', 'tblTempVendorCDR_20' ) end [2025-01-16 04:34:18] Production.INFO: ProcessCDR(1,14258541,1,1,2) [2025-01-16 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258541', 'tblTempUsageDetail_20' ) start [2025-01-16 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258541', 'tblTempUsageDetail_20' ) end [2025-01-16 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:34:21] Production.INFO: ==29986== Releasing lock... [2025-01-16 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:35:05 [end_date_ymd] => 2025-01-16 04:35:05 [RateCDR] => 1 ) [2025-01-16 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:35:05' and `end` < '2025-01-16 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:35:18] Production.INFO: count ==87 [2025-01-16 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:35:05 - End Time 2025-01-16 04:35:05 [2025-01-16 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258546', 'tblTempUsageDetail_20' ) start [2025-01-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258546', 'tblTempUsageDetail_20' ) end [2025-01-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258546', 'tblTempVendorCDR_20' ) start [2025-01-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258546', 'tblTempVendorCDR_20' ) end [2025-01-16 04:35:18] Production.INFO: ProcessCDR(1,14258546,1,1,2) [2025-01-16 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258546', 'tblTempUsageDetail_20' ) start [2025-01-16 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258546', 'tblTempUsageDetail_20' ) end [2025-01-16 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:35:21] Production.INFO: ==30072== Releasing lock... [2025-01-16 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:36:05 [end_date_ymd] => 2025-01-16 04:36:05 [RateCDR] => 1 ) [2025-01-16 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:36:05' and `end` < '2025-01-16 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:36:17] Production.INFO: count ==83 [2025-01-16 04:36:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:36:05 - End Time 2025-01-16 04:36:05 [2025-01-16 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258551', 'tblTempUsageDetail_20' ) start [2025-01-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258551', 'tblTempUsageDetail_20' ) end [2025-01-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258551', 'tblTempVendorCDR_20' ) start [2025-01-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258551', 'tblTempVendorCDR_20' ) end [2025-01-16 04:36:17] Production.INFO: ProcessCDR(1,14258551,1,1,2) [2025-01-16 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258551', 'tblTempUsageDetail_20' ) start [2025-01-16 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258551', 'tblTempUsageDetail_20' ) end [2025-01-16 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:36:21] Production.INFO: ==30152== Releasing lock... [2025-01-16 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:37:05 [end_date_ymd] => 2025-01-16 04:37:05 [RateCDR] => 1 ) [2025-01-16 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:37:05' and `end` < '2025-01-16 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:37:17] Production.INFO: count ==83 [2025-01-16 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:37:05 - End Time 2025-01-16 04:37:05 [2025-01-16 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258556', 'tblTempUsageDetail_20' ) start [2025-01-16 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258556', 'tblTempUsageDetail_20' ) end [2025-01-16 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258556', 'tblTempVendorCDR_20' ) start [2025-01-16 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258556', 'tblTempVendorCDR_20' ) end [2025-01-16 04:37:17] Production.INFO: ProcessCDR(1,14258556,1,1,2) [2025-01-16 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258556', 'tblTempUsageDetail_20' ) start [2025-01-16 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258556', 'tblTempUsageDetail_20' ) end [2025-01-16 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:37:21] Production.INFO: ==30270== Releasing lock... [2025-01-16 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:38:05 [end_date_ymd] => 2025-01-16 04:38:05 [RateCDR] => 1 ) [2025-01-16 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:38:05' and `end` < '2025-01-16 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:38:18] Production.INFO: count ==83 [2025-01-16 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:38:05 - End Time 2025-01-16 04:38:05 [2025-01-16 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258561', 'tblTempUsageDetail_20' ) start [2025-01-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258561', 'tblTempUsageDetail_20' ) end [2025-01-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258561', 'tblTempVendorCDR_20' ) start [2025-01-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258561', 'tblTempVendorCDR_20' ) end [2025-01-16 04:38:18] Production.INFO: ProcessCDR(1,14258561,1,1,2) [2025-01-16 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258561', 'tblTempUsageDetail_20' ) start [2025-01-16 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258561', 'tblTempUsageDetail_20' ) end [2025-01-16 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:38:21] Production.INFO: ==30351== Releasing lock... [2025-01-16 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:39:05 [end_date_ymd] => 2025-01-16 04:39:05 [RateCDR] => 1 ) [2025-01-16 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:39:05' and `end` < '2025-01-16 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:39:17] Production.INFO: count ==83 [2025-01-16 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:39:05 - End Time 2025-01-16 04:39:05 [2025-01-16 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258566', 'tblTempUsageDetail_20' ) start [2025-01-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258566', 'tblTempUsageDetail_20' ) end [2025-01-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258566', 'tblTempVendorCDR_20' ) start [2025-01-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258566', 'tblTempVendorCDR_20' ) end [2025-01-16 04:39:17] Production.INFO: ProcessCDR(1,14258566,1,1,2) [2025-01-16 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258566', 'tblTempUsageDetail_20' ) start [2025-01-16 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258566', 'tblTempUsageDetail_20' ) end [2025-01-16 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:39:21] Production.INFO: ==30430== Releasing lock... [2025-01-16 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:40:05 [end_date_ymd] => 2025-01-16 04:40:05 [RateCDR] => 1 ) [2025-01-16 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:40:05' and `end` < '2025-01-16 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:40:17] Production.INFO: count ==77 [2025-01-16 04:40:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:40:05 - End Time 2025-01-16 04:40:05 [2025-01-16 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258572', 'tblTempUsageDetail_20' ) start [2025-01-16 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258572', 'tblTempUsageDetail_20' ) end [2025-01-16 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258572', 'tblTempVendorCDR_20' ) start [2025-01-16 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258572', 'tblTempVendorCDR_20' ) end [2025-01-16 04:40:17] Production.INFO: ProcessCDR(1,14258572,1,1,2) [2025-01-16 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258572', 'tblTempUsageDetail_20' ) start [2025-01-16 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258572', 'tblTempUsageDetail_20' ) end [2025-01-16 04:40:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:40:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:40:20] Production.INFO: ==30517== Releasing lock... [2025-01-16 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:40:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:41:05 [end_date_ymd] => 2025-01-16 04:41:05 [RateCDR] => 1 ) [2025-01-16 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:41:05' and `end` < '2025-01-16 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:41:19] Production.INFO: count ==75 [2025-01-16 04:41:19] Production.ERROR: pbx CDR StartTime 2025-01-16 01:41:05 - End Time 2025-01-16 04:41:05 [2025-01-16 04:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258577', 'tblTempUsageDetail_20' ) start [2025-01-16 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258577', 'tblTempUsageDetail_20' ) end [2025-01-16 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258577', 'tblTempVendorCDR_20' ) start [2025-01-16 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258577', 'tblTempVendorCDR_20' ) end [2025-01-16 04:41:19] Production.INFO: ProcessCDR(1,14258577,1,1,2) [2025-01-16 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258577', 'tblTempUsageDetail_20' ) start [2025-01-16 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258577', 'tblTempUsageDetail_20' ) end [2025-01-16 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:41:22] Production.INFO: ==30601== Releasing lock... [2025-01-16 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:42:05 [end_date_ymd] => 2025-01-16 04:42:05 [RateCDR] => 1 ) [2025-01-16 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:42:05' and `end` < '2025-01-16 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:42:18] Production.INFO: count ==75 [2025-01-16 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:42:05 - End Time 2025-01-16 04:42:05 [2025-01-16 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258582', 'tblTempUsageDetail_20' ) start [2025-01-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258582', 'tblTempUsageDetail_20' ) end [2025-01-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258582', 'tblTempVendorCDR_20' ) start [2025-01-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258582', 'tblTempVendorCDR_20' ) end [2025-01-16 04:42:18] Production.INFO: ProcessCDR(1,14258582,1,1,2) [2025-01-16 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258582', 'tblTempUsageDetail_20' ) start [2025-01-16 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258582', 'tblTempUsageDetail_20' ) end [2025-01-16 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:42:21] Production.INFO: ==30683== Releasing lock... [2025-01-16 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:43:05 [end_date_ymd] => 2025-01-16 04:43:05 [RateCDR] => 1 ) [2025-01-16 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:43:05' and `end` < '2025-01-16 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:43:18] Production.INFO: count ==75 [2025-01-16 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:43:05 - End Time 2025-01-16 04:43:05 [2025-01-16 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258587', 'tblTempUsageDetail_20' ) start [2025-01-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258587', 'tblTempUsageDetail_20' ) end [2025-01-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258587', 'tblTempVendorCDR_20' ) start [2025-01-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258587', 'tblTempVendorCDR_20' ) end [2025-01-16 04:43:18] Production.INFO: ProcessCDR(1,14258587,1,1,2) [2025-01-16 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258587', 'tblTempUsageDetail_20' ) start [2025-01-16 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258587', 'tblTempUsageDetail_20' ) end [2025-01-16 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:43:21] Production.INFO: ==30763== Releasing lock... [2025-01-16 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:44:05 [end_date_ymd] => 2025-01-16 04:44:05 [RateCDR] => 1 ) [2025-01-16 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:44:05' and `end` < '2025-01-16 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:44:18] Production.INFO: count ==75 [2025-01-16 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:44:05 - End Time 2025-01-16 04:44:05 [2025-01-16 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258592', 'tblTempUsageDetail_20' ) start [2025-01-16 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258592', 'tblTempUsageDetail_20' ) end [2025-01-16 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258592', 'tblTempVendorCDR_20' ) start [2025-01-16 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258592', 'tblTempVendorCDR_20' ) end [2025-01-16 04:44:18] Production.INFO: ProcessCDR(1,14258592,1,1,2) [2025-01-16 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258592', 'tblTempUsageDetail_20' ) start [2025-01-16 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258592', 'tblTempUsageDetail_20' ) end [2025-01-16 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:44:21] Production.INFO: ==30843== Releasing lock... [2025-01-16 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:45:05 [end_date_ymd] => 2025-01-16 04:45:05 [RateCDR] => 1 ) [2025-01-16 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:45:05' and `end` < '2025-01-16 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:45:17] Production.INFO: count ==75 [2025-01-16 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 01:45:05 - End Time 2025-01-16 04:45:05 [2025-01-16 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258597', 'tblTempUsageDetail_20' ) start [2025-01-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258597', 'tblTempUsageDetail_20' ) end [2025-01-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258597', 'tblTempVendorCDR_20' ) start [2025-01-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258597', 'tblTempVendorCDR_20' ) end [2025-01-16 04:45:17] Production.INFO: ProcessCDR(1,14258597,1,1,2) [2025-01-16 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258597', 'tblTempUsageDetail_20' ) start [2025-01-16 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258597', 'tblTempUsageDetail_20' ) end [2025-01-16 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:45:21] Production.INFO: ==30922== Releasing lock... [2025-01-16 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:46:05 [end_date_ymd] => 2025-01-16 04:46:05 [RateCDR] => 1 ) [2025-01-16 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:46:05' and `end` < '2025-01-16 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:46:34] Production.INFO: count ==75 [2025-01-16 04:46:34] Production.ERROR: pbx CDR StartTime 2025-01-16 01:46:05 - End Time 2025-01-16 04:46:05 [2025-01-16 04:46:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258602', 'tblTempUsageDetail_20' ) start [2025-01-16 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258602', 'tblTempUsageDetail_20' ) end [2025-01-16 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258602', 'tblTempVendorCDR_20' ) start [2025-01-16 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258602', 'tblTempVendorCDR_20' ) end [2025-01-16 04:46:34] Production.INFO: ProcessCDR(1,14258602,1,1,2) [2025-01-16 04:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:46:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258602', 'tblTempUsageDetail_20' ) start [2025-01-16 04:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258602', 'tblTempUsageDetail_20' ) end [2025-01-16 04:46:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:46:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:46:37] Production.INFO: ==31007== Releasing lock... [2025-01-16 04:46:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:46:37] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:47:05 [end_date_ymd] => 2025-01-16 04:47:05 [RateCDR] => 1 ) [2025-01-16 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:47:05' and `end` < '2025-01-16 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:47:21] Production.INFO: count ==75 [2025-01-16 04:47:21] Production.ERROR: pbx CDR StartTime 2025-01-16 01:47:05 - End Time 2025-01-16 04:47:05 [2025-01-16 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258607', 'tblTempUsageDetail_20' ) start [2025-01-16 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258607', 'tblTempUsageDetail_20' ) end [2025-01-16 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258607', 'tblTempVendorCDR_20' ) start [2025-01-16 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258607', 'tblTempVendorCDR_20' ) end [2025-01-16 04:47:21] Production.INFO: ProcessCDR(1,14258607,1,1,2) [2025-01-16 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258607', 'tblTempUsageDetail_20' ) start [2025-01-16 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258607', 'tblTempUsageDetail_20' ) end [2025-01-16 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:47:25] Production.INFO: ==31086== Releasing lock... [2025-01-16 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:47:25] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:48:05 [end_date_ymd] => 2025-01-16 04:48:05 [RateCDR] => 1 ) [2025-01-16 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:48:05' and `end` < '2025-01-16 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:48:19] Production.INFO: count ==75 [2025-01-16 04:48:19] Production.ERROR: pbx CDR StartTime 2025-01-16 01:48:05 - End Time 2025-01-16 04:48:05 [2025-01-16 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258612', 'tblTempUsageDetail_20' ) start [2025-01-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258612', 'tblTempUsageDetail_20' ) end [2025-01-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258612', 'tblTempVendorCDR_20' ) start [2025-01-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258612', 'tblTempVendorCDR_20' ) end [2025-01-16 04:48:19] Production.INFO: ProcessCDR(1,14258612,1,1,2) [2025-01-16 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258612', 'tblTempUsageDetail_20' ) start [2025-01-16 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258612', 'tblTempUsageDetail_20' ) end [2025-01-16 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:48:22] Production.INFO: ==31173== Releasing lock... [2025-01-16 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:49:06 [end_date_ymd] => 2025-01-16 04:49:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 01:49:06' and `end` < '2025-01-16 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-01-16 04:49:20] Production.INFO: count ==75 [2025-01-16 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-16 01:49:06 - End Time 2025-01-16 04:49:06 [2025-01-16 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258617', 'tblTempUsageDetail_20' ) start [2025-01-16 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258617', 'tblTempUsageDetail_20' ) end [2025-01-16 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258617', 'tblTempVendorCDR_20' ) start [2025-01-16 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258617', 'tblTempVendorCDR_20' ) end [2025-01-16 04:49:20] Production.INFO: ProcessCDR(1,14258617,1,1,2) [2025-01-16 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258617', 'tblTempUsageDetail_20' ) start [2025-01-16 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258617', 'tblTempUsageDetail_20' ) end [2025-01-16 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:49:23] Production.INFO: ==31257== Releasing lock... [2025-01-16 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:49:23] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:50:05 [end_date_ymd] => 2025-01-16 04:50:05 [RateCDR] => 1 ) [2025-01-16 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:50:05' and `end` < '2025-01-16 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:50:23] Production.INFO: count ==67 [2025-01-16 04:50:23] Production.ERROR: pbx CDR StartTime 2025-01-16 01:50:05 - End Time 2025-01-16 04:50:05 [2025-01-16 04:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258623', 'tblTempUsageDetail_20' ) start [2025-01-16 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258623', 'tblTempUsageDetail_20' ) end [2025-01-16 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258623', 'tblTempVendorCDR_20' ) start [2025-01-16 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258623', 'tblTempVendorCDR_20' ) end [2025-01-16 04:50:23] Production.INFO: ProcessCDR(1,14258623,1,1,2) [2025-01-16 04:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258623', 'tblTempUsageDetail_20' ) start [2025-01-16 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258623', 'tblTempUsageDetail_20' ) end [2025-01-16 04:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:50:26] Production.INFO: ==31339== Releasing lock... [2025-01-16 04:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:50:26] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:51:05 [end_date_ymd] => 2025-01-16 04:51:05 [RateCDR] => 1 ) [2025-01-16 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:51:05' and `end` < '2025-01-16 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:51:20] Production.INFO: count ==63 [2025-01-16 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-16 01:51:05 - End Time 2025-01-16 04:51:05 [2025-01-16 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258628', 'tblTempUsageDetail_20' ) start [2025-01-16 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258628', 'tblTempUsageDetail_20' ) end [2025-01-16 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258628', 'tblTempVendorCDR_20' ) start [2025-01-16 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258628', 'tblTempVendorCDR_20' ) end [2025-01-16 04:51:20] Production.INFO: ProcessCDR(1,14258628,1,1,2) [2025-01-16 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258628', 'tblTempUsageDetail_20' ) start [2025-01-16 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258628', 'tblTempUsageDetail_20' ) end [2025-01-16 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:51:23] Production.INFO: ==31423== Releasing lock... [2025-01-16 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:51:23] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:52:05 [end_date_ymd] => 2025-01-16 04:52:05 [RateCDR] => 1 ) [2025-01-16 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:52:05' and `end` < '2025-01-16 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:52:20] Production.INFO: count ==63 [2025-01-16 04:52:20] Production.ERROR: pbx CDR StartTime 2025-01-16 01:52:05 - End Time 2025-01-16 04:52:05 [2025-01-16 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258633', 'tblTempUsageDetail_20' ) start [2025-01-16 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258633', 'tblTempUsageDetail_20' ) end [2025-01-16 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258633', 'tblTempVendorCDR_20' ) start [2025-01-16 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258633', 'tblTempVendorCDR_20' ) end [2025-01-16 04:52:20] Production.INFO: ProcessCDR(1,14258633,1,1,2) [2025-01-16 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258633', 'tblTempUsageDetail_20' ) start [2025-01-16 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258633', 'tblTempUsageDetail_20' ) end [2025-01-16 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:52:23] Production.INFO: ==31541== Releasing lock... [2025-01-16 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:52:23] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:53:05 [end_date_ymd] => 2025-01-16 04:53:05 [RateCDR] => 1 ) [2025-01-16 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:53:05' and `end` < '2025-01-16 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:53:20] Production.INFO: count ==63 [2025-01-16 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-16 01:53:05 - End Time 2025-01-16 04:53:05 [2025-01-16 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258638', 'tblTempUsageDetail_20' ) start [2025-01-16 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258638', 'tblTempUsageDetail_20' ) end [2025-01-16 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258638', 'tblTempVendorCDR_20' ) start [2025-01-16 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258638', 'tblTempVendorCDR_20' ) end [2025-01-16 04:53:20] Production.INFO: ProcessCDR(1,14258638,1,1,2) [2025-01-16 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258638', 'tblTempUsageDetail_20' ) start [2025-01-16 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258638', 'tblTempUsageDetail_20' ) end [2025-01-16 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:53:23] Production.INFO: ==31624== Releasing lock... [2025-01-16 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:53:23] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:54:05 [end_date_ymd] => 2025-01-16 04:54:05 [RateCDR] => 1 ) [2025-01-16 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:54:05' and `end` < '2025-01-16 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:54:18] Production.INFO: count ==63 [2025-01-16 04:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:54:05 - End Time 2025-01-16 04:54:05 [2025-01-16 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258643', 'tblTempUsageDetail_20' ) start [2025-01-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258643', 'tblTempUsageDetail_20' ) end [2025-01-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258643', 'tblTempVendorCDR_20' ) start [2025-01-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258643', 'tblTempVendorCDR_20' ) end [2025-01-16 04:54:18] Production.INFO: ProcessCDR(1,14258643,1,1,2) [2025-01-16 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258643', 'tblTempUsageDetail_20' ) start [2025-01-16 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258643', 'tblTempUsageDetail_20' ) end [2025-01-16 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:54:21] Production.INFO: ==31704== Releasing lock... [2025-01-16 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:55:05 [end_date_ymd] => 2025-01-16 04:55:05 [RateCDR] => 1 ) [2025-01-16 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:55:05' and `end` < '2025-01-16 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:55:20] Production.INFO: count ==63 [2025-01-16 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-16 01:55:05 - End Time 2025-01-16 04:55:05 [2025-01-16 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258648', 'tblTempUsageDetail_20' ) start [2025-01-16 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258648', 'tblTempUsageDetail_20' ) end [2025-01-16 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258648', 'tblTempVendorCDR_20' ) start [2025-01-16 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258648', 'tblTempVendorCDR_20' ) end [2025-01-16 04:55:20] Production.INFO: ProcessCDR(1,14258648,1,1,2) [2025-01-16 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258648', 'tblTempUsageDetail_20' ) start [2025-01-16 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258648', 'tblTempUsageDetail_20' ) end [2025-01-16 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:55:24] Production.INFO: ==31788== Releasing lock... [2025-01-16 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:55:24] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:56:05 [end_date_ymd] => 2025-01-16 04:56:05 [RateCDR] => 1 ) [2025-01-16 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:56:05' and `end` < '2025-01-16 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:56:18] Production.INFO: count ==63 [2025-01-16 04:56:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:56:05 - End Time 2025-01-16 04:56:05 [2025-01-16 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258653', 'tblTempUsageDetail_20' ) start [2025-01-16 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258653', 'tblTempUsageDetail_20' ) end [2025-01-16 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258653', 'tblTempVendorCDR_20' ) start [2025-01-16 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258653', 'tblTempVendorCDR_20' ) end [2025-01-16 04:56:18] Production.INFO: ProcessCDR(1,14258653,1,1,2) [2025-01-16 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258653', 'tblTempUsageDetail_20' ) start [2025-01-16 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258653', 'tblTempUsageDetail_20' ) end [2025-01-16 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:56:22] Production.INFO: ==31869== Releasing lock... [2025-01-16 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:56:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:57:05 [end_date_ymd] => 2025-01-16 04:57:05 [RateCDR] => 1 ) [2025-01-16 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:57:05' and `end` < '2025-01-16 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:57:18] Production.INFO: count ==59 [2025-01-16 04:57:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:57:05 - End Time 2025-01-16 04:57:05 [2025-01-16 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258658', 'tblTempUsageDetail_20' ) start [2025-01-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258658', 'tblTempUsageDetail_20' ) end [2025-01-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258658', 'tblTempVendorCDR_20' ) start [2025-01-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258658', 'tblTempVendorCDR_20' ) end [2025-01-16 04:57:18] Production.INFO: ProcessCDR(1,14258658,1,1,2) [2025-01-16 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258658', 'tblTempUsageDetail_20' ) start [2025-01-16 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258658', 'tblTempUsageDetail_20' ) end [2025-01-16 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:57:22] Production.INFO: ==31944== Releasing lock... [2025-01-16 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:57:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:58:04 [end_date_ymd] => 2025-01-16 04:58:04 [RateCDR] => 1 ) [2025-01-16 04:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:58:04' and `end` < '2025-01-16 04:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:58:18] Production.INFO: count ==57 [2025-01-16 04:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 01:58:04 - End Time 2025-01-16 04:58:04 [2025-01-16 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258663', 'tblTempUsageDetail_20' ) start [2025-01-16 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258663', 'tblTempUsageDetail_20' ) end [2025-01-16 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258663', 'tblTempVendorCDR_20' ) start [2025-01-16 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258663', 'tblTempVendorCDR_20' ) end [2025-01-16 04:58:18] Production.INFO: ProcessCDR(1,14258663,1,1,2) [2025-01-16 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258663', 'tblTempUsageDetail_20' ) start [2025-01-16 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258663', 'tblTempUsageDetail_20' ) end [2025-01-16 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:58:21] Production.INFO: ==32014== Releasing lock... [2025-01-16 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 01:59:05 [end_date_ymd] => 2025-01-16 04:59:05 [RateCDR] => 1 ) [2025-01-16 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 01:59:05' and `end` < '2025-01-16 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 04:59:19] Production.INFO: count ==56 [2025-01-16 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-16 01:59:05 - End Time 2025-01-16 04:59:05 [2025-01-16 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258668', 'tblTempUsageDetail_20' ) start [2025-01-16 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258668', 'tblTempUsageDetail_20' ) end [2025-01-16 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258668', 'tblTempVendorCDR_20' ) start [2025-01-16 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258668', 'tblTempVendorCDR_20' ) end [2025-01-16 04:59:19] Production.INFO: ProcessCDR(1,14258668,1,1,2) [2025-01-16 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258668', 'tblTempUsageDetail_20' ) start [2025-01-16 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258668', 'tblTempUsageDetail_20' ) end [2025-01-16 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 04:59:22] Production.INFO: ==32089== Releasing lock... [2025-01-16 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 04:59:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:00:05 [end_date_ymd] => 2025-01-16 05:00:05 [RateCDR] => 1 ) [2025-01-16 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:00:05' and `end` < '2025-01-16 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:00:23] Production.INFO: count ==50 [2025-01-16 05:00:23] Production.ERROR: pbx CDR StartTime 2025-01-16 02:00:05 - End Time 2025-01-16 05:00:05 [2025-01-16 05:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258674', 'tblTempUsageDetail_20' ) start [2025-01-16 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258674', 'tblTempUsageDetail_20' ) end [2025-01-16 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258674', 'tblTempVendorCDR_20' ) start [2025-01-16 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258674', 'tblTempVendorCDR_20' ) end [2025-01-16 05:00:23] Production.INFO: ProcessCDR(1,14258674,1,1,2) [2025-01-16 05:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258674', 'tblTempUsageDetail_20' ) start [2025-01-16 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258674', 'tblTempUsageDetail_20' ) end [2025-01-16 05:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:00:26] Production.INFO: ==32160== Releasing lock... [2025-01-16 05:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:00:26] Production.INFO: 28 MB #Memory Used# [2025-01-16 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:01:05 [end_date_ymd] => 2025-01-16 05:01:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:01:05' and `end` < '2025-01-16 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-01-16 05:01:18] Production.INFO: count ==47 [2025-01-16 05:01:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:01:05 - End Time 2025-01-16 05:01:05 [2025-01-16 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258679', 'tblTempUsageDetail_20' ) start [2025-01-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258679', 'tblTempUsageDetail_20' ) end [2025-01-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258679', 'tblTempVendorCDR_20' ) start [2025-01-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258679', 'tblTempVendorCDR_20' ) end [2025-01-16 05:01:18] Production.INFO: ProcessCDR(1,14258679,1,1,2) [2025-01-16 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258679', 'tblTempUsageDetail_20' ) start [2025-01-16 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258679', 'tblTempUsageDetail_20' ) end [2025-01-16 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:01:21] Production.INFO: ==32247== Releasing lock... [2025-01-16 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:01:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:02:05 [end_date_ymd] => 2025-01-16 05:02:05 [RateCDR] => 1 ) [2025-01-16 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:02:05' and `end` < '2025-01-16 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:02:18] Production.INFO: count ==47 [2025-01-16 05:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:02:05 - End Time 2025-01-16 05:02:05 [2025-01-16 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258684', 'tblTempUsageDetail_20' ) start [2025-01-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258684', 'tblTempUsageDetail_20' ) end [2025-01-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258684', 'tblTempVendorCDR_20' ) start [2025-01-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258684', 'tblTempVendorCDR_20' ) end [2025-01-16 05:02:18] Production.INFO: ProcessCDR(1,14258684,1,1,2) [2025-01-16 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258684', 'tblTempUsageDetail_20' ) start [2025-01-16 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258684', 'tblTempUsageDetail_20' ) end [2025-01-16 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:02:21] Production.INFO: ==32319== Releasing lock... [2025-01-16 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:02:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:03:05 [end_date_ymd] => 2025-01-16 05:03:05 [RateCDR] => 1 ) [2025-01-16 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:03:05' and `end` < '2025-01-16 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:03:19] Production.INFO: count ==47 [2025-01-16 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-16 02:03:05 - End Time 2025-01-16 05:03:05 [2025-01-16 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258689', 'tblTempUsageDetail_20' ) start [2025-01-16 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258689', 'tblTempUsageDetail_20' ) end [2025-01-16 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258689', 'tblTempVendorCDR_20' ) start [2025-01-16 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258689', 'tblTempVendorCDR_20' ) end [2025-01-16 05:03:19] Production.INFO: ProcessCDR(1,14258689,1,1,2) [2025-01-16 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258689', 'tblTempUsageDetail_20' ) start [2025-01-16 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258689', 'tblTempUsageDetail_20' ) end [2025-01-16 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:03:22] Production.INFO: ==32392== Releasing lock... [2025-01-16 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:04:05 [end_date_ymd] => 2025-01-16 05:04:05 [RateCDR] => 1 ) [2025-01-16 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:04:05' and `end` < '2025-01-16 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:04:17] Production.INFO: count ==47 [2025-01-16 05:04:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:04:05 - End Time 2025-01-16 05:04:05 [2025-01-16 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258694', 'tblTempUsageDetail_20' ) start [2025-01-16 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258694', 'tblTempUsageDetail_20' ) end [2025-01-16 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258694', 'tblTempVendorCDR_20' ) start [2025-01-16 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258694', 'tblTempVendorCDR_20' ) end [2025-01-16 05:04:17] Production.INFO: ProcessCDR(1,14258694,1,1,2) [2025-01-16 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258694', 'tblTempUsageDetail_20' ) start [2025-01-16 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258694', 'tblTempUsageDetail_20' ) end [2025-01-16 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:04:21] Production.INFO: ==32464== Releasing lock... [2025-01-16 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:05:05 [end_date_ymd] => 2025-01-16 05:05:05 [RateCDR] => 1 ) [2025-01-16 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:05:05' and `end` < '2025-01-16 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:05:18] Production.INFO: count ==47 [2025-01-16 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:05:05 - End Time 2025-01-16 05:05:05 [2025-01-16 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258699', 'tblTempUsageDetail_20' ) start [2025-01-16 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258699', 'tblTempUsageDetail_20' ) end [2025-01-16 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258699', 'tblTempVendorCDR_20' ) start [2025-01-16 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258699', 'tblTempVendorCDR_20' ) end [2025-01-16 05:05:18] Production.INFO: ProcessCDR(1,14258699,1,1,2) [2025-01-16 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258699', 'tblTempUsageDetail_20' ) start [2025-01-16 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258699', 'tblTempUsageDetail_20' ) end [2025-01-16 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:05:21] Production.INFO: ==32536== Releasing lock... [2025-01-16 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:05:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:06:04 [end_date_ymd] => 2025-01-16 05:06:04 [RateCDR] => 1 ) [2025-01-16 05:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:06:04' and `end` < '2025-01-16 05:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:06:23] Production.INFO: count ==47 [2025-01-16 05:06:23] Production.ERROR: pbx CDR StartTime 2025-01-16 02:06:04 - End Time 2025-01-16 05:06:04 [2025-01-16 05:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258704', 'tblTempUsageDetail_20' ) start [2025-01-16 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258704', 'tblTempUsageDetail_20' ) end [2025-01-16 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258704', 'tblTempVendorCDR_20' ) start [2025-01-16 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258704', 'tblTempVendorCDR_20' ) end [2025-01-16 05:06:23] Production.INFO: ProcessCDR(1,14258704,1,1,2) [2025-01-16 05:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258704', 'tblTempUsageDetail_20' ) start [2025-01-16 05:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258704', 'tblTempUsageDetail_20' ) end [2025-01-16 05:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:06:27] Production.INFO: ==32610== Releasing lock... [2025-01-16 05:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:06:27] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:07:05 [end_date_ymd] => 2025-01-16 05:07:05 [RateCDR] => 1 ) [2025-01-16 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:07:05' and `end` < '2025-01-16 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:07:18] Production.INFO: count ==47 [2025-01-16 05:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:07:05 - End Time 2025-01-16 05:07:05 [2025-01-16 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258709', 'tblTempUsageDetail_20' ) start [2025-01-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258709', 'tblTempUsageDetail_20' ) end [2025-01-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258709', 'tblTempVendorCDR_20' ) start [2025-01-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258709', 'tblTempVendorCDR_20' ) end [2025-01-16 05:07:18] Production.INFO: ProcessCDR(1,14258709,1,1,2) [2025-01-16 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258709', 'tblTempUsageDetail_20' ) start [2025-01-16 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258709', 'tblTempUsageDetail_20' ) end [2025-01-16 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:07:21] Production.INFO: ==32681== Releasing lock... [2025-01-16 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:07:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:08:06 [end_date_ymd] => 2025-01-16 05:08:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:08:06' and `end` < '2025-01-16 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-01-16 05:08:19] Production.INFO: count ==47 [2025-01-16 05:08:19] Production.ERROR: pbx CDR StartTime 2025-01-16 02:08:06 - End Time 2025-01-16 05:08:06 [2025-01-16 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258714', 'tblTempUsageDetail_20' ) start [2025-01-16 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258714', 'tblTempUsageDetail_20' ) end [2025-01-16 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258714', 'tblTempVendorCDR_20' ) start [2025-01-16 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258714', 'tblTempVendorCDR_20' ) end [2025-01-16 05:08:19] Production.INFO: ProcessCDR(1,14258714,1,1,2) [2025-01-16 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258714', 'tblTempUsageDetail_20' ) start [2025-01-16 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258714', 'tblTempUsageDetail_20' ) end [2025-01-16 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:08:22] Production.INFO: ==331== Releasing lock... [2025-01-16 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:09:05 [end_date_ymd] => 2025-01-16 05:09:05 [RateCDR] => 1 ) [2025-01-16 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:09:05' and `end` < '2025-01-16 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:09:18] Production.INFO: count ==47 [2025-01-16 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:09:05 - End Time 2025-01-16 05:09:05 [2025-01-16 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258719', 'tblTempUsageDetail_20' ) start [2025-01-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258719', 'tblTempUsageDetail_20' ) end [2025-01-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258719', 'tblTempVendorCDR_20' ) start [2025-01-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258719', 'tblTempVendorCDR_20' ) end [2025-01-16 05:09:18] Production.INFO: ProcessCDR(1,14258719,1,1,2) [2025-01-16 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258719', 'tblTempUsageDetail_20' ) start [2025-01-16 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258719', 'tblTempUsageDetail_20' ) end [2025-01-16 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:09:21] Production.INFO: ==413== Releasing lock... [2025-01-16 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:10:05 [end_date_ymd] => 2025-01-16 05:10:05 [RateCDR] => 1 ) [2025-01-16 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:10:05' and `end` < '2025-01-16 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:10:18] Production.INFO: count ==39 [2025-01-16 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:10:05 - End Time 2025-01-16 05:10:05 [2025-01-16 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258725', 'tblTempUsageDetail_20' ) start [2025-01-16 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258725', 'tblTempUsageDetail_20' ) end [2025-01-16 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258725', 'tblTempVendorCDR_20' ) start [2025-01-16 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258725', 'tblTempVendorCDR_20' ) end [2025-01-16 05:10:18] Production.INFO: ProcessCDR(1,14258725,1,1,2) [2025-01-16 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258725', 'tblTempUsageDetail_20' ) start [2025-01-16 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258725', 'tblTempUsageDetail_20' ) end [2025-01-16 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:10:21] Production.INFO: ==486== Releasing lock... [2025-01-16 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:10:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:11:05 [end_date_ymd] => 2025-01-16 05:11:05 [RateCDR] => 1 ) [2025-01-16 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:11:05' and `end` < '2025-01-16 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:11:17] Production.INFO: count ==37 [2025-01-16 05:11:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:11:05 - End Time 2025-01-16 05:11:05 [2025-01-16 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258730', 'tblTempUsageDetail_20' ) start [2025-01-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258730', 'tblTempUsageDetail_20' ) end [2025-01-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258730', 'tblTempVendorCDR_20' ) start [2025-01-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258730', 'tblTempVendorCDR_20' ) end [2025-01-16 05:11:17] Production.INFO: ProcessCDR(1,14258730,1,1,2) [2025-01-16 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258730', 'tblTempUsageDetail_20' ) start [2025-01-16 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258730', 'tblTempUsageDetail_20' ) end [2025-01-16 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:11:21] Production.INFO: ==563== Releasing lock... [2025-01-16 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:11:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:12:05 [end_date_ymd] => 2025-01-16 05:12:05 [RateCDR] => 1 ) [2025-01-16 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:12:05' and `end` < '2025-01-16 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:12:19] Production.INFO: count ==37 [2025-01-16 05:12:19] Production.ERROR: pbx CDR StartTime 2025-01-16 02:12:05 - End Time 2025-01-16 05:12:05 [2025-01-16 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258735', 'tblTempUsageDetail_20' ) start [2025-01-16 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258735', 'tblTempUsageDetail_20' ) end [2025-01-16 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258735', 'tblTempVendorCDR_20' ) start [2025-01-16 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258735', 'tblTempVendorCDR_20' ) end [2025-01-16 05:12:19] Production.INFO: ProcessCDR(1,14258735,1,1,2) [2025-01-16 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258735', 'tblTempUsageDetail_20' ) start [2025-01-16 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258735', 'tblTempUsageDetail_20' ) end [2025-01-16 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:12:22] Production.INFO: ==642== Releasing lock... [2025-01-16 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:12:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:13:05 [end_date_ymd] => 2025-01-16 05:13:05 [RateCDR] => 1 ) [2025-01-16 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:13:05' and `end` < '2025-01-16 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:13:17] Production.INFO: count ==33 [2025-01-16 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:13:05 - End Time 2025-01-16 05:13:05 [2025-01-16 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258740', 'tblTempUsageDetail_20' ) start [2025-01-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258740', 'tblTempUsageDetail_20' ) end [2025-01-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258740', 'tblTempVendorCDR_20' ) start [2025-01-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258740', 'tblTempVendorCDR_20' ) end [2025-01-16 05:13:17] Production.INFO: ProcessCDR(1,14258740,1,1,2) [2025-01-16 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258740', 'tblTempUsageDetail_20' ) start [2025-01-16 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258740', 'tblTempUsageDetail_20' ) end [2025-01-16 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:13:20] Production.INFO: ==736== Releasing lock... [2025-01-16 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:13:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:14:05 [end_date_ymd] => 2025-01-16 05:14:05 [RateCDR] => 1 ) [2025-01-16 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:14:05' and `end` < '2025-01-16 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:14:18] Production.INFO: count ==33 [2025-01-16 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:14:05 - End Time 2025-01-16 05:14:05 [2025-01-16 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258745', 'tblTempUsageDetail_20' ) start [2025-01-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258745', 'tblTempUsageDetail_20' ) end [2025-01-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258745', 'tblTempVendorCDR_20' ) start [2025-01-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258745', 'tblTempVendorCDR_20' ) end [2025-01-16 05:14:18] Production.INFO: ProcessCDR(1,14258745,1,1,2) [2025-01-16 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258745', 'tblTempUsageDetail_20' ) start [2025-01-16 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258745', 'tblTempUsageDetail_20' ) end [2025-01-16 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:14:21] Production.INFO: ==813== Releasing lock... [2025-01-16 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:14:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:15:05 [end_date_ymd] => 2025-01-16 05:15:05 [RateCDR] => 1 ) [2025-01-16 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:15:05' and `end` < '2025-01-16 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:15:17] Production.INFO: count ==33 [2025-01-16 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:15:05 - End Time 2025-01-16 05:15:05 [2025-01-16 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258750', 'tblTempUsageDetail_20' ) start [2025-01-16 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258750', 'tblTempUsageDetail_20' ) end [2025-01-16 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258750', 'tblTempVendorCDR_20' ) start [2025-01-16 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258750', 'tblTempVendorCDR_20' ) end [2025-01-16 05:15:17] Production.INFO: ProcessCDR(1,14258750,1,1,2) [2025-01-16 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258750', 'tblTempUsageDetail_20' ) start [2025-01-16 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258750', 'tblTempUsageDetail_20' ) end [2025-01-16 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:15:21] Production.INFO: ==883== Releasing lock... [2025-01-16 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:15:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:16:05 [end_date_ymd] => 2025-01-16 05:16:05 [RateCDR] => 1 ) [2025-01-16 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:16:05' and `end` < '2025-01-16 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:16:17] Production.INFO: count ==33 [2025-01-16 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:16:05 - End Time 2025-01-16 05:16:05 [2025-01-16 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258755', 'tblTempUsageDetail_20' ) start [2025-01-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258755', 'tblTempUsageDetail_20' ) end [2025-01-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258755', 'tblTempVendorCDR_20' ) start [2025-01-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258755', 'tblTempVendorCDR_20' ) end [2025-01-16 05:16:17] Production.INFO: ProcessCDR(1,14258755,1,1,2) [2025-01-16 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258755', 'tblTempUsageDetail_20' ) start [2025-01-16 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258755', 'tblTempUsageDetail_20' ) end [2025-01-16 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:16:21] Production.INFO: ==958== Releasing lock... [2025-01-16 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:17:05 [end_date_ymd] => 2025-01-16 05:17:05 [RateCDR] => 1 ) [2025-01-16 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:17:05' and `end` < '2025-01-16 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:17:17] Production.INFO: count ==33 [2025-01-16 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:17:05 - End Time 2025-01-16 05:17:05 [2025-01-16 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258760', 'tblTempUsageDetail_20' ) start [2025-01-16 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258760', 'tblTempUsageDetail_20' ) end [2025-01-16 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258760', 'tblTempVendorCDR_20' ) start [2025-01-16 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258760', 'tblTempVendorCDR_20' ) end [2025-01-16 05:17:17] Production.INFO: ProcessCDR(1,14258760,1,1,2) [2025-01-16 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258760', 'tblTempUsageDetail_20' ) start [2025-01-16 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258760', 'tblTempUsageDetail_20' ) end [2025-01-16 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:17:20] Production.INFO: ==1033== Releasing lock... [2025-01-16 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:17:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:18:05 [end_date_ymd] => 2025-01-16 05:18:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:18:05' and `end` < '2025-01-16 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-01-16 05:18:18] Production.INFO: count ==33 [2025-01-16 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:18:05 - End Time 2025-01-16 05:18:05 [2025-01-16 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258765', 'tblTempUsageDetail_20' ) start [2025-01-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258765', 'tblTempUsageDetail_20' ) end [2025-01-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258765', 'tblTempVendorCDR_20' ) start [2025-01-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258765', 'tblTempVendorCDR_20' ) end [2025-01-16 05:18:18] Production.INFO: ProcessCDR(1,14258765,1,1,2) [2025-01-16 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258765', 'tblTempUsageDetail_20' ) start [2025-01-16 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258765', 'tblTempUsageDetail_20' ) end [2025-01-16 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:18:22] Production.INFO: ==1103== Releasing lock... [2025-01-16 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:18:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:19:05 [end_date_ymd] => 2025-01-16 05:19:05 [RateCDR] => 1 ) [2025-01-16 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:19:05' and `end` < '2025-01-16 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:19:17] Production.INFO: count ==33 [2025-01-16 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:19:05 - End Time 2025-01-16 05:19:05 [2025-01-16 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258770', 'tblTempUsageDetail_20' ) start [2025-01-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258770', 'tblTempUsageDetail_20' ) end [2025-01-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258770', 'tblTempVendorCDR_20' ) start [2025-01-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258770', 'tblTempVendorCDR_20' ) end [2025-01-16 05:19:17] Production.INFO: ProcessCDR(1,14258770,1,1,2) [2025-01-16 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258770', 'tblTempUsageDetail_20' ) start [2025-01-16 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258770', 'tblTempUsageDetail_20' ) end [2025-01-16 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:19:20] Production.INFO: ==1180== Releasing lock... [2025-01-16 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:19:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:20:06 [end_date_ymd] => 2025-01-16 05:20:06 [RateCDR] => 1 ) [2025-01-16 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:20:06' and `end` < '2025-01-16 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:20:20] Production.INFO: count ==33 [2025-01-16 05:20:20] Production.ERROR: pbx CDR StartTime 2025-01-16 02:20:06 - End Time 2025-01-16 05:20:06 [2025-01-16 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258776', 'tblTempUsageDetail_20' ) start [2025-01-16 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258776', 'tblTempUsageDetail_20' ) end [2025-01-16 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258776', 'tblTempVendorCDR_20' ) start [2025-01-16 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258776', 'tblTempVendorCDR_20' ) end [2025-01-16 05:20:20] Production.INFO: ProcessCDR(1,14258776,1,1,2) [2025-01-16 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258776', 'tblTempUsageDetail_20' ) start [2025-01-16 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258776', 'tblTempUsageDetail_20' ) end [2025-01-16 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:20:23] Production.INFO: ==1264== Releasing lock... [2025-01-16 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:20:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:21:05 [end_date_ymd] => 2025-01-16 05:21:05 [RateCDR] => 1 ) [2025-01-16 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:21:05' and `end` < '2025-01-16 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:21:17] Production.INFO: count ==33 [2025-01-16 05:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:21:05 - End Time 2025-01-16 05:21:05 [2025-01-16 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258781', 'tblTempUsageDetail_20' ) start [2025-01-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258781', 'tblTempUsageDetail_20' ) end [2025-01-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258781', 'tblTempVendorCDR_20' ) start [2025-01-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258781', 'tblTempVendorCDR_20' ) end [2025-01-16 05:21:17] Production.INFO: ProcessCDR(1,14258781,1,1,2) [2025-01-16 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258781', 'tblTempUsageDetail_20' ) start [2025-01-16 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258781', 'tblTempUsageDetail_20' ) end [2025-01-16 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:21:21] Production.INFO: ==1337== Releasing lock... [2025-01-16 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:22:05 [end_date_ymd] => 2025-01-16 05:22:05 [RateCDR] => 1 ) [2025-01-16 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:22:05' and `end` < '2025-01-16 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:22:17] Production.INFO: count ==33 [2025-01-16 05:22:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:22:05 - End Time 2025-01-16 05:22:05 [2025-01-16 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258786', 'tblTempUsageDetail_20' ) start [2025-01-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258786', 'tblTempUsageDetail_20' ) end [2025-01-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258786', 'tblTempVendorCDR_20' ) start [2025-01-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258786', 'tblTempVendorCDR_20' ) end [2025-01-16 05:22:17] Production.INFO: ProcessCDR(1,14258786,1,1,2) [2025-01-16 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258786', 'tblTempUsageDetail_20' ) start [2025-01-16 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258786', 'tblTempUsageDetail_20' ) end [2025-01-16 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:22:21] Production.INFO: ==1408== Releasing lock... [2025-01-16 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:22:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:23:05 [end_date_ymd] => 2025-01-16 05:23:05 [RateCDR] => 1 ) [2025-01-16 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:23:05' and `end` < '2025-01-16 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:23:18] Production.INFO: count ==33 [2025-01-16 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:23:05 - End Time 2025-01-16 05:23:05 [2025-01-16 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258791', 'tblTempUsageDetail_20' ) start [2025-01-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258791', 'tblTempUsageDetail_20' ) end [2025-01-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258791', 'tblTempVendorCDR_20' ) start [2025-01-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258791', 'tblTempVendorCDR_20' ) end [2025-01-16 05:23:18] Production.INFO: ProcessCDR(1,14258791,1,1,2) [2025-01-16 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258791', 'tblTempUsageDetail_20' ) start [2025-01-16 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258791', 'tblTempUsageDetail_20' ) end [2025-01-16 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:23:21] Production.INFO: ==1548== Releasing lock... [2025-01-16 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:24:05 [end_date_ymd] => 2025-01-16 05:24:05 [RateCDR] => 1 ) [2025-01-16 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:24:05' and `end` < '2025-01-16 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:24:17] Production.INFO: count ==33 [2025-01-16 05:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:24:05 - End Time 2025-01-16 05:24:05 [2025-01-16 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258796', 'tblTempUsageDetail_20' ) start [2025-01-16 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258796', 'tblTempUsageDetail_20' ) end [2025-01-16 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258796', 'tblTempVendorCDR_20' ) start [2025-01-16 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258796', 'tblTempVendorCDR_20' ) end [2025-01-16 05:24:17] Production.INFO: ProcessCDR(1,14258796,1,1,2) [2025-01-16 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258796', 'tblTempUsageDetail_20' ) start [2025-01-16 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258796', 'tblTempUsageDetail_20' ) end [2025-01-16 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:24:20] Production.INFO: ==1627== Releasing lock... [2025-01-16 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:24:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:25:05 [end_date_ymd] => 2025-01-16 05:25:05 [RateCDR] => 1 ) [2025-01-16 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:25:05' and `end` < '2025-01-16 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:25:17] Production.INFO: count ==33 [2025-01-16 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:25:05 - End Time 2025-01-16 05:25:05 [2025-01-16 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258801', 'tblTempUsageDetail_20' ) start [2025-01-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258801', 'tblTempUsageDetail_20' ) end [2025-01-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258801', 'tblTempVendorCDR_20' ) start [2025-01-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258801', 'tblTempVendorCDR_20' ) end [2025-01-16 05:25:17] Production.INFO: ProcessCDR(1,14258801,1,1,2) [2025-01-16 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258801', 'tblTempUsageDetail_20' ) start [2025-01-16 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258801', 'tblTempUsageDetail_20' ) end [2025-01-16 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:25:21] Production.INFO: ==1698== Releasing lock... [2025-01-16 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:26:05 [end_date_ymd] => 2025-01-16 05:26:05 [RateCDR] => 1 ) [2025-01-16 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:26:05' and `end` < '2025-01-16 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:26:18] Production.INFO: count ==33 [2025-01-16 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:26:05 - End Time 2025-01-16 05:26:05 [2025-01-16 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258806', 'tblTempUsageDetail_20' ) start [2025-01-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258806', 'tblTempUsageDetail_20' ) end [2025-01-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258806', 'tblTempVendorCDR_20' ) start [2025-01-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258806', 'tblTempVendorCDR_20' ) end [2025-01-16 05:26:18] Production.INFO: ProcessCDR(1,14258806,1,1,2) [2025-01-16 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258806', 'tblTempUsageDetail_20' ) start [2025-01-16 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258806', 'tblTempUsageDetail_20' ) end [2025-01-16 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:26:21] Production.INFO: ==1767== Releasing lock... [2025-01-16 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:27:05 [end_date_ymd] => 2025-01-16 05:27:05 [RateCDR] => 1 ) [2025-01-16 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:27:05' and `end` < '2025-01-16 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:27:17] Production.INFO: count ==33 [2025-01-16 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:27:05 - End Time 2025-01-16 05:27:05 [2025-01-16 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258811', 'tblTempUsageDetail_20' ) start [2025-01-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258811', 'tblTempUsageDetail_20' ) end [2025-01-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258811', 'tblTempVendorCDR_20' ) start [2025-01-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258811', 'tblTempVendorCDR_20' ) end [2025-01-16 05:27:17] Production.INFO: ProcessCDR(1,14258811,1,1,2) [2025-01-16 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258811', 'tblTempUsageDetail_20' ) start [2025-01-16 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258811', 'tblTempUsageDetail_20' ) end [2025-01-16 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:27:21] Production.INFO: ==1841== Releasing lock... [2025-01-16 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:28:05 [end_date_ymd] => 2025-01-16 05:28:05 [RateCDR] => 1 ) [2025-01-16 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:28:05' and `end` < '2025-01-16 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:28:17] Production.INFO: count ==33 [2025-01-16 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:28:05 - End Time 2025-01-16 05:28:05 [2025-01-16 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258816', 'tblTempUsageDetail_20' ) start [2025-01-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258816', 'tblTempUsageDetail_20' ) end [2025-01-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258816', 'tblTempVendorCDR_20' ) start [2025-01-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258816', 'tblTempVendorCDR_20' ) end [2025-01-16 05:28:17] Production.INFO: ProcessCDR(1,14258816,1,1,2) [2025-01-16 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258816', 'tblTempUsageDetail_20' ) start [2025-01-16 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258816', 'tblTempUsageDetail_20' ) end [2025-01-16 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:28:21] Production.INFO: ==1911== Releasing lock... [2025-01-16 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:28:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:29:05 [end_date_ymd] => 2025-01-16 05:29:05 [RateCDR] => 1 ) [2025-01-16 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:29:05' and `end` < '2025-01-16 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:29:18] Production.INFO: count ==33 [2025-01-16 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:29:05 - End Time 2025-01-16 05:29:05 [2025-01-16 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258821', 'tblTempUsageDetail_20' ) start [2025-01-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258821', 'tblTempUsageDetail_20' ) end [2025-01-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258821', 'tblTempVendorCDR_20' ) start [2025-01-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258821', 'tblTempVendorCDR_20' ) end [2025-01-16 05:29:18] Production.INFO: ProcessCDR(1,14258821,1,1,2) [2025-01-16 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258821', 'tblTempUsageDetail_20' ) start [2025-01-16 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258821', 'tblTempUsageDetail_20' ) end [2025-01-16 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:29:21] Production.INFO: ==1982== Releasing lock... [2025-01-16 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:30:06 [end_date_ymd] => 2025-01-16 05:30:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:30:06' and `end` < '2025-01-16 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-01-16 05:30:18] Production.INFO: count ==29 [2025-01-16 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:30:06 - End Time 2025-01-16 05:30:06 [2025-01-16 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258827', 'tblTempUsageDetail_20' ) start [2025-01-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258827', 'tblTempUsageDetail_20' ) end [2025-01-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258827', 'tblTempVendorCDR_20' ) start [2025-01-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258827', 'tblTempVendorCDR_20' ) end [2025-01-16 05:30:18] Production.INFO: ProcessCDR(1,14258827,1,1,2) [2025-01-16 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258827', 'tblTempUsageDetail_20' ) start [2025-01-16 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258827', 'tblTempUsageDetail_20' ) end [2025-01-16 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:30:21] Production.INFO: ==2060== Releasing lock... [2025-01-16 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:31:05 [end_date_ymd] => 2025-01-16 05:31:05 [RateCDR] => 1 ) [2025-01-16 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:31:05' and `end` < '2025-01-16 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:31:17] Production.INFO: count ==29 [2025-01-16 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:31:05 - End Time 2025-01-16 05:31:05 [2025-01-16 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258831', 'tblTempUsageDetail_20' ) start [2025-01-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258831', 'tblTempUsageDetail_20' ) end [2025-01-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258831', 'tblTempVendorCDR_20' ) start [2025-01-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258831', 'tblTempVendorCDR_20' ) end [2025-01-16 05:31:17] Production.INFO: ProcessCDR(1,14258831,1,1,2) [2025-01-16 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258831', 'tblTempUsageDetail_20' ) start [2025-01-16 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258831', 'tblTempUsageDetail_20' ) end [2025-01-16 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:31:20] Production.INFO: ==2137== Releasing lock... [2025-01-16 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:31:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:32:05 [end_date_ymd] => 2025-01-16 05:32:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:32:05' and `end` < '2025-01-16 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-01-16 05:32:18] Production.INFO: count ==29 [2025-01-16 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:32:05 - End Time 2025-01-16 05:32:05 [2025-01-16 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258837', 'tblTempUsageDetail_20' ) start [2025-01-16 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258837', 'tblTempUsageDetail_20' ) end [2025-01-16 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258837', 'tblTempVendorCDR_20' ) start [2025-01-16 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258837', 'tblTempVendorCDR_20' ) end [2025-01-16 05:32:18] Production.INFO: ProcessCDR(1,14258837,1,1,2) [2025-01-16 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258837', 'tblTempUsageDetail_20' ) start [2025-01-16 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258837', 'tblTempUsageDetail_20' ) end [2025-01-16 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:32:21] Production.INFO: ==2208== Releasing lock... [2025-01-16 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:33:05 [end_date_ymd] => 2025-01-16 05:33:05 [RateCDR] => 1 ) [2025-01-16 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:33:05' and `end` < '2025-01-16 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:33:17] Production.INFO: count ==29 [2025-01-16 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:33:05 - End Time 2025-01-16 05:33:05 [2025-01-16 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258842', 'tblTempUsageDetail_20' ) start [2025-01-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258842', 'tblTempUsageDetail_20' ) end [2025-01-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258842', 'tblTempVendorCDR_20' ) start [2025-01-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258842', 'tblTempVendorCDR_20' ) end [2025-01-16 05:33:17] Production.INFO: ProcessCDR(1,14258842,1,1,2) [2025-01-16 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258842', 'tblTempUsageDetail_20' ) start [2025-01-16 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258842', 'tblTempUsageDetail_20' ) end [2025-01-16 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:33:20] Production.INFO: ==2278== Releasing lock... [2025-01-16 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:33:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:34:05 [end_date_ymd] => 2025-01-16 05:34:05 [RateCDR] => 1 ) [2025-01-16 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:34:05' and `end` < '2025-01-16 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:34:17] Production.INFO: count ==29 [2025-01-16 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:34:05 - End Time 2025-01-16 05:34:05 [2025-01-16 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258847', 'tblTempUsageDetail_20' ) start [2025-01-16 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258847', 'tblTempUsageDetail_20' ) end [2025-01-16 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258847', 'tblTempVendorCDR_20' ) start [2025-01-16 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258847', 'tblTempVendorCDR_20' ) end [2025-01-16 05:34:17] Production.INFO: ProcessCDR(1,14258847,1,1,2) [2025-01-16 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258847', 'tblTempUsageDetail_20' ) start [2025-01-16 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258847', 'tblTempUsageDetail_20' ) end [2025-01-16 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:34:20] Production.INFO: ==2347== Releasing lock... [2025-01-16 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:34:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:35:05 [end_date_ymd] => 2025-01-16 05:35:05 [RateCDR] => 1 ) [2025-01-16 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:35:05' and `end` < '2025-01-16 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:35:17] Production.INFO: count ==29 [2025-01-16 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:35:05 - End Time 2025-01-16 05:35:05 [2025-01-16 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258852', 'tblTempUsageDetail_20' ) start [2025-01-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258852', 'tblTempUsageDetail_20' ) end [2025-01-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258852', 'tblTempVendorCDR_20' ) start [2025-01-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258852', 'tblTempVendorCDR_20' ) end [2025-01-16 05:35:17] Production.INFO: ProcessCDR(1,14258852,1,1,2) [2025-01-16 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258852', 'tblTempUsageDetail_20' ) start [2025-01-16 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258852', 'tblTempUsageDetail_20' ) end [2025-01-16 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:35:21] Production.INFO: ==2419== Releasing lock... [2025-01-16 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:35:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:36:05 [end_date_ymd] => 2025-01-16 05:36:05 [RateCDR] => 1 ) [2025-01-16 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:36:05' and `end` < '2025-01-16 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:36:18] Production.INFO: count ==29 [2025-01-16 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:36:05 - End Time 2025-01-16 05:36:05 [2025-01-16 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258857', 'tblTempUsageDetail_20' ) start [2025-01-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258857', 'tblTempUsageDetail_20' ) end [2025-01-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258857', 'tblTempVendorCDR_20' ) start [2025-01-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258857', 'tblTempVendorCDR_20' ) end [2025-01-16 05:36:18] Production.INFO: ProcessCDR(1,14258857,1,1,2) [2025-01-16 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258857', 'tblTempUsageDetail_20' ) start [2025-01-16 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258857', 'tblTempUsageDetail_20' ) end [2025-01-16 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:36:22] Production.INFO: ==2493== Releasing lock... [2025-01-16 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:36:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:37:05 [end_date_ymd] => 2025-01-16 05:37:05 [RateCDR] => 1 ) [2025-01-16 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:37:05' and `end` < '2025-01-16 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:37:18] Production.INFO: count ==29 [2025-01-16 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:37:05 - End Time 2025-01-16 05:37:05 [2025-01-16 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258862', 'tblTempUsageDetail_20' ) start [2025-01-16 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258862', 'tblTempUsageDetail_20' ) end [2025-01-16 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258862', 'tblTempVendorCDR_20' ) start [2025-01-16 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258862', 'tblTempVendorCDR_20' ) end [2025-01-16 05:37:18] Production.INFO: ProcessCDR(1,14258862,1,1,2) [2025-01-16 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258862', 'tblTempUsageDetail_20' ) start [2025-01-16 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258862', 'tblTempUsageDetail_20' ) end [2025-01-16 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:37:21] Production.INFO: ==2562== Releasing lock... [2025-01-16 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:38:05 [end_date_ymd] => 2025-01-16 05:38:05 [RateCDR] => 1 ) [2025-01-16 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:38:05' and `end` < '2025-01-16 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:38:17] Production.INFO: count ==29 [2025-01-16 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:38:05 - End Time 2025-01-16 05:38:05 [2025-01-16 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258867', 'tblTempUsageDetail_20' ) start [2025-01-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258867', 'tblTempUsageDetail_20' ) end [2025-01-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258867', 'tblTempVendorCDR_20' ) start [2025-01-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258867', 'tblTempVendorCDR_20' ) end [2025-01-16 05:38:17] Production.INFO: ProcessCDR(1,14258867,1,1,2) [2025-01-16 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258867', 'tblTempUsageDetail_20' ) start [2025-01-16 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258867', 'tblTempUsageDetail_20' ) end [2025-01-16 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:38:20] Production.INFO: ==2633== Releasing lock... [2025-01-16 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:38:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:39:05 [end_date_ymd] => 2025-01-16 05:39:05 [RateCDR] => 1 ) [2025-01-16 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:39:05' and `end` < '2025-01-16 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:39:18] Production.INFO: count ==29 [2025-01-16 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:39:05 - End Time 2025-01-16 05:39:05 [2025-01-16 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258872', 'tblTempUsageDetail_20' ) start [2025-01-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258872', 'tblTempUsageDetail_20' ) end [2025-01-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258872', 'tblTempVendorCDR_20' ) start [2025-01-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258872', 'tblTempVendorCDR_20' ) end [2025-01-16 05:39:18] Production.INFO: ProcessCDR(1,14258872,1,1,2) [2025-01-16 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258872', 'tblTempUsageDetail_20' ) start [2025-01-16 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258872', 'tblTempUsageDetail_20' ) end [2025-01-16 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:39:21] Production.INFO: ==2742== Releasing lock... [2025-01-16 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:40:05 [end_date_ymd] => 2025-01-16 05:40:05 [RateCDR] => 1 ) [2025-01-16 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:40:05' and `end` < '2025-01-16 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:40:18] Production.INFO: count ==25 [2025-01-16 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:40:05 - End Time 2025-01-16 05:40:05 [2025-01-16 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258878', 'tblTempUsageDetail_20' ) start [2025-01-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258878', 'tblTempUsageDetail_20' ) end [2025-01-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258878', 'tblTempVendorCDR_20' ) start [2025-01-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258878', 'tblTempVendorCDR_20' ) end [2025-01-16 05:40:18] Production.INFO: ProcessCDR(1,14258878,1,1,2) [2025-01-16 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258878', 'tblTempUsageDetail_20' ) start [2025-01-16 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258878', 'tblTempUsageDetail_20' ) end [2025-01-16 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:40:21] Production.INFO: ==2815== Releasing lock... [2025-01-16 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:41:05 [end_date_ymd] => 2025-01-16 05:41:05 [RateCDR] => 1 ) [2025-01-16 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:41:05' and `end` < '2025-01-16 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:41:17] Production.INFO: count ==25 [2025-01-16 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:41:05 - End Time 2025-01-16 05:41:05 [2025-01-16 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258883', 'tblTempUsageDetail_20' ) start [2025-01-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258883', 'tblTempUsageDetail_20' ) end [2025-01-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258883', 'tblTempVendorCDR_20' ) start [2025-01-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258883', 'tblTempVendorCDR_20' ) end [2025-01-16 05:41:17] Production.INFO: ProcessCDR(1,14258883,1,1,2) [2025-01-16 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258883', 'tblTempUsageDetail_20' ) start [2025-01-16 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258883', 'tblTempUsageDetail_20' ) end [2025-01-16 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:41:20] Production.INFO: ==2887== Releasing lock... [2025-01-16 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:41:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:42:05 [end_date_ymd] => 2025-01-16 05:42:05 [RateCDR] => 1 ) [2025-01-16 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:42:05' and `end` < '2025-01-16 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:42:18] Production.INFO: count ==25 [2025-01-16 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:42:05 - End Time 2025-01-16 05:42:05 [2025-01-16 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258888', 'tblTempUsageDetail_20' ) start [2025-01-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258888', 'tblTempUsageDetail_20' ) end [2025-01-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258888', 'tblTempVendorCDR_20' ) start [2025-01-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258888', 'tblTempVendorCDR_20' ) end [2025-01-16 05:42:18] Production.INFO: ProcessCDR(1,14258888,1,1,2) [2025-01-16 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258888', 'tblTempUsageDetail_20' ) start [2025-01-16 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258888', 'tblTempUsageDetail_20' ) end [2025-01-16 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:42:21] Production.INFO: ==2963== Releasing lock... [2025-01-16 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:43:04 [end_date_ymd] => 2025-01-16 05:43:04 [RateCDR] => 1 ) [2025-01-16 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:43:04' and `end` < '2025-01-16 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:43:16] Production.INFO: count ==25 [2025-01-16 05:43:16] Production.ERROR: pbx CDR StartTime 2025-01-16 02:43:04 - End Time 2025-01-16 05:43:04 [2025-01-16 05:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258893', 'tblTempUsageDetail_20' ) start [2025-01-16 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258893', 'tblTempUsageDetail_20' ) end [2025-01-16 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258893', 'tblTempVendorCDR_20' ) start [2025-01-16 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258893', 'tblTempVendorCDR_20' ) end [2025-01-16 05:43:16] Production.INFO: ProcessCDR(1,14258893,1,1,2) [2025-01-16 05:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258893', 'tblTempUsageDetail_20' ) start [2025-01-16 05:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258893', 'tblTempUsageDetail_20' ) end [2025-01-16 05:43:19] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:43:19] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:43:19] Production.INFO: ==3033== Releasing lock... [2025-01-16 05:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:43:19] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:44:05 [end_date_ymd] => 2025-01-16 05:44:05 [RateCDR] => 1 ) [2025-01-16 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:44:05' and `end` < '2025-01-16 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:44:18] Production.INFO: count ==25 [2025-01-16 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:44:05 - End Time 2025-01-16 05:44:05 [2025-01-16 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258898', 'tblTempUsageDetail_20' ) start [2025-01-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258898', 'tblTempUsageDetail_20' ) end [2025-01-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258898', 'tblTempVendorCDR_20' ) start [2025-01-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258898', 'tblTempVendorCDR_20' ) end [2025-01-16 05:44:18] Production.INFO: ProcessCDR(1,14258898,1,1,2) [2025-01-16 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258898', 'tblTempUsageDetail_20' ) start [2025-01-16 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258898', 'tblTempUsageDetail_20' ) end [2025-01-16 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:44:21] Production.INFO: ==3108== Releasing lock... [2025-01-16 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:44:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:45:05 [end_date_ymd] => 2025-01-16 05:45:05 [RateCDR] => 1 ) [2025-01-16 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:45:05' and `end` < '2025-01-16 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:45:17] Production.INFO: count ==25 [2025-01-16 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:45:05 - End Time 2025-01-16 05:45:05 [2025-01-16 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258903', 'tblTempUsageDetail_20' ) start [2025-01-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258903', 'tblTempUsageDetail_20' ) end [2025-01-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258903', 'tblTempVendorCDR_20' ) start [2025-01-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258903', 'tblTempVendorCDR_20' ) end [2025-01-16 05:45:17] Production.INFO: ProcessCDR(1,14258903,1,1,2) [2025-01-16 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258903', 'tblTempUsageDetail_20' ) start [2025-01-16 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258903', 'tblTempUsageDetail_20' ) end [2025-01-16 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:45:21] Production.INFO: ==3178== Releasing lock... [2025-01-16 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:46:04 [end_date_ymd] => 2025-01-16 05:46:04 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:46:04' and `end` < '2025-01-16 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-01-16 05:46:16] Production.INFO: count ==26 [2025-01-16 05:46:16] Production.ERROR: pbx CDR StartTime 2025-01-16 02:46:04 - End Time 2025-01-16 05:46:04 [2025-01-16 05:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258908', 'tblTempUsageDetail_20' ) start [2025-01-16 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258908', 'tblTempUsageDetail_20' ) end [2025-01-16 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258908', 'tblTempVendorCDR_20' ) start [2025-01-16 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258908', 'tblTempVendorCDR_20' ) end [2025-01-16 05:46:16] Production.INFO: ProcessCDR(1,14258908,1,1,2) [2025-01-16 05:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258908', 'tblTempUsageDetail_20' ) start [2025-01-16 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258908', 'tblTempUsageDetail_20' ) end [2025-01-16 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:46:21] Production.INFO: ==3249== Releasing lock... [2025-01-16 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:46:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:47:05 [end_date_ymd] => 2025-01-16 05:47:05 [RateCDR] => 1 ) [2025-01-16 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:47:05' and `end` < '2025-01-16 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:47:17] Production.INFO: count ==26 [2025-01-16 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:47:05 - End Time 2025-01-16 05:47:05 [2025-01-16 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258913', 'tblTempUsageDetail_20' ) start [2025-01-16 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258913', 'tblTempUsageDetail_20' ) end [2025-01-16 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258913', 'tblTempVendorCDR_20' ) start [2025-01-16 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258913', 'tblTempVendorCDR_20' ) end [2025-01-16 05:47:17] Production.INFO: ProcessCDR(1,14258913,1,1,2) [2025-01-16 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258913', 'tblTempUsageDetail_20' ) start [2025-01-16 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258913', 'tblTempUsageDetail_20' ) end [2025-01-16 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:47:21] Production.INFO: ==3319== Releasing lock... [2025-01-16 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:48:05 [end_date_ymd] => 2025-01-16 05:48:05 [RateCDR] => 1 ) [2025-01-16 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:48:05' and `end` < '2025-01-16 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:48:18] Production.INFO: count ==27 [2025-01-16 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:48:05 - End Time 2025-01-16 05:48:05 [2025-01-16 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258918', 'tblTempUsageDetail_20' ) start [2025-01-16 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258918', 'tblTempUsageDetail_20' ) end [2025-01-16 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258918', 'tblTempVendorCDR_20' ) start [2025-01-16 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258918', 'tblTempVendorCDR_20' ) end [2025-01-16 05:48:18] Production.INFO: ProcessCDR(1,14258918,1,1,2) [2025-01-16 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258918', 'tblTempUsageDetail_20' ) start [2025-01-16 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258918', 'tblTempUsageDetail_20' ) end [2025-01-16 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:48:22] Production.INFO: ==3391== Releasing lock... [2025-01-16 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:48:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:49:04 [end_date_ymd] => 2025-01-16 05:49:04 [RateCDR] => 1 ) [2025-01-16 05:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:49:04' and `end` < '2025-01-16 05:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:49:17] Production.INFO: count ==27 [2025-01-16 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:49:04 - End Time 2025-01-16 05:49:04 [2025-01-16 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258923', 'tblTempUsageDetail_20' ) start [2025-01-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258923', 'tblTempUsageDetail_20' ) end [2025-01-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258923', 'tblTempVendorCDR_20' ) start [2025-01-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258923', 'tblTempVendorCDR_20' ) end [2025-01-16 05:49:17] Production.INFO: ProcessCDR(1,14258923,1,1,2) [2025-01-16 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258923', 'tblTempUsageDetail_20' ) start [2025-01-16 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258923', 'tblTempUsageDetail_20' ) end [2025-01-16 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:49:21] Production.INFO: ==3461== Releasing lock... [2025-01-16 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:49:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:50:05 [end_date_ymd] => 2025-01-16 05:50:05 [RateCDR] => 1 ) [2025-01-16 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:50:05' and `end` < '2025-01-16 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:50:19] Production.INFO: count ==33 [2025-01-16 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-16 02:50:05 - End Time 2025-01-16 05:50:05 [2025-01-16 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258928', 'tblTempUsageDetail_20' ) start [2025-01-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258928', 'tblTempUsageDetail_20' ) end [2025-01-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258928', 'tblTempVendorCDR_20' ) start [2025-01-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258928', 'tblTempVendorCDR_20' ) end [2025-01-16 05:50:19] Production.INFO: ProcessCDR(1,14258928,1,1,2) [2025-01-16 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258928', 'tblTempUsageDetail_20' ) start [2025-01-16 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258928', 'tblTempUsageDetail_20' ) end [2025-01-16 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:50:22] Production.INFO: ==3534== Releasing lock... [2025-01-16 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:50:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:51:05 [end_date_ymd] => 2025-01-16 05:51:05 [RateCDR] => 1 ) [2025-01-16 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:51:05' and `end` < '2025-01-16 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:51:18] Production.INFO: count ==36 [2025-01-16 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:51:05 - End Time 2025-01-16 05:51:05 [2025-01-16 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258934', 'tblTempUsageDetail_20' ) start [2025-01-16 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258934', 'tblTempUsageDetail_20' ) end [2025-01-16 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258934', 'tblTempVendorCDR_20' ) start [2025-01-16 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258934', 'tblTempVendorCDR_20' ) end [2025-01-16 05:51:18] Production.INFO: ProcessCDR(1,14258934,1,1,2) [2025-01-16 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258934', 'tblTempUsageDetail_20' ) start [2025-01-16 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258934', 'tblTempUsageDetail_20' ) end [2025-01-16 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:51:21] Production.INFO: ==3607== Releasing lock... [2025-01-16 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:52:05 [end_date_ymd] => 2025-01-16 05:52:05 [RateCDR] => 1 ) [2025-01-16 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:52:05' and `end` < '2025-01-16 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:52:17] Production.INFO: count ==36 [2025-01-16 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:52:05 - End Time 2025-01-16 05:52:05 [2025-01-16 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258939', 'tblTempUsageDetail_20' ) start [2025-01-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258939', 'tblTempUsageDetail_20' ) end [2025-01-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258939', 'tblTempVendorCDR_20' ) start [2025-01-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258939', 'tblTempVendorCDR_20' ) end [2025-01-16 05:52:17] Production.INFO: ProcessCDR(1,14258939,1,1,2) [2025-01-16 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258939', 'tblTempUsageDetail_20' ) start [2025-01-16 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258939', 'tblTempUsageDetail_20' ) end [2025-01-16 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:52:21] Production.INFO: ==3680== Releasing lock... [2025-01-16 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:53:04 [end_date_ymd] => 2025-01-16 05:53:04 [RateCDR] => 1 ) [2025-01-16 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:53:04' and `end` < '2025-01-16 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:53:16] Production.INFO: count ==36 [2025-01-16 05:53:16] Production.ERROR: pbx CDR StartTime 2025-01-16 02:53:04 - End Time 2025-01-16 05:53:04 [2025-01-16 05:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258944', 'tblTempUsageDetail_20' ) start [2025-01-16 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258944', 'tblTempUsageDetail_20' ) end [2025-01-16 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258944', 'tblTempVendorCDR_20' ) start [2025-01-16 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258944', 'tblTempVendorCDR_20' ) end [2025-01-16 05:53:16] Production.INFO: ProcessCDR(1,14258944,1,1,2) [2025-01-16 05:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258944', 'tblTempUsageDetail_20' ) start [2025-01-16 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258944', 'tblTempUsageDetail_20' ) end [2025-01-16 05:53:19] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:53:19] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:53:20] Production.INFO: ==3750== Releasing lock... [2025-01-16 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:53:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:54:05 [end_date_ymd] => 2025-01-16 05:54:05 [RateCDR] => 1 ) [2025-01-16 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:54:05' and `end` < '2025-01-16 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:54:17] Production.INFO: count ==36 [2025-01-16 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:54:05 - End Time 2025-01-16 05:54:05 [2025-01-16 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258949', 'tblTempUsageDetail_20' ) start [2025-01-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258949', 'tblTempUsageDetail_20' ) end [2025-01-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258949', 'tblTempVendorCDR_20' ) start [2025-01-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258949', 'tblTempVendorCDR_20' ) end [2025-01-16 05:54:17] Production.INFO: ProcessCDR(1,14258949,1,1,2) [2025-01-16 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258949', 'tblTempUsageDetail_20' ) start [2025-01-16 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258949', 'tblTempUsageDetail_20' ) end [2025-01-16 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:54:20] Production.INFO: ==3821== Releasing lock... [2025-01-16 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:54:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:55:05 [end_date_ymd] => 2025-01-16 05:55:05 [RateCDR] => 1 ) [2025-01-16 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:55:05' and `end` < '2025-01-16 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:55:17] Production.INFO: count ==36 [2025-01-16 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:55:05 - End Time 2025-01-16 05:55:05 [2025-01-16 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258954', 'tblTempUsageDetail_20' ) start [2025-01-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258954', 'tblTempUsageDetail_20' ) end [2025-01-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258954', 'tblTempVendorCDR_20' ) start [2025-01-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258954', 'tblTempVendorCDR_20' ) end [2025-01-16 05:55:17] Production.INFO: ProcessCDR(1,14258954,1,1,2) [2025-01-16 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258954', 'tblTempUsageDetail_20' ) start [2025-01-16 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258954', 'tblTempUsageDetail_20' ) end [2025-01-16 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:55:20] Production.INFO: ==3932== Releasing lock... [2025-01-16 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:55:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:56:05 [end_date_ymd] => 2025-01-16 05:56:05 [RateCDR] => 1 ) [2025-01-16 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:56:05' and `end` < '2025-01-16 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:56:18] Production.INFO: count ==36 [2025-01-16 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:56:05 - End Time 2025-01-16 05:56:05 [2025-01-16 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258959', 'tblTempUsageDetail_20' ) start [2025-01-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258959', 'tblTempUsageDetail_20' ) end [2025-01-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258959', 'tblTempVendorCDR_20' ) start [2025-01-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258959', 'tblTempVendorCDR_20' ) end [2025-01-16 05:56:18] Production.INFO: ProcessCDR(1,14258959,1,1,2) [2025-01-16 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258959', 'tblTempUsageDetail_20' ) start [2025-01-16 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258959', 'tblTempUsageDetail_20' ) end [2025-01-16 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:56:21] Production.INFO: ==4026== Releasing lock... [2025-01-16 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:57:05 [end_date_ymd] => 2025-01-16 05:57:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 02:57:05' and `end` < '2025-01-16 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-01-16 05:57:17] Production.INFO: count ==36 [2025-01-16 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 02:57:05 - End Time 2025-01-16 05:57:05 [2025-01-16 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258964', 'tblTempUsageDetail_20' ) start [2025-01-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258964', 'tblTempUsageDetail_20' ) end [2025-01-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258964', 'tblTempVendorCDR_20' ) start [2025-01-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258964', 'tblTempVendorCDR_20' ) end [2025-01-16 05:57:17] Production.INFO: ProcessCDR(1,14258964,1,1,2) [2025-01-16 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258964', 'tblTempUsageDetail_20' ) start [2025-01-16 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258964', 'tblTempUsageDetail_20' ) end [2025-01-16 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:57:20] Production.INFO: ==4097== Releasing lock... [2025-01-16 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:57:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:58:05 [end_date_ymd] => 2025-01-16 05:58:05 [RateCDR] => 1 ) [2025-01-16 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:58:05' and `end` < '2025-01-16 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:58:18] Production.INFO: count ==36 [2025-01-16 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:58:05 - End Time 2025-01-16 05:58:05 [2025-01-16 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258969', 'tblTempUsageDetail_20' ) start [2025-01-16 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258969', 'tblTempUsageDetail_20' ) end [2025-01-16 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258969', 'tblTempVendorCDR_20' ) start [2025-01-16 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258969', 'tblTempVendorCDR_20' ) end [2025-01-16 05:58:18] Production.INFO: ProcessCDR(1,14258969,1,1,2) [2025-01-16 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258969', 'tblTempUsageDetail_20' ) start [2025-01-16 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258969', 'tblTempUsageDetail_20' ) end [2025-01-16 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:58:22] Production.INFO: ==4169== Releasing lock... [2025-01-16 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:58:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 02:59:05 [end_date_ymd] => 2025-01-16 05:59:05 [RateCDR] => 1 ) [2025-01-16 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 02:59:05' and `end` < '2025-01-16 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 05:59:18] Production.INFO: count ==36 [2025-01-16 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 02:59:05 - End Time 2025-01-16 05:59:05 [2025-01-16 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258974', 'tblTempUsageDetail_20' ) start [2025-01-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258974', 'tblTempUsageDetail_20' ) end [2025-01-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258974', 'tblTempVendorCDR_20' ) start [2025-01-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258974', 'tblTempVendorCDR_20' ) end [2025-01-16 05:59:18] Production.INFO: ProcessCDR(1,14258974,1,1,2) [2025-01-16 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258974', 'tblTempUsageDetail_20' ) start [2025-01-16 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258974', 'tblTempUsageDetail_20' ) end [2025-01-16 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 05:59:22] Production.INFO: ==4241== Releasing lock... [2025-01-16 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 05:59:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:00:05 [end_date_ymd] => 2025-01-16 06:00:05 [RateCDR] => 1 ) [2025-01-16 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:00:05' and `end` < '2025-01-16 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:00:17] Production.INFO: count ==30 [2025-01-16 06:00:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:00:05 - End Time 2025-01-16 06:00:05 [2025-01-16 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258979', 'tblTempUsageDetail_20' ) start [2025-01-16 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258979', 'tblTempUsageDetail_20' ) end [2025-01-16 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258979', 'tblTempVendorCDR_20' ) start [2025-01-16 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258979', 'tblTempVendorCDR_20' ) end [2025-01-16 06:00:17] Production.INFO: ProcessCDR(1,14258979,1,1,2) [2025-01-16 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258979', 'tblTempUsageDetail_20' ) start [2025-01-16 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258979', 'tblTempUsageDetail_20' ) end [2025-01-16 06:00:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:00:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:00:20] Production.INFO: ==4313== Releasing lock... [2025-01-16 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:00:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:01:05 [end_date_ymd] => 2025-01-16 06:01:05 [RateCDR] => 1 ) [2025-01-16 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:01:05' and `end` < '2025-01-16 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:01:18] Production.INFO: count ==28 [2025-01-16 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:01:05 - End Time 2025-01-16 06:01:05 [2025-01-16 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258985', 'tblTempUsageDetail_20' ) start [2025-01-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258985', 'tblTempUsageDetail_20' ) end [2025-01-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258985', 'tblTempVendorCDR_20' ) start [2025-01-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258985', 'tblTempVendorCDR_20' ) end [2025-01-16 06:01:18] Production.INFO: ProcessCDR(1,14258985,1,1,2) [2025-01-16 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258985', 'tblTempUsageDetail_20' ) start [2025-01-16 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258985', 'tblTempUsageDetail_20' ) end [2025-01-16 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:01:21] Production.INFO: ==4399== Releasing lock... [2025-01-16 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:01:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:02:04 [end_date_ymd] => 2025-01-16 06:02:04 [RateCDR] => 1 ) [2025-01-16 06:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:02:04' and `end` < '2025-01-16 06:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:02:16] Production.INFO: count ==28 [2025-01-16 06:02:16] Production.ERROR: pbx CDR StartTime 2025-01-16 03:02:04 - End Time 2025-01-16 06:02:04 [2025-01-16 06:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258990', 'tblTempUsageDetail_20' ) start [2025-01-16 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258990', 'tblTempUsageDetail_20' ) end [2025-01-16 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258990', 'tblTempVendorCDR_20' ) start [2025-01-16 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258990', 'tblTempVendorCDR_20' ) end [2025-01-16 06:02:16] Production.INFO: ProcessCDR(1,14258990,1,1,2) [2025-01-16 06:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258990', 'tblTempUsageDetail_20' ) start [2025-01-16 06:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258990', 'tblTempUsageDetail_20' ) end [2025-01-16 06:02:19] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:02:19] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:02:19] Production.INFO: ==4470== Releasing lock... [2025-01-16 06:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:02:19] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:03:05 [end_date_ymd] => 2025-01-16 06:03:05 [RateCDR] => 1 ) [2025-01-16 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:03:05' and `end` < '2025-01-16 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:03:18] Production.INFO: count ==28 [2025-01-16 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:03:05 - End Time 2025-01-16 06:03:05 [2025-01-16 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258995', 'tblTempUsageDetail_20' ) start [2025-01-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14258995', 'tblTempUsageDetail_20' ) end [2025-01-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258995', 'tblTempVendorCDR_20' ) start [2025-01-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14258995', 'tblTempVendorCDR_20' ) end [2025-01-16 06:03:18] Production.INFO: ProcessCDR(1,14258995,1,1,2) [2025-01-16 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14258995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14258995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14258995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14258995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258995', 'tblTempUsageDetail_20' ) start [2025-01-16 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14258995', 'tblTempUsageDetail_20' ) end [2025-01-16 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:03:21] Production.INFO: ==4540== Releasing lock... [2025-01-16 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:03:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:04:05 [end_date_ymd] => 2025-01-16 06:04:05 [RateCDR] => 1 ) [2025-01-16 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:04:05' and `end` < '2025-01-16 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:04:18] Production.INFO: count ==28 [2025-01-16 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:04:05 - End Time 2025-01-16 06:04:05 [2025-01-16 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259000', 'tblTempUsageDetail_20' ) start [2025-01-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259000', 'tblTempUsageDetail_20' ) end [2025-01-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259000', 'tblTempVendorCDR_20' ) start [2025-01-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259000', 'tblTempVendorCDR_20' ) end [2025-01-16 06:04:18] Production.INFO: ProcessCDR(1,14259000,1,1,2) [2025-01-16 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259000', 'tblTempUsageDetail_20' ) start [2025-01-16 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259000', 'tblTempUsageDetail_20' ) end [2025-01-16 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:04:21] Production.INFO: ==4618== Releasing lock... [2025-01-16 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:05:04 [end_date_ymd] => 2025-01-16 06:05:04 [RateCDR] => 1 ) [2025-01-16 06:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:05:04' and `end` < '2025-01-16 06:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:05:17] Production.INFO: count ==28 [2025-01-16 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:05:04 - End Time 2025-01-16 06:05:04 [2025-01-16 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259005', 'tblTempUsageDetail_20' ) start [2025-01-16 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259005', 'tblTempUsageDetail_20' ) end [2025-01-16 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259005', 'tblTempVendorCDR_20' ) start [2025-01-16 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259005', 'tblTempVendorCDR_20' ) end [2025-01-16 06:05:17] Production.INFO: ProcessCDR(1,14259005,1,1,2) [2025-01-16 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259005', 'tblTempUsageDetail_20' ) start [2025-01-16 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259005', 'tblTempUsageDetail_20' ) end [2025-01-16 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:05:20] Production.INFO: ==4688== Releasing lock... [2025-01-16 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:05:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:06:05 [end_date_ymd] => 2025-01-16 06:06:05 [RateCDR] => 1 ) [2025-01-16 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:06:05' and `end` < '2025-01-16 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:06:18] Production.INFO: count ==28 [2025-01-16 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:06:05 - End Time 2025-01-16 06:06:05 [2025-01-16 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259010', 'tblTempUsageDetail_20' ) start [2025-01-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259010', 'tblTempUsageDetail_20' ) end [2025-01-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259010', 'tblTempVendorCDR_20' ) start [2025-01-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259010', 'tblTempVendorCDR_20' ) end [2025-01-16 06:06:18] Production.INFO: ProcessCDR(1,14259010,1,1,2) [2025-01-16 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259010', 'tblTempUsageDetail_20' ) start [2025-01-16 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259010', 'tblTempUsageDetail_20' ) end [2025-01-16 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:06:21] Production.INFO: ==4758== Releasing lock... [2025-01-16 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:06:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:07:05 [end_date_ymd] => 2025-01-16 06:07:05 [RateCDR] => 1 ) [2025-01-16 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:07:05' and `end` < '2025-01-16 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:07:17] Production.INFO: count ==28 [2025-01-16 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:07:05 - End Time 2025-01-16 06:07:05 [2025-01-16 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259015', 'tblTempUsageDetail_20' ) start [2025-01-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259015', 'tblTempUsageDetail_20' ) end [2025-01-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259015', 'tblTempVendorCDR_20' ) start [2025-01-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259015', 'tblTempVendorCDR_20' ) end [2025-01-16 06:07:17] Production.INFO: ProcessCDR(1,14259015,1,1,2) [2025-01-16 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259015', 'tblTempUsageDetail_20' ) start [2025-01-16 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259015', 'tblTempUsageDetail_20' ) end [2025-01-16 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:07:20] Production.INFO: ==4829== Releasing lock... [2025-01-16 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:07:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:08:05 [end_date_ymd] => 2025-01-16 06:08:05 [RateCDR] => 1 ) [2025-01-16 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:08:05' and `end` < '2025-01-16 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:08:19] Production.INFO: count ==28 [2025-01-16 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-16 03:08:05 - End Time 2025-01-16 06:08:05 [2025-01-16 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259020', 'tblTempUsageDetail_20' ) start [2025-01-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259020', 'tblTempUsageDetail_20' ) end [2025-01-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259020', 'tblTempVendorCDR_20' ) start [2025-01-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259020', 'tblTempVendorCDR_20' ) end [2025-01-16 06:08:19] Production.INFO: ProcessCDR(1,14259020,1,1,2) [2025-01-16 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259020', 'tblTempUsageDetail_20' ) start [2025-01-16 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259020', 'tblTempUsageDetail_20' ) end [2025-01-16 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:08:22] Production.INFO: ==4899== Releasing lock... [2025-01-16 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:09:05 [end_date_ymd] => 2025-01-16 06:09:05 [RateCDR] => 1 ) [2025-01-16 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:09:05' and `end` < '2025-01-16 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:09:17] Production.INFO: count ==28 [2025-01-16 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:09:05 - End Time 2025-01-16 06:09:05 [2025-01-16 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259025', 'tblTempUsageDetail_20' ) start [2025-01-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259025', 'tblTempUsageDetail_20' ) end [2025-01-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259025', 'tblTempVendorCDR_20' ) start [2025-01-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259025', 'tblTempVendorCDR_20' ) end [2025-01-16 06:09:17] Production.INFO: ProcessCDR(1,14259025,1,1,2) [2025-01-16 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259025', 'tblTempUsageDetail_20' ) start [2025-01-16 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259025', 'tblTempUsageDetail_20' ) end [2025-01-16 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:09:21] Production.INFO: ==4979== Releasing lock... [2025-01-16 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:10:06 [end_date_ymd] => 2025-01-16 06:10:06 [RateCDR] => 1 ) [2025-01-16 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:10:06' and `end` < '2025-01-16 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:10:18] Production.INFO: count ==20 [2025-01-16 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:10:06 - End Time 2025-01-16 06:10:06 [2025-01-16 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259030', 'tblTempUsageDetail_20' ) start [2025-01-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259030', 'tblTempUsageDetail_20' ) end [2025-01-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259030', 'tblTempVendorCDR_20' ) start [2025-01-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259030', 'tblTempVendorCDR_20' ) end [2025-01-16 06:10:18] Production.INFO: ProcessCDR(1,14259030,1,1,2) [2025-01-16 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259030', 'tblTempUsageDetail_20' ) start [2025-01-16 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259030', 'tblTempUsageDetail_20' ) end [2025-01-16 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:10:21] Production.INFO: ==5092== Releasing lock... [2025-01-16 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:11:05 [end_date_ymd] => 2025-01-16 06:11:05 [RateCDR] => 1 ) [2025-01-16 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:11:05' and `end` < '2025-01-16 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:11:17] Production.INFO: count ==18 [2025-01-16 06:11:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:11:05 - End Time 2025-01-16 06:11:05 [2025-01-16 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259036', 'tblTempUsageDetail_20' ) start [2025-01-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259036', 'tblTempUsageDetail_20' ) end [2025-01-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259036', 'tblTempVendorCDR_20' ) start [2025-01-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259036', 'tblTempVendorCDR_20' ) end [2025-01-16 06:11:17] Production.INFO: ProcessCDR(1,14259036,1,1,2) [2025-01-16 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259036', 'tblTempUsageDetail_20' ) start [2025-01-16 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259036', 'tblTempUsageDetail_20' ) end [2025-01-16 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:11:20] Production.INFO: ==5165== Releasing lock... [2025-01-16 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:11:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:12:05 [end_date_ymd] => 2025-01-16 06:12:05 [RateCDR] => 1 ) [2025-01-16 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:12:05' and `end` < '2025-01-16 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:12:18] Production.INFO: count ==18 [2025-01-16 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:12:05 - End Time 2025-01-16 06:12:05 [2025-01-16 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259041', 'tblTempUsageDetail_20' ) start [2025-01-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259041', 'tblTempUsageDetail_20' ) end [2025-01-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259041', 'tblTempVendorCDR_20' ) start [2025-01-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259041', 'tblTempVendorCDR_20' ) end [2025-01-16 06:12:18] Production.INFO: ProcessCDR(1,14259041,1,1,2) [2025-01-16 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259041', 'tblTempUsageDetail_20' ) start [2025-01-16 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259041', 'tblTempUsageDetail_20' ) end [2025-01-16 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:12:21] Production.INFO: ==5238== Releasing lock... [2025-01-16 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:13:05 [end_date_ymd] => 2025-01-16 06:13:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 03:13:05' and `end` < '2025-01-16 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-01-16 06:13:17] Production.INFO: count ==18 [2025-01-16 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:13:05 - End Time 2025-01-16 06:13:05 [2025-01-16 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259046', 'tblTempUsageDetail_20' ) start [2025-01-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259046', 'tblTempUsageDetail_20' ) end [2025-01-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259046', 'tblTempVendorCDR_20' ) start [2025-01-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259046', 'tblTempVendorCDR_20' ) end [2025-01-16 06:13:17] Production.INFO: ProcessCDR(1,14259046,1,1,2) [2025-01-16 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259046', 'tblTempUsageDetail_20' ) start [2025-01-16 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259046', 'tblTempUsageDetail_20' ) end [2025-01-16 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:13:20] Production.INFO: ==5314== Releasing lock... [2025-01-16 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:14:05 [end_date_ymd] => 2025-01-16 06:14:05 [RateCDR] => 1 ) [2025-01-16 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:14:05' and `end` < '2025-01-16 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:14:18] Production.INFO: count ==18 [2025-01-16 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:14:05 - End Time 2025-01-16 06:14:05 [2025-01-16 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259051', 'tblTempUsageDetail_20' ) start [2025-01-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259051', 'tblTempUsageDetail_20' ) end [2025-01-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259051', 'tblTempVendorCDR_20' ) start [2025-01-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259051', 'tblTempVendorCDR_20' ) end [2025-01-16 06:14:18] Production.INFO: ProcessCDR(1,14259051,1,1,2) [2025-01-16 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259051', 'tblTempUsageDetail_20' ) start [2025-01-16 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259051', 'tblTempUsageDetail_20' ) end [2025-01-16 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:14:21] Production.INFO: ==5387== Releasing lock... [2025-01-16 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:14:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:15:05 [end_date_ymd] => 2025-01-16 06:15:05 [RateCDR] => 1 ) [2025-01-16 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:15:05' and `end` < '2025-01-16 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:15:17] Production.INFO: count ==18 [2025-01-16 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:15:05 - End Time 2025-01-16 06:15:05 [2025-01-16 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259056', 'tblTempUsageDetail_20' ) start [2025-01-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259056', 'tblTempUsageDetail_20' ) end [2025-01-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259056', 'tblTempVendorCDR_20' ) start [2025-01-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259056', 'tblTempVendorCDR_20' ) end [2025-01-16 06:15:17] Production.INFO: ProcessCDR(1,14259056,1,1,2) [2025-01-16 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259056', 'tblTempUsageDetail_20' ) start [2025-01-16 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259056', 'tblTempUsageDetail_20' ) end [2025-01-16 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:15:20] Production.INFO: ==5459== Releasing lock... [2025-01-16 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:15:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:16:05 [end_date_ymd] => 2025-01-16 06:16:05 [RateCDR] => 1 ) [2025-01-16 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:16:05' and `end` < '2025-01-16 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:16:18] Production.INFO: count ==18 [2025-01-16 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:16:05 - End Time 2025-01-16 06:16:05 [2025-01-16 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259061', 'tblTempUsageDetail_20' ) start [2025-01-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259061', 'tblTempUsageDetail_20' ) end [2025-01-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259061', 'tblTempVendorCDR_20' ) start [2025-01-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259061', 'tblTempVendorCDR_20' ) end [2025-01-16 06:16:18] Production.INFO: ProcessCDR(1,14259061,1,1,2) [2025-01-16 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259061', 'tblTempUsageDetail_20' ) start [2025-01-16 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259061', 'tblTempUsageDetail_20' ) end [2025-01-16 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:16:22] Production.INFO: ==5530== Releasing lock... [2025-01-16 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:16:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:17:05 [end_date_ymd] => 2025-01-16 06:17:05 [RateCDR] => 1 ) [2025-01-16 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:17:05' and `end` < '2025-01-16 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:17:18] Production.INFO: count ==18 [2025-01-16 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:17:05 - End Time 2025-01-16 06:17:05 [2025-01-16 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259066', 'tblTempUsageDetail_20' ) start [2025-01-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259066', 'tblTempUsageDetail_20' ) end [2025-01-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259066', 'tblTempVendorCDR_20' ) start [2025-01-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259066', 'tblTempVendorCDR_20' ) end [2025-01-16 06:17:18] Production.INFO: ProcessCDR(1,14259066,1,1,2) [2025-01-16 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259066', 'tblTempUsageDetail_20' ) start [2025-01-16 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259066', 'tblTempUsageDetail_20' ) end [2025-01-16 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:17:21] Production.INFO: ==5601== Releasing lock... [2025-01-16 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:17:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:18:05 [end_date_ymd] => 2025-01-16 06:18:05 [RateCDR] => 1 ) [2025-01-16 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:18:05' and `end` < '2025-01-16 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:18:18] Production.INFO: count ==18 [2025-01-16 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:18:05 - End Time 2025-01-16 06:18:05 [2025-01-16 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259071', 'tblTempUsageDetail_20' ) start [2025-01-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259071', 'tblTempUsageDetail_20' ) end [2025-01-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259071', 'tblTempVendorCDR_20' ) start [2025-01-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259071', 'tblTempVendorCDR_20' ) end [2025-01-16 06:18:18] Production.INFO: ProcessCDR(1,14259071,1,1,2) [2025-01-16 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259071', 'tblTempUsageDetail_20' ) start [2025-01-16 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259071', 'tblTempUsageDetail_20' ) end [2025-01-16 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:18:21] Production.INFO: ==5673== Releasing lock... [2025-01-16 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:18:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:19:05 [end_date_ymd] => 2025-01-16 06:19:05 [RateCDR] => 1 ) [2025-01-16 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:19:05' and `end` < '2025-01-16 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:19:17] Production.INFO: count ==18 [2025-01-16 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:19:05 - End Time 2025-01-16 06:19:05 [2025-01-16 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259076', 'tblTempUsageDetail_20' ) start [2025-01-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259076', 'tblTempUsageDetail_20' ) end [2025-01-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259076', 'tblTempVendorCDR_20' ) start [2025-01-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259076', 'tblTempVendorCDR_20' ) end [2025-01-16 06:19:17] Production.INFO: ProcessCDR(1,14259076,1,1,2) [2025-01-16 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259076', 'tblTempUsageDetail_20' ) start [2025-01-16 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259076', 'tblTempUsageDetail_20' ) end [2025-01-16 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:19:20] Production.INFO: ==5743== Releasing lock... [2025-01-16 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:19:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:20:06 [end_date_ymd] => 2025-01-16 06:20:06 [RateCDR] => 1 ) [2025-01-16 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:20:06' and `end` < '2025-01-16 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:20:18] Production.INFO: count ==18 [2025-01-16 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:20:06 - End Time 2025-01-16 06:20:06 [2025-01-16 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259082', 'tblTempUsageDetail_20' ) start [2025-01-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259082', 'tblTempUsageDetail_20' ) end [2025-01-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259082', 'tblTempVendorCDR_20' ) start [2025-01-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259082', 'tblTempVendorCDR_20' ) end [2025-01-16 06:20:18] Production.INFO: ProcessCDR(1,14259082,1,1,2) [2025-01-16 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259082', 'tblTempUsageDetail_20' ) start [2025-01-16 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259082', 'tblTempUsageDetail_20' ) end [2025-01-16 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:20:21] Production.INFO: ==5816== Releasing lock... [2025-01-16 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:20:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:21:05 [end_date_ymd] => 2025-01-16 06:21:05 [RateCDR] => 1 ) [2025-01-16 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:21:05' and `end` < '2025-01-16 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:21:17] Production.INFO: count ==18 [2025-01-16 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:21:05 - End Time 2025-01-16 06:21:05 [2025-01-16 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259087', 'tblTempUsageDetail_20' ) start [2025-01-16 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259087', 'tblTempUsageDetail_20' ) end [2025-01-16 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259087', 'tblTempVendorCDR_20' ) start [2025-01-16 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259087', 'tblTempVendorCDR_20' ) end [2025-01-16 06:21:17] Production.INFO: ProcessCDR(1,14259087,1,1,2) [2025-01-16 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259087', 'tblTempUsageDetail_20' ) start [2025-01-16 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259087', 'tblTempUsageDetail_20' ) end [2025-01-16 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:21:21] Production.INFO: ==5890== Releasing lock... [2025-01-16 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:22:05 [end_date_ymd] => 2025-01-16 06:22:05 [RateCDR] => 1 ) [2025-01-16 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:22:05' and `end` < '2025-01-16 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:22:17] Production.INFO: count ==18 [2025-01-16 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:22:05 - End Time 2025-01-16 06:22:05 [2025-01-16 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259092', 'tblTempUsageDetail_20' ) start [2025-01-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259092', 'tblTempUsageDetail_20' ) end [2025-01-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259092', 'tblTempVendorCDR_20' ) start [2025-01-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259092', 'tblTempVendorCDR_20' ) end [2025-01-16 06:22:17] Production.INFO: ProcessCDR(1,14259092,1,1,2) [2025-01-16 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259092', 'tblTempUsageDetail_20' ) start [2025-01-16 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259092', 'tblTempUsageDetail_20' ) end [2025-01-16 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:22:21] Production.INFO: ==5959== Releasing lock... [2025-01-16 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:22:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:23:05 [end_date_ymd] => 2025-01-16 06:23:05 [RateCDR] => 1 ) [2025-01-16 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:23:05' and `end` < '2025-01-16 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:23:18] Production.INFO: count ==18 [2025-01-16 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:23:05 - End Time 2025-01-16 06:23:05 [2025-01-16 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259097', 'tblTempUsageDetail_20' ) start [2025-01-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259097', 'tblTempUsageDetail_20' ) end [2025-01-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259097', 'tblTempVendorCDR_20' ) start [2025-01-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259097', 'tblTempVendorCDR_20' ) end [2025-01-16 06:23:18] Production.INFO: ProcessCDR(1,14259097,1,1,2) [2025-01-16 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259097', 'tblTempUsageDetail_20' ) start [2025-01-16 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259097', 'tblTempUsageDetail_20' ) end [2025-01-16 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:23:21] Production.INFO: ==6031== Releasing lock... [2025-01-16 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:24:05 [end_date_ymd] => 2025-01-16 06:24:05 [RateCDR] => 1 ) [2025-01-16 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:24:05' and `end` < '2025-01-16 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:24:19] Production.INFO: count ==18 [2025-01-16 06:24:19] Production.ERROR: pbx CDR StartTime 2025-01-16 03:24:05 - End Time 2025-01-16 06:24:05 [2025-01-16 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259102', 'tblTempUsageDetail_20' ) start [2025-01-16 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259102', 'tblTempUsageDetail_20' ) end [2025-01-16 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259102', 'tblTempVendorCDR_20' ) start [2025-01-16 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259102', 'tblTempVendorCDR_20' ) end [2025-01-16 06:24:19] Production.INFO: ProcessCDR(1,14259102,1,1,2) [2025-01-16 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259102', 'tblTempUsageDetail_20' ) start [2025-01-16 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259102', 'tblTempUsageDetail_20' ) end [2025-01-16 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:24:22] Production.INFO: ==6102== Releasing lock... [2025-01-16 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:24:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:25:04 [end_date_ymd] => 2025-01-16 06:25:04 [RateCDR] => 1 ) [2025-01-16 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:25:04' and `end` < '2025-01-16 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:25:17] Production.INFO: count ==18 [2025-01-16 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:25:04 - End Time 2025-01-16 06:25:04 [2025-01-16 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259107', 'tblTempUsageDetail_20' ) start [2025-01-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259107', 'tblTempUsageDetail_20' ) end [2025-01-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259107', 'tblTempVendorCDR_20' ) start [2025-01-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259107', 'tblTempVendorCDR_20' ) end [2025-01-16 06:25:17] Production.INFO: ProcessCDR(1,14259107,1,1,2) [2025-01-16 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259107', 'tblTempUsageDetail_20' ) start [2025-01-16 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259107', 'tblTempUsageDetail_20' ) end [2025-01-16 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:25:20] Production.INFO: ==6172== Releasing lock... [2025-01-16 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:25:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:26:05 [end_date_ymd] => 2025-01-16 06:26:05 [RateCDR] => 1 ) [2025-01-16 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:26:05' and `end` < '2025-01-16 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:26:17] Production.INFO: count ==18 [2025-01-16 06:26:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:26:05 - End Time 2025-01-16 06:26:05 [2025-01-16 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259112', 'tblTempUsageDetail_20' ) start [2025-01-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259112', 'tblTempUsageDetail_20' ) end [2025-01-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259112', 'tblTempVendorCDR_20' ) start [2025-01-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259112', 'tblTempVendorCDR_20' ) end [2025-01-16 06:26:17] Production.INFO: ProcessCDR(1,14259112,1,1,2) [2025-01-16 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259112', 'tblTempUsageDetail_20' ) start [2025-01-16 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259112', 'tblTempUsageDetail_20' ) end [2025-01-16 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:26:20] Production.INFO: ==6285== Releasing lock... [2025-01-16 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:26:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:27:05 [end_date_ymd] => 2025-01-16 06:27:05 [RateCDR] => 1 ) [2025-01-16 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:27:05' and `end` < '2025-01-16 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:27:18] Production.INFO: count ==18 [2025-01-16 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:27:05 - End Time 2025-01-16 06:27:05 [2025-01-16 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259117', 'tblTempUsageDetail_20' ) start [2025-01-16 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259117', 'tblTempUsageDetail_20' ) end [2025-01-16 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259117', 'tblTempVendorCDR_20' ) start [2025-01-16 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259117', 'tblTempVendorCDR_20' ) end [2025-01-16 06:27:18] Production.INFO: ProcessCDR(1,14259117,1,1,2) [2025-01-16 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259117', 'tblTempUsageDetail_20' ) start [2025-01-16 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259117', 'tblTempUsageDetail_20' ) end [2025-01-16 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:27:21] Production.INFO: ==6358== Releasing lock... [2025-01-16 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:28:05 [end_date_ymd] => 2025-01-16 06:28:05 [RateCDR] => 1 ) [2025-01-16 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:28:05' and `end` < '2025-01-16 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:28:18] Production.INFO: count ==18 [2025-01-16 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:28:05 - End Time 2025-01-16 06:28:05 [2025-01-16 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259122', 'tblTempUsageDetail_20' ) start [2025-01-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259122', 'tblTempUsageDetail_20' ) end [2025-01-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259122', 'tblTempVendorCDR_20' ) start [2025-01-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259122', 'tblTempVendorCDR_20' ) end [2025-01-16 06:28:18] Production.INFO: ProcessCDR(1,14259122,1,1,2) [2025-01-16 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259122', 'tblTempUsageDetail_20' ) start [2025-01-16 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259122', 'tblTempUsageDetail_20' ) end [2025-01-16 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:28:21] Production.INFO: ==6433== Releasing lock... [2025-01-16 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:28:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:29:05 [end_date_ymd] => 2025-01-16 06:29:05 [RateCDR] => 1 ) [2025-01-16 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:29:05' and `end` < '2025-01-16 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:29:17] Production.INFO: count ==18 [2025-01-16 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:29:05 - End Time 2025-01-16 06:29:05 [2025-01-16 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259127', 'tblTempUsageDetail_20' ) start [2025-01-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259127', 'tblTempUsageDetail_20' ) end [2025-01-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259127', 'tblTempVendorCDR_20' ) start [2025-01-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259127', 'tblTempVendorCDR_20' ) end [2025-01-16 06:29:17] Production.INFO: ProcessCDR(1,14259127,1,1,2) [2025-01-16 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259127', 'tblTempUsageDetail_20' ) start [2025-01-16 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259127', 'tblTempUsageDetail_20' ) end [2025-01-16 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:29:20] Production.INFO: ==6503== Releasing lock... [2025-01-16 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:29:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:30:05 [end_date_ymd] => 2025-01-16 06:30:05 [RateCDR] => 1 ) [2025-01-16 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:30:05' and `end` < '2025-01-16 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:30:17] Production.INFO: count ==18 [2025-01-16 06:30:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:30:05 - End Time 2025-01-16 06:30:05 [2025-01-16 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259133', 'tblTempUsageDetail_20' ) start [2025-01-16 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259133', 'tblTempUsageDetail_20' ) end [2025-01-16 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259133', 'tblTempVendorCDR_20' ) start [2025-01-16 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259133', 'tblTempVendorCDR_20' ) end [2025-01-16 06:30:17] Production.INFO: ProcessCDR(1,14259133,1,1,2) [2025-01-16 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259133', 'tblTempUsageDetail_20' ) start [2025-01-16 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259133', 'tblTempUsageDetail_20' ) end [2025-01-16 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:30:21] Production.INFO: ==6576== Releasing lock... [2025-01-16 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:31:05 [end_date_ymd] => 2025-01-16 06:31:05 [RateCDR] => 1 ) [2025-01-16 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:31:05' and `end` < '2025-01-16 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:31:18] Production.INFO: count ==18 [2025-01-16 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:31:05 - End Time 2025-01-16 06:31:05 [2025-01-16 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259138', 'tblTempUsageDetail_20' ) start [2025-01-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259138', 'tblTempUsageDetail_20' ) end [2025-01-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259138', 'tblTempVendorCDR_20' ) start [2025-01-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259138', 'tblTempVendorCDR_20' ) end [2025-01-16 06:31:18] Production.INFO: ProcessCDR(1,14259138,1,1,2) [2025-01-16 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259138', 'tblTempUsageDetail_20' ) start [2025-01-16 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259138', 'tblTempUsageDetail_20' ) end [2025-01-16 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:31:21] Production.INFO: ==6649== Releasing lock... [2025-01-16 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:32:05 [end_date_ymd] => 2025-01-16 06:32:05 [RateCDR] => 1 ) [2025-01-16 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:32:05' and `end` < '2025-01-16 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:32:17] Production.INFO: count ==18 [2025-01-16 06:32:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:32:05 - End Time 2025-01-16 06:32:05 [2025-01-16 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259143', 'tblTempUsageDetail_20' ) start [2025-01-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259143', 'tblTempUsageDetail_20' ) end [2025-01-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259143', 'tblTempVendorCDR_20' ) start [2025-01-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259143', 'tblTempVendorCDR_20' ) end [2025-01-16 06:32:17] Production.INFO: ProcessCDR(1,14259143,1,1,2) [2025-01-16 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259143', 'tblTempUsageDetail_20' ) start [2025-01-16 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259143', 'tblTempUsageDetail_20' ) end [2025-01-16 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:32:20] Production.INFO: ==6720== Releasing lock... [2025-01-16 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:32:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:33:05 [end_date_ymd] => 2025-01-16 06:33:05 [RateCDR] => 1 ) [2025-01-16 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:33:05' and `end` < '2025-01-16 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:33:18] Production.INFO: count ==18 [2025-01-16 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:33:05 - End Time 2025-01-16 06:33:05 [2025-01-16 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259148', 'tblTempUsageDetail_20' ) start [2025-01-16 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259148', 'tblTempUsageDetail_20' ) end [2025-01-16 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259148', 'tblTempVendorCDR_20' ) start [2025-01-16 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259148', 'tblTempVendorCDR_20' ) end [2025-01-16 06:33:18] Production.INFO: ProcessCDR(1,14259148,1,1,2) [2025-01-16 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259148', 'tblTempUsageDetail_20' ) start [2025-01-16 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259148', 'tblTempUsageDetail_20' ) end [2025-01-16 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:33:21] Production.INFO: ==6792== Releasing lock... [2025-01-16 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:34:05 [end_date_ymd] => 2025-01-16 06:34:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 03:34:05' and `end` < '2025-01-16 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-01-16 06:34:17] Production.INFO: count ==18 [2025-01-16 06:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:34:05 - End Time 2025-01-16 06:34:05 [2025-01-16 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259153', 'tblTempUsageDetail_20' ) start [2025-01-16 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259153', 'tblTempUsageDetail_20' ) end [2025-01-16 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259153', 'tblTempVendorCDR_20' ) start [2025-01-16 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259153', 'tblTempVendorCDR_20' ) end [2025-01-16 06:34:17] Production.INFO: ProcessCDR(1,14259153,1,1,2) [2025-01-16 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259153', 'tblTempUsageDetail_20' ) start [2025-01-16 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259153', 'tblTempUsageDetail_20' ) end [2025-01-16 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:34:20] Production.INFO: ==6862== Releasing lock... [2025-01-16 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:34:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:35:05 [end_date_ymd] => 2025-01-16 06:35:05 [RateCDR] => 1 ) [2025-01-16 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:35:05' and `end` < '2025-01-16 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:35:21] Production.INFO: count ==18 [2025-01-16 06:35:21] Production.ERROR: pbx CDR StartTime 2025-01-16 03:35:05 - End Time 2025-01-16 06:35:05 [2025-01-16 06:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259158', 'tblTempUsageDetail_20' ) start [2025-01-16 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259158', 'tblTempUsageDetail_20' ) end [2025-01-16 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259158', 'tblTempVendorCDR_20' ) start [2025-01-16 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259158', 'tblTempVendorCDR_20' ) end [2025-01-16 06:35:21] Production.INFO: ProcessCDR(1,14259158,1,1,2) [2025-01-16 06:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259158', 'tblTempUsageDetail_20' ) start [2025-01-16 06:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259158', 'tblTempUsageDetail_20' ) end [2025-01-16 06:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:35:24] Production.INFO: ==6934== Releasing lock... [2025-01-16 06:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:35:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:36:05 [end_date_ymd] => 2025-01-16 06:36:05 [RateCDR] => 1 ) [2025-01-16 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:36:05' and `end` < '2025-01-16 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:36:17] Production.INFO: count ==18 [2025-01-16 06:36:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:36:05 - End Time 2025-01-16 06:36:05 [2025-01-16 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259163', 'tblTempUsageDetail_20' ) start [2025-01-16 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259163', 'tblTempUsageDetail_20' ) end [2025-01-16 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259163', 'tblTempVendorCDR_20' ) start [2025-01-16 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259163', 'tblTempVendorCDR_20' ) end [2025-01-16 06:36:17] Production.INFO: ProcessCDR(1,14259163,1,1,2) [2025-01-16 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259163', 'tblTempUsageDetail_20' ) start [2025-01-16 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259163', 'tblTempUsageDetail_20' ) end [2025-01-16 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:36:20] Production.INFO: ==7005== Releasing lock... [2025-01-16 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:36:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:37:05 [end_date_ymd] => 2025-01-16 06:37:05 [RateCDR] => 1 ) [2025-01-16 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:37:05' and `end` < '2025-01-16 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:37:18] Production.INFO: count ==18 [2025-01-16 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:37:05 - End Time 2025-01-16 06:37:05 [2025-01-16 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259168', 'tblTempUsageDetail_20' ) start [2025-01-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259168', 'tblTempUsageDetail_20' ) end [2025-01-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259168', 'tblTempVendorCDR_20' ) start [2025-01-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259168', 'tblTempVendorCDR_20' ) end [2025-01-16 06:37:18] Production.INFO: ProcessCDR(1,14259168,1,1,2) [2025-01-16 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259168', 'tblTempUsageDetail_20' ) start [2025-01-16 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259168', 'tblTempUsageDetail_20' ) end [2025-01-16 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:37:21] Production.INFO: ==7075== Releasing lock... [2025-01-16 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:38:05 [end_date_ymd] => 2025-01-16 06:38:05 [RateCDR] => 1 ) [2025-01-16 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:38:05' and `end` < '2025-01-16 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:38:18] Production.INFO: count ==18 [2025-01-16 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:38:05 - End Time 2025-01-16 06:38:05 [2025-01-16 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259173', 'tblTempUsageDetail_20' ) start [2025-01-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259173', 'tblTempUsageDetail_20' ) end [2025-01-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259173', 'tblTempVendorCDR_20' ) start [2025-01-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259173', 'tblTempVendorCDR_20' ) end [2025-01-16 06:38:18] Production.INFO: ProcessCDR(1,14259173,1,1,2) [2025-01-16 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259173', 'tblTempUsageDetail_20' ) start [2025-01-16 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259173', 'tblTempUsageDetail_20' ) end [2025-01-16 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:38:21] Production.INFO: ==7148== Releasing lock... [2025-01-16 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:39:05 [end_date_ymd] => 2025-01-16 06:39:05 [RateCDR] => 1 ) [2025-01-16 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:39:05' and `end` < '2025-01-16 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:39:18] Production.INFO: count ==18 [2025-01-16 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:39:05 - End Time 2025-01-16 06:39:05 [2025-01-16 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259178', 'tblTempUsageDetail_20' ) start [2025-01-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259178', 'tblTempUsageDetail_20' ) end [2025-01-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259178', 'tblTempVendorCDR_20' ) start [2025-01-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259178', 'tblTempVendorCDR_20' ) end [2025-01-16 06:39:18] Production.INFO: ProcessCDR(1,14259178,1,1,2) [2025-01-16 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259178', 'tblTempUsageDetail_20' ) start [2025-01-16 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259178', 'tblTempUsageDetail_20' ) end [2025-01-16 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:39:21] Production.INFO: ==7218== Releasing lock... [2025-01-16 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:40:05 [end_date_ymd] => 2025-01-16 06:40:05 [RateCDR] => 1 ) [2025-01-16 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:40:05' and `end` < '2025-01-16 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:40:17] Production.INFO: count ==18 [2025-01-16 06:40:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:40:05 - End Time 2025-01-16 06:40:05 [2025-01-16 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259183', 'tblTempUsageDetail_20' ) start [2025-01-16 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259183', 'tblTempUsageDetail_20' ) end [2025-01-16 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259183', 'tblTempVendorCDR_20' ) start [2025-01-16 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259183', 'tblTempVendorCDR_20' ) end [2025-01-16 06:40:17] Production.INFO: ProcessCDR(1,14259183,1,1,2) [2025-01-16 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259183', 'tblTempUsageDetail_20' ) start [2025-01-16 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259183', 'tblTempUsageDetail_20' ) end [2025-01-16 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:40:21] Production.INFO: ==7293== Releasing lock... [2025-01-16 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:41:05 [end_date_ymd] => 2025-01-16 06:41:05 [RateCDR] => 1 ) [2025-01-16 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:41:05' and `end` < '2025-01-16 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:41:18] Production.INFO: count ==18 [2025-01-16 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:41:05 - End Time 2025-01-16 06:41:05 [2025-01-16 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259189', 'tblTempUsageDetail_20' ) start [2025-01-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259189', 'tblTempUsageDetail_20' ) end [2025-01-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259189', 'tblTempVendorCDR_20' ) start [2025-01-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259189', 'tblTempVendorCDR_20' ) end [2025-01-16 06:41:18] Production.INFO: ProcessCDR(1,14259189,1,1,2) [2025-01-16 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259189', 'tblTempUsageDetail_20' ) start [2025-01-16 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259189', 'tblTempUsageDetail_20' ) end [2025-01-16 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:41:21] Production.INFO: ==7405== Releasing lock... [2025-01-16 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:42:05 [end_date_ymd] => 2025-01-16 06:42:05 [RateCDR] => 1 ) [2025-01-16 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:42:05' and `end` < '2025-01-16 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:42:18] Production.INFO: count ==18 [2025-01-16 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:42:05 - End Time 2025-01-16 06:42:05 [2025-01-16 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259194', 'tblTempUsageDetail_20' ) start [2025-01-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259194', 'tblTempUsageDetail_20' ) end [2025-01-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259194', 'tblTempVendorCDR_20' ) start [2025-01-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259194', 'tblTempVendorCDR_20' ) end [2025-01-16 06:42:18] Production.INFO: ProcessCDR(1,14259194,1,1,2) [2025-01-16 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259194', 'tblTempUsageDetail_20' ) start [2025-01-16 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259194', 'tblTempUsageDetail_20' ) end [2025-01-16 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:42:21] Production.INFO: ==7474== Releasing lock... [2025-01-16 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:43:04 [end_date_ymd] => 2025-01-16 06:43:04 [RateCDR] => 1 ) [2025-01-16 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:43:04' and `end` < '2025-01-16 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:43:17] Production.INFO: count ==18 [2025-01-16 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:43:04 - End Time 2025-01-16 06:43:04 [2025-01-16 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259199', 'tblTempUsageDetail_20' ) start [2025-01-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259199', 'tblTempUsageDetail_20' ) end [2025-01-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259199', 'tblTempVendorCDR_20' ) start [2025-01-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259199', 'tblTempVendorCDR_20' ) end [2025-01-16 06:43:17] Production.INFO: ProcessCDR(1,14259199,1,1,2) [2025-01-16 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259199', 'tblTempUsageDetail_20' ) start [2025-01-16 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259199', 'tblTempUsageDetail_20' ) end [2025-01-16 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:43:20] Production.INFO: ==7544== Releasing lock... [2025-01-16 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:43:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:44:05 [end_date_ymd] => 2025-01-16 06:44:05 [RateCDR] => 1 ) [2025-01-16 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:44:05' and `end` < '2025-01-16 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:44:17] Production.INFO: count ==18 [2025-01-16 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:44:05 - End Time 2025-01-16 06:44:05 [2025-01-16 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259204', 'tblTempUsageDetail_20' ) start [2025-01-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259204', 'tblTempUsageDetail_20' ) end [2025-01-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259204', 'tblTempVendorCDR_20' ) start [2025-01-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259204', 'tblTempVendorCDR_20' ) end [2025-01-16 06:44:17] Production.INFO: ProcessCDR(1,14259204,1,1,2) [2025-01-16 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259204', 'tblTempUsageDetail_20' ) start [2025-01-16 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259204', 'tblTempUsageDetail_20' ) end [2025-01-16 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:44:20] Production.INFO: ==7615== Releasing lock... [2025-01-16 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:44:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:45:05 [end_date_ymd] => 2025-01-16 06:45:05 [RateCDR] => 1 ) [2025-01-16 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:45:05' and `end` < '2025-01-16 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:45:17] Production.INFO: count ==18 [2025-01-16 06:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:45:05 - End Time 2025-01-16 06:45:05 [2025-01-16 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259209', 'tblTempUsageDetail_20' ) start [2025-01-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259209', 'tblTempUsageDetail_20' ) end [2025-01-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259209', 'tblTempVendorCDR_20' ) start [2025-01-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259209', 'tblTempVendorCDR_20' ) end [2025-01-16 06:45:17] Production.INFO: ProcessCDR(1,14259209,1,1,2) [2025-01-16 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259209', 'tblTempUsageDetail_20' ) start [2025-01-16 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259209', 'tblTempUsageDetail_20' ) end [2025-01-16 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:45:21] Production.INFO: ==7687== Releasing lock... [2025-01-16 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:46:05 [end_date_ymd] => 2025-01-16 06:46:05 [RateCDR] => 1 ) [2025-01-16 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:46:05' and `end` < '2025-01-16 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:46:17] Production.INFO: count ==18 [2025-01-16 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:46:05 - End Time 2025-01-16 06:46:05 [2025-01-16 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259214', 'tblTempUsageDetail_20' ) start [2025-01-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259214', 'tblTempUsageDetail_20' ) end [2025-01-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259214', 'tblTempVendorCDR_20' ) start [2025-01-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259214', 'tblTempVendorCDR_20' ) end [2025-01-16 06:46:17] Production.INFO: ProcessCDR(1,14259214,1,1,2) [2025-01-16 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259214', 'tblTempUsageDetail_20' ) start [2025-01-16 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259214', 'tblTempUsageDetail_20' ) end [2025-01-16 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:46:20] Production.INFO: ==7758== Releasing lock... [2025-01-16 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:47:05 [end_date_ymd] => 2025-01-16 06:47:05 [RateCDR] => 1 ) [2025-01-16 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:47:05' and `end` < '2025-01-16 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:47:18] Production.INFO: count ==18 [2025-01-16 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:47:05 - End Time 2025-01-16 06:47:05 [2025-01-16 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259219', 'tblTempUsageDetail_20' ) start [2025-01-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259219', 'tblTempUsageDetail_20' ) end [2025-01-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259219', 'tblTempVendorCDR_20' ) start [2025-01-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259219', 'tblTempVendorCDR_20' ) end [2025-01-16 06:47:18] Production.INFO: ProcessCDR(1,14259219,1,1,2) [2025-01-16 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259219', 'tblTempUsageDetail_20' ) start [2025-01-16 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259219', 'tblTempUsageDetail_20' ) end [2025-01-16 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:47:21] Production.INFO: ==7828== Releasing lock... [2025-01-16 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:48:04 [end_date_ymd] => 2025-01-16 06:48:04 [RateCDR] => 1 ) [2025-01-16 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:48:04' and `end` < '2025-01-16 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:48:17] Production.INFO: count ==18 [2025-01-16 06:48:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:48:04 - End Time 2025-01-16 06:48:04 [2025-01-16 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259224', 'tblTempUsageDetail_20' ) start [2025-01-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259224', 'tblTempUsageDetail_20' ) end [2025-01-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259224', 'tblTempVendorCDR_20' ) start [2025-01-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259224', 'tblTempVendorCDR_20' ) end [2025-01-16 06:48:17] Production.INFO: ProcessCDR(1,14259224,1,1,2) [2025-01-16 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259224', 'tblTempUsageDetail_20' ) start [2025-01-16 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259224', 'tblTempUsageDetail_20' ) end [2025-01-16 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:48:20] Production.INFO: ==7899== Releasing lock... [2025-01-16 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:49:05 [end_date_ymd] => 2025-01-16 06:49:05 [RateCDR] => 1 ) [2025-01-16 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:49:05' and `end` < '2025-01-16 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:49:17] Production.INFO: count ==18 [2025-01-16 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:49:05 - End Time 2025-01-16 06:49:05 [2025-01-16 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259229', 'tblTempUsageDetail_20' ) start [2025-01-16 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259229', 'tblTempUsageDetail_20' ) end [2025-01-16 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259229', 'tblTempVendorCDR_20' ) start [2025-01-16 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259229', 'tblTempVendorCDR_20' ) end [2025-01-16 06:49:17] Production.INFO: ProcessCDR(1,14259229,1,1,2) [2025-01-16 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259229', 'tblTempUsageDetail_20' ) start [2025-01-16 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259229', 'tblTempUsageDetail_20' ) end [2025-01-16 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:49:20] Production.INFO: ==7970== Releasing lock... [2025-01-16 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:49:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:50:06 [end_date_ymd] => 2025-01-16 06:50:06 [RateCDR] => 1 ) [2025-01-16 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:50:06' and `end` < '2025-01-16 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:50:19] Production.INFO: count ==18 [2025-01-16 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-16 03:50:06 - End Time 2025-01-16 06:50:06 [2025-01-16 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259235', 'tblTempUsageDetail_20' ) start [2025-01-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259235', 'tblTempUsageDetail_20' ) end [2025-01-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259235', 'tblTempVendorCDR_20' ) start [2025-01-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259235', 'tblTempVendorCDR_20' ) end [2025-01-16 06:50:19] Production.INFO: ProcessCDR(1,14259235,1,1,2) [2025-01-16 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259235', 'tblTempUsageDetail_20' ) start [2025-01-16 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259235', 'tblTempUsageDetail_20' ) end [2025-01-16 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:50:23] Production.INFO: ==8044== Releasing lock... [2025-01-16 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:50:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:51:05 [end_date_ymd] => 2025-01-16 06:51:05 [RateCDR] => 1 ) [2025-01-16 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:51:05' and `end` < '2025-01-16 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:51:17] Production.INFO: count ==18 [2025-01-16 06:51:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:51:05 - End Time 2025-01-16 06:51:05 [2025-01-16 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259240', 'tblTempUsageDetail_20' ) start [2025-01-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259240', 'tblTempUsageDetail_20' ) end [2025-01-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259240', 'tblTempVendorCDR_20' ) start [2025-01-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259240', 'tblTempVendorCDR_20' ) end [2025-01-16 06:51:17] Production.INFO: ProcessCDR(1,14259240,1,1,2) [2025-01-16 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259240', 'tblTempUsageDetail_20' ) start [2025-01-16 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259240', 'tblTempUsageDetail_20' ) end [2025-01-16 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:51:20] Production.INFO: ==8118== Releasing lock... [2025-01-16 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:51:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:52:05 [end_date_ymd] => 2025-01-16 06:52:05 [RateCDR] => 1 ) [2025-01-16 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:52:05' and `end` < '2025-01-16 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:52:17] Production.INFO: count ==18 [2025-01-16 06:52:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:52:05 - End Time 2025-01-16 06:52:05 [2025-01-16 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259245', 'tblTempUsageDetail_20' ) start [2025-01-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259245', 'tblTempUsageDetail_20' ) end [2025-01-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259245', 'tblTempVendorCDR_20' ) start [2025-01-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259245', 'tblTempVendorCDR_20' ) end [2025-01-16 06:52:17] Production.INFO: ProcessCDR(1,14259245,1,1,2) [2025-01-16 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259245', 'tblTempUsageDetail_20' ) start [2025-01-16 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259245', 'tblTempUsageDetail_20' ) end [2025-01-16 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:52:20] Production.INFO: ==8189== Releasing lock... [2025-01-16 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:52:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:53:05 [end_date_ymd] => 2025-01-16 06:53:05 [RateCDR] => 1 ) [2025-01-16 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:53:05' and `end` < '2025-01-16 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:53:18] Production.INFO: count ==18 [2025-01-16 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:53:05 - End Time 2025-01-16 06:53:05 [2025-01-16 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259250', 'tblTempUsageDetail_20' ) start [2025-01-16 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259250', 'tblTempUsageDetail_20' ) end [2025-01-16 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259250', 'tblTempVendorCDR_20' ) start [2025-01-16 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259250', 'tblTempVendorCDR_20' ) end [2025-01-16 06:53:18] Production.INFO: ProcessCDR(1,14259250,1,1,2) [2025-01-16 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259250', 'tblTempUsageDetail_20' ) start [2025-01-16 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259250', 'tblTempUsageDetail_20' ) end [2025-01-16 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:53:21] Production.INFO: ==8258== Releasing lock... [2025-01-16 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:54:05 [end_date_ymd] => 2025-01-16 06:54:05 [RateCDR] => 1 ) [2025-01-16 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:54:05' and `end` < '2025-01-16 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:54:18] Production.INFO: count ==18 [2025-01-16 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:54:05 - End Time 2025-01-16 06:54:05 [2025-01-16 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259255', 'tblTempUsageDetail_20' ) start [2025-01-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259255', 'tblTempUsageDetail_20' ) end [2025-01-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259255', 'tblTempVendorCDR_20' ) start [2025-01-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259255', 'tblTempVendorCDR_20' ) end [2025-01-16 06:54:18] Production.INFO: ProcessCDR(1,14259255,1,1,2) [2025-01-16 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259255', 'tblTempUsageDetail_20' ) start [2025-01-16 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259255', 'tblTempUsageDetail_20' ) end [2025-01-16 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:54:21] Production.INFO: ==8333== Releasing lock... [2025-01-16 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:54:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:55:05 [end_date_ymd] => 2025-01-16 06:55:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 03:55:05' and `end` < '2025-01-16 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-01-16 06:55:18] Production.INFO: count ==18 [2025-01-16 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:55:05 - End Time 2025-01-16 06:55:05 [2025-01-16 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259260', 'tblTempUsageDetail_20' ) start [2025-01-16 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259260', 'tblTempUsageDetail_20' ) end [2025-01-16 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259260', 'tblTempVendorCDR_20' ) start [2025-01-16 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259260', 'tblTempVendorCDR_20' ) end [2025-01-16 06:55:18] Production.INFO: ProcessCDR(1,14259260,1,1,2) [2025-01-16 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259260', 'tblTempUsageDetail_20' ) start [2025-01-16 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259260', 'tblTempUsageDetail_20' ) end [2025-01-16 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:55:21] Production.INFO: ==8405== Releasing lock... [2025-01-16 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:55:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:56:06 [end_date_ymd] => 2025-01-16 06:56:06 [RateCDR] => 1 ) [2025-01-16 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:56:06' and `end` < '2025-01-16 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:56:18] Production.INFO: count ==18 [2025-01-16 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-16 03:56:06 - End Time 2025-01-16 06:56:06 [2025-01-16 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259265', 'tblTempUsageDetail_20' ) start [2025-01-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259265', 'tblTempUsageDetail_20' ) end [2025-01-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259265', 'tblTempVendorCDR_20' ) start [2025-01-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259265', 'tblTempVendorCDR_20' ) end [2025-01-16 06:56:18] Production.INFO: ProcessCDR(1,14259265,1,1,2) [2025-01-16 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259265', 'tblTempUsageDetail_20' ) start [2025-01-16 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259265', 'tblTempUsageDetail_20' ) end [2025-01-16 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:56:21] Production.INFO: ==8477== Releasing lock... [2025-01-16 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:57:04 [end_date_ymd] => 2025-01-16 06:57:04 [RateCDR] => 1 ) [2025-01-16 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-01-16 03:57:04' and `end` < '2025-01-16 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:57:17] Production.INFO: count ==18 [2025-01-16 06:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:57:04 - End Time 2025-01-16 06:57:04 [2025-01-16 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259270', 'tblTempUsageDetail_20' ) start [2025-01-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259270', 'tblTempUsageDetail_20' ) end [2025-01-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259270', 'tblTempVendorCDR_20' ) start [2025-01-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259270', 'tblTempVendorCDR_20' ) end [2025-01-16 06:57:17] Production.INFO: ProcessCDR(1,14259270,1,1,2) [2025-01-16 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259270', 'tblTempUsageDetail_20' ) start [2025-01-16 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259270', 'tblTempUsageDetail_20' ) end [2025-01-16 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:57:21] Production.INFO: ==8585== Releasing lock... [2025-01-16 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:58:05 [end_date_ymd] => 2025-01-16 06:58:05 [RateCDR] => 1 ) [2025-01-16 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:58:05' and `end` < '2025-01-16 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:58:17] Production.INFO: count ==18 [2025-01-16 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:58:05 - End Time 2025-01-16 06:58:05 [2025-01-16 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259275', 'tblTempUsageDetail_20' ) start [2025-01-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259275', 'tblTempUsageDetail_20' ) end [2025-01-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259275', 'tblTempVendorCDR_20' ) start [2025-01-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259275', 'tblTempVendorCDR_20' ) end [2025-01-16 06:58:17] Production.INFO: ProcessCDR(1,14259275,1,1,2) [2025-01-16 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259275', 'tblTempUsageDetail_20' ) start [2025-01-16 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259275', 'tblTempUsageDetail_20' ) end [2025-01-16 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:58:21] Production.INFO: ==8655== Releasing lock... [2025-01-16 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 03:59:05 [end_date_ymd] => 2025-01-16 06:59:05 [RateCDR] => 1 ) [2025-01-16 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 03:59:05' and `end` < '2025-01-16 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 06:59:17] Production.INFO: count ==18 [2025-01-16 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-16 03:59:05 - End Time 2025-01-16 06:59:05 [2025-01-16 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259280', 'tblTempUsageDetail_20' ) start [2025-01-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259280', 'tblTempUsageDetail_20' ) end [2025-01-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259280', 'tblTempVendorCDR_20' ) start [2025-01-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259280', 'tblTempVendorCDR_20' ) end [2025-01-16 06:59:17] Production.INFO: ProcessCDR(1,14259280,1,1,2) [2025-01-16 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259280', 'tblTempUsageDetail_20' ) start [2025-01-16 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259280', 'tblTempUsageDetail_20' ) end [2025-01-16 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 06:59:20] Production.INFO: ==8726== Releasing lock... [2025-01-16 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 06:59:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:00:05 [end_date_ymd] => 2025-01-16 07:00:05 [RateCDR] => 1 ) [2025-01-16 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:00:05' and `end` < '2025-01-16 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:00:18] Production.INFO: count ==18 [2025-01-16 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:00:05 - End Time 2025-01-16 07:00:05 [2025-01-16 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259285', 'tblTempUsageDetail_20' ) start [2025-01-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259285', 'tblTempUsageDetail_20' ) end [2025-01-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259285', 'tblTempVendorCDR_20' ) start [2025-01-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259285', 'tblTempVendorCDR_20' ) end [2025-01-16 07:00:18] Production.INFO: ProcessCDR(1,14259285,1,1,2) [2025-01-16 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259285', 'tblTempUsageDetail_20' ) start [2025-01-16 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259285', 'tblTempUsageDetail_20' ) end [2025-01-16 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:00:21] Production.INFO: ==8799== Releasing lock... [2025-01-16 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:01:05 [end_date_ymd] => 2025-01-16 07:01:05 [RateCDR] => 1 ) [2025-01-16 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:01:05' and `end` < '2025-01-16 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:01:23] Production.INFO: count ==18 [2025-01-16 07:01:23] Production.ERROR: pbx CDR StartTime 2025-01-16 04:01:05 - End Time 2025-01-16 07:01:05 [2025-01-16 07:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259291', 'tblTempUsageDetail_20' ) start [2025-01-16 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259291', 'tblTempUsageDetail_20' ) end [2025-01-16 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259291', 'tblTempVendorCDR_20' ) start [2025-01-16 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259291', 'tblTempVendorCDR_20' ) end [2025-01-16 07:01:23] Production.INFO: ProcessCDR(1,14259291,1,1,2) [2025-01-16 07:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259291', 'tblTempUsageDetail_20' ) start [2025-01-16 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259291', 'tblTempUsageDetail_20' ) end [2025-01-16 07:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:01:26] Production.INFO: ==8884== Releasing lock... [2025-01-16 07:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:01:26] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:02:05 [end_date_ymd] => 2025-01-16 07:02:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 04:02:05' and `end` < '2025-01-16 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-01-16 07:02:19] Production.INFO: count ==18 [2025-01-16 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:02:05 - End Time 2025-01-16 07:02:05 [2025-01-16 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259296', 'tblTempUsageDetail_20' ) start [2025-01-16 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259296', 'tblTempUsageDetail_20' ) end [2025-01-16 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259296', 'tblTempVendorCDR_20' ) start [2025-01-16 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259296', 'tblTempVendorCDR_20' ) end [2025-01-16 07:02:19] Production.INFO: ProcessCDR(1,14259296,1,1,2) [2025-01-16 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259296', 'tblTempUsageDetail_20' ) start [2025-01-16 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259296', 'tblTempUsageDetail_20' ) end [2025-01-16 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:02:22] Production.INFO: ==9035== Releasing lock... [2025-01-16 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:03:04 [end_date_ymd] => 2025-01-16 07:03:04 [RateCDR] => 1 ) [2025-01-16 07:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:03:04' and `end` < '2025-01-16 07:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:03:19] Production.INFO: count ==18 [2025-01-16 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:03:04 - End Time 2025-01-16 07:03:04 [2025-01-16 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259301', 'tblTempUsageDetail_20' ) start [2025-01-16 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259301', 'tblTempUsageDetail_20' ) end [2025-01-16 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259301', 'tblTempVendorCDR_20' ) start [2025-01-16 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259301', 'tblTempVendorCDR_20' ) end [2025-01-16 07:03:19] Production.INFO: ProcessCDR(1,14259301,1,1,2) [2025-01-16 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259301', 'tblTempUsageDetail_20' ) start [2025-01-16 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259301', 'tblTempUsageDetail_20' ) end [2025-01-16 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:03:22] Production.INFO: ==9106== Releasing lock... [2025-01-16 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:04:05 [end_date_ymd] => 2025-01-16 07:04:05 [RateCDR] => 1 ) [2025-01-16 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:04:05' and `end` < '2025-01-16 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:04:18] Production.INFO: count ==18 [2025-01-16 07:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:04:05 - End Time 2025-01-16 07:04:05 [2025-01-16 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259306', 'tblTempUsageDetail_20' ) start [2025-01-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259306', 'tblTempUsageDetail_20' ) end [2025-01-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259306', 'tblTempVendorCDR_20' ) start [2025-01-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259306', 'tblTempVendorCDR_20' ) end [2025-01-16 07:04:18] Production.INFO: ProcessCDR(1,14259306,1,1,2) [2025-01-16 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259306', 'tblTempUsageDetail_20' ) start [2025-01-16 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259306', 'tblTempUsageDetail_20' ) end [2025-01-16 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:04:22] Production.INFO: ==9176== Releasing lock... [2025-01-16 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:04:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:05:05 [end_date_ymd] => 2025-01-16 07:05:05 [RateCDR] => 1 ) [2025-01-16 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:05:05' and `end` < '2025-01-16 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:05:19] Production.INFO: count ==18 [2025-01-16 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:05:05 - End Time 2025-01-16 07:05:05 [2025-01-16 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259311', 'tblTempUsageDetail_20' ) start [2025-01-16 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259311', 'tblTempUsageDetail_20' ) end [2025-01-16 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259311', 'tblTempVendorCDR_20' ) start [2025-01-16 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259311', 'tblTempVendorCDR_20' ) end [2025-01-16 07:05:19] Production.INFO: ProcessCDR(1,14259311,1,1,2) [2025-01-16 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259311', 'tblTempUsageDetail_20' ) start [2025-01-16 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259311', 'tblTempUsageDetail_20' ) end [2025-01-16 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:05:22] Production.INFO: ==9325== Releasing lock... [2025-01-16 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:05:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:06:05 [end_date_ymd] => 2025-01-16 07:06:05 [RateCDR] => 1 ) [2025-01-16 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:06:05' and `end` < '2025-01-16 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:06:19] Production.INFO: count ==18 [2025-01-16 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:06:05 - End Time 2025-01-16 07:06:05 [2025-01-16 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259316', 'tblTempUsageDetail_20' ) start [2025-01-16 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259316', 'tblTempUsageDetail_20' ) end [2025-01-16 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259316', 'tblTempVendorCDR_20' ) start [2025-01-16 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259316', 'tblTempVendorCDR_20' ) end [2025-01-16 07:06:19] Production.INFO: ProcessCDR(1,14259316,1,1,2) [2025-01-16 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259316', 'tblTempUsageDetail_20' ) start [2025-01-16 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259316', 'tblTempUsageDetail_20' ) end [2025-01-16 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:06:22] Production.INFO: ==9395== Releasing lock... [2025-01-16 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:06:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:07:05 [end_date_ymd] => 2025-01-16 07:07:05 [RateCDR] => 1 ) [2025-01-16 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:07:05' and `end` < '2025-01-16 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:07:19] Production.INFO: count ==18 [2025-01-16 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:07:05 - End Time 2025-01-16 07:07:05 [2025-01-16 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259321', 'tblTempUsageDetail_20' ) start [2025-01-16 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259321', 'tblTempUsageDetail_20' ) end [2025-01-16 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259321', 'tblTempVendorCDR_20' ) start [2025-01-16 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259321', 'tblTempVendorCDR_20' ) end [2025-01-16 07:07:19] Production.INFO: ProcessCDR(1,14259321,1,1,2) [2025-01-16 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259321', 'tblTempUsageDetail_20' ) start [2025-01-16 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259321', 'tblTempUsageDetail_20' ) end [2025-01-16 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:07:22] Production.INFO: ==9467== Releasing lock... [2025-01-16 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:07:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:08:05 [end_date_ymd] => 2025-01-16 07:08:05 [RateCDR] => 1 ) [2025-01-16 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:08:05' and `end` < '2025-01-16 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:08:19] Production.INFO: count ==18 [2025-01-16 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:08:05 - End Time 2025-01-16 07:08:05 [2025-01-16 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259326', 'tblTempUsageDetail_20' ) start [2025-01-16 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259326', 'tblTempUsageDetail_20' ) end [2025-01-16 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259326', 'tblTempVendorCDR_20' ) start [2025-01-16 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259326', 'tblTempVendorCDR_20' ) end [2025-01-16 07:08:19] Production.INFO: ProcessCDR(1,14259326,1,1,2) [2025-01-16 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259326', 'tblTempUsageDetail_20' ) start [2025-01-16 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259326', 'tblTempUsageDetail_20' ) end [2025-01-16 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:08:22] Production.INFO: ==9617== Releasing lock... [2025-01-16 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:09:05 [end_date_ymd] => 2025-01-16 07:09:05 [RateCDR] => 1 ) [2025-01-16 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:09:05' and `end` < '2025-01-16 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:09:19] Production.INFO: count ==18 [2025-01-16 07:09:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:09:05 - End Time 2025-01-16 07:09:05 [2025-01-16 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259331', 'tblTempUsageDetail_20' ) start [2025-01-16 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259331', 'tblTempUsageDetail_20' ) end [2025-01-16 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259331', 'tblTempVendorCDR_20' ) start [2025-01-16 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259331', 'tblTempVendorCDR_20' ) end [2025-01-16 07:09:19] Production.INFO: ProcessCDR(1,14259331,1,1,2) [2025-01-16 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259331', 'tblTempUsageDetail_20' ) start [2025-01-16 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259331', 'tblTempUsageDetail_20' ) end [2025-01-16 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:09:23] Production.INFO: ==9686== Releasing lock... [2025-01-16 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:09:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:10:05 [end_date_ymd] => 2025-01-16 07:10:05 [RateCDR] => 1 ) [2025-01-16 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:10:05' and `end` < '2025-01-16 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:10:19] Production.INFO: count ==24 [2025-01-16 07:10:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:10:05 - End Time 2025-01-16 07:10:05 [2025-01-16 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259336', 'tblTempUsageDetail_20' ) start [2025-01-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259336', 'tblTempUsageDetail_20' ) end [2025-01-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259336', 'tblTempVendorCDR_20' ) start [2025-01-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259336', 'tblTempVendorCDR_20' ) end [2025-01-16 07:10:19] Production.INFO: ProcessCDR(1,14259336,1,1,2) [2025-01-16 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259336', 'tblTempUsageDetail_20' ) start [2025-01-16 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259336', 'tblTempUsageDetail_20' ) end [2025-01-16 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:10:22] Production.INFO: ==9759== Releasing lock... [2025-01-16 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:10:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:11:05 [end_date_ymd] => 2025-01-16 07:11:05 [RateCDR] => 1 ) [2025-01-16 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:11:05' and `end` < '2025-01-16 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:11:20] Production.INFO: count ==24 [2025-01-16 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-16 04:11:05 - End Time 2025-01-16 07:11:05 [2025-01-16 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259342', 'tblTempUsageDetail_20' ) start [2025-01-16 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259342', 'tblTempUsageDetail_20' ) end [2025-01-16 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259342', 'tblTempVendorCDR_20' ) start [2025-01-16 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259342', 'tblTempVendorCDR_20' ) end [2025-01-16 07:11:20] Production.INFO: ProcessCDR(1,14259342,1,1,2) [2025-01-16 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259342', 'tblTempUsageDetail_20' ) start [2025-01-16 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259342', 'tblTempUsageDetail_20' ) end [2025-01-16 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:11:23] Production.INFO: ==9831== Releasing lock... [2025-01-16 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:11:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:12:05 [end_date_ymd] => 2025-01-16 07:12:05 [RateCDR] => 1 ) [2025-01-16 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:12:05' and `end` < '2025-01-16 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:12:19] Production.INFO: count ==24 [2025-01-16 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:12:05 - End Time 2025-01-16 07:12:05 [2025-01-16 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259347', 'tblTempUsageDetail_20' ) start [2025-01-16 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259347', 'tblTempUsageDetail_20' ) end [2025-01-16 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259347', 'tblTempVendorCDR_20' ) start [2025-01-16 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259347', 'tblTempVendorCDR_20' ) end [2025-01-16 07:12:19] Production.INFO: ProcessCDR(1,14259347,1,1,2) [2025-01-16 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259347', 'tblTempUsageDetail_20' ) start [2025-01-16 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259347', 'tblTempUsageDetail_20' ) end [2025-01-16 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:12:22] Production.INFO: ==9980== Releasing lock... [2025-01-16 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:12:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:13:05 [end_date_ymd] => 2025-01-16 07:13:05 [RateCDR] => 1 ) [2025-01-16 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:13:05' and `end` < '2025-01-16 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:13:18] Production.INFO: count ==24 [2025-01-16 07:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:13:05 - End Time 2025-01-16 07:13:05 [2025-01-16 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259352', 'tblTempUsageDetail_20' ) start [2025-01-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259352', 'tblTempUsageDetail_20' ) end [2025-01-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259352', 'tblTempVendorCDR_20' ) start [2025-01-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259352', 'tblTempVendorCDR_20' ) end [2025-01-16 07:13:18] Production.INFO: ProcessCDR(1,14259352,1,1,2) [2025-01-16 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259352', 'tblTempUsageDetail_20' ) start [2025-01-16 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259352', 'tblTempUsageDetail_20' ) end [2025-01-16 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:13:22] Production.INFO: ==10090== Releasing lock... [2025-01-16 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:13:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:14:05 [end_date_ymd] => 2025-01-16 07:14:05 [RateCDR] => 1 ) [2025-01-16 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:14:05' and `end` < '2025-01-16 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:14:18] Production.INFO: count ==24 [2025-01-16 07:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:14:05 - End Time 2025-01-16 07:14:05 [2025-01-16 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259357', 'tblTempUsageDetail_20' ) start [2025-01-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259357', 'tblTempUsageDetail_20' ) end [2025-01-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259357', 'tblTempVendorCDR_20' ) start [2025-01-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259357', 'tblTempVendorCDR_20' ) end [2025-01-16 07:14:18] Production.INFO: ProcessCDR(1,14259357,1,1,2) [2025-01-16 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259357', 'tblTempUsageDetail_20' ) start [2025-01-16 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259357', 'tblTempUsageDetail_20' ) end [2025-01-16 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:14:21] Production.INFO: ==10159== Releasing lock... [2025-01-16 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:14:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:15:05 [end_date_ymd] => 2025-01-16 07:15:05 [RateCDR] => 1 ) [2025-01-16 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:15:05' and `end` < '2025-01-16 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:15:20] Production.INFO: count ==24 [2025-01-16 07:15:20] Production.ERROR: pbx CDR StartTime 2025-01-16 04:15:05 - End Time 2025-01-16 07:15:05 [2025-01-16 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259362', 'tblTempUsageDetail_20' ) start [2025-01-16 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259362', 'tblTempUsageDetail_20' ) end [2025-01-16 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259362', 'tblTempVendorCDR_20' ) start [2025-01-16 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259362', 'tblTempVendorCDR_20' ) end [2025-01-16 07:15:20] Production.INFO: ProcessCDR(1,14259362,1,1,2) [2025-01-16 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259362', 'tblTempUsageDetail_20' ) start [2025-01-16 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259362', 'tblTempUsageDetail_20' ) end [2025-01-16 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:15:23] Production.INFO: ==10308== Releasing lock... [2025-01-16 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:15:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:16:04 [end_date_ymd] => 2025-01-16 07:16:04 [RateCDR] => 1 ) [2025-01-16 07:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:16:04' and `end` < '2025-01-16 07:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:16:19] Production.INFO: count ==24 [2025-01-16 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:16:04 - End Time 2025-01-16 07:16:04 [2025-01-16 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259367', 'tblTempUsageDetail_20' ) start [2025-01-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259367', 'tblTempUsageDetail_20' ) end [2025-01-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259367', 'tblTempVendorCDR_20' ) start [2025-01-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259367', 'tblTempVendorCDR_20' ) end [2025-01-16 07:16:19] Production.INFO: ProcessCDR(1,14259367,1,1,2) [2025-01-16 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259367', 'tblTempUsageDetail_20' ) start [2025-01-16 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259367', 'tblTempUsageDetail_20' ) end [2025-01-16 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:16:22] Production.INFO: ==10378== Releasing lock... [2025-01-16 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:16:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:17:05 [end_date_ymd] => 2025-01-16 07:17:05 [RateCDR] => 1 ) [2025-01-16 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:17:05' and `end` < '2025-01-16 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:17:18] Production.INFO: count ==24 [2025-01-16 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:17:05 - End Time 2025-01-16 07:17:05 [2025-01-16 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259372', 'tblTempUsageDetail_20' ) start [2025-01-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259372', 'tblTempUsageDetail_20' ) end [2025-01-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259372', 'tblTempVendorCDR_20' ) start [2025-01-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259372', 'tblTempVendorCDR_20' ) end [2025-01-16 07:17:18] Production.INFO: ProcessCDR(1,14259372,1,1,2) [2025-01-16 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259372', 'tblTempUsageDetail_20' ) start [2025-01-16 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259372', 'tblTempUsageDetail_20' ) end [2025-01-16 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:17:21] Production.INFO: ==10448== Releasing lock... [2025-01-16 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:17:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:18:04 [end_date_ymd] => 2025-01-16 07:18:04 [RateCDR] => 1 ) [2025-01-16 07:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:18:04' and `end` < '2025-01-16 07:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:18:19] Production.INFO: count ==24 [2025-01-16 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:18:04 - End Time 2025-01-16 07:18:04 [2025-01-16 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259377', 'tblTempUsageDetail_20' ) start [2025-01-16 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259377', 'tblTempUsageDetail_20' ) end [2025-01-16 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259377', 'tblTempVendorCDR_20' ) start [2025-01-16 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259377', 'tblTempVendorCDR_20' ) end [2025-01-16 07:18:19] Production.INFO: ProcessCDR(1,14259377,1,1,2) [2025-01-16 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259377', 'tblTempUsageDetail_20' ) start [2025-01-16 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259377', 'tblTempUsageDetail_20' ) end [2025-01-16 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:18:22] Production.INFO: ==10518== Releasing lock... [2025-01-16 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:18:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:19:05 [end_date_ymd] => 2025-01-16 07:19:05 [RateCDR] => 1 ) [2025-01-16 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:19:05' and `end` < '2025-01-16 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:19:17] Production.INFO: count ==24 [2025-01-16 07:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:19:05 - End Time 2025-01-16 07:19:05 [2025-01-16 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259382', 'tblTempUsageDetail_20' ) start [2025-01-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259382', 'tblTempUsageDetail_20' ) end [2025-01-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259382', 'tblTempVendorCDR_20' ) start [2025-01-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259382', 'tblTempVendorCDR_20' ) end [2025-01-16 07:19:17] Production.INFO: ProcessCDR(1,14259382,1,1,2) [2025-01-16 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259382', 'tblTempUsageDetail_20' ) start [2025-01-16 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259382', 'tblTempUsageDetail_20' ) end [2025-01-16 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:19:20] Production.INFO: ==10588== Releasing lock... [2025-01-16 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:19:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:20:06 [end_date_ymd] => 2025-01-16 07:20:06 [RateCDR] => 1 ) [2025-01-16 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:20:06' and `end` < '2025-01-16 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:20:19] Production.INFO: count ==26 [2025-01-16 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-16 04:20:06 - End Time 2025-01-16 07:20:06 [2025-01-16 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259387', 'tblTempUsageDetail_20' ) start [2025-01-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259387', 'tblTempUsageDetail_20' ) end [2025-01-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259387', 'tblTempVendorCDR_20' ) start [2025-01-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259387', 'tblTempVendorCDR_20' ) end [2025-01-16 07:20:19] Production.INFO: ProcessCDR(1,14259387,1,1,2) [2025-01-16 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259387', 'tblTempUsageDetail_20' ) start [2025-01-16 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259387', 'tblTempUsageDetail_20' ) end [2025-01-16 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:20:22] Production.INFO: ==10661== Releasing lock... [2025-01-16 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:20:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:21:05 [end_date_ymd] => 2025-01-16 07:21:05 [RateCDR] => 1 ) [2025-01-16 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:21:05' and `end` < '2025-01-16 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:21:21] Production.INFO: count ==26 [2025-01-16 07:21:21] Production.ERROR: pbx CDR StartTime 2025-01-16 04:21:05 - End Time 2025-01-16 07:21:05 [2025-01-16 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259393', 'tblTempUsageDetail_20' ) start [2025-01-16 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259393', 'tblTempUsageDetail_20' ) end [2025-01-16 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259393', 'tblTempVendorCDR_20' ) start [2025-01-16 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259393', 'tblTempVendorCDR_20' ) end [2025-01-16 07:21:21] Production.INFO: ProcessCDR(1,14259393,1,1,2) [2025-01-16 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259393', 'tblTempUsageDetail_20' ) start [2025-01-16 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259393', 'tblTempUsageDetail_20' ) end [2025-01-16 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:21:24] Production.INFO: ==10734== Releasing lock... [2025-01-16 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:21:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:22:05 [end_date_ymd] => 2025-01-16 07:22:05 [RateCDR] => 1 ) [2025-01-16 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:22:05' and `end` < '2025-01-16 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:22:18] Production.INFO: count ==26 [2025-01-16 07:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:22:05 - End Time 2025-01-16 07:22:05 [2025-01-16 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259398', 'tblTempUsageDetail_20' ) start [2025-01-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259398', 'tblTempUsageDetail_20' ) end [2025-01-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259398', 'tblTempVendorCDR_20' ) start [2025-01-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259398', 'tblTempVendorCDR_20' ) end [2025-01-16 07:22:18] Production.INFO: ProcessCDR(1,14259398,1,1,2) [2025-01-16 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259398', 'tblTempUsageDetail_20' ) start [2025-01-16 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259398', 'tblTempUsageDetail_20' ) end [2025-01-16 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:22:22] Production.INFO: ==10806== Releasing lock... [2025-01-16 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:22:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:23:05 [end_date_ymd] => 2025-01-16 07:23:05 [RateCDR] => 1 ) [2025-01-16 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:23:05' and `end` < '2025-01-16 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:23:18] Production.INFO: count ==26 [2025-01-16 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:23:05 - End Time 2025-01-16 07:23:05 [2025-01-16 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259403', 'tblTempUsageDetail_20' ) start [2025-01-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259403', 'tblTempUsageDetail_20' ) end [2025-01-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259403', 'tblTempVendorCDR_20' ) start [2025-01-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259403', 'tblTempVendorCDR_20' ) end [2025-01-16 07:23:18] Production.INFO: ProcessCDR(1,14259403,1,1,2) [2025-01-16 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259403', 'tblTempUsageDetail_20' ) start [2025-01-16 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259403', 'tblTempUsageDetail_20' ) end [2025-01-16 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:23:22] Production.INFO: ==10879== Releasing lock... [2025-01-16 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:23:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:24:05 [end_date_ymd] => 2025-01-16 07:24:05 [RateCDR] => 1 ) [2025-01-16 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:24:05' and `end` < '2025-01-16 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:24:18] Production.INFO: count ==26 [2025-01-16 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:24:05 - End Time 2025-01-16 07:24:05 [2025-01-16 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259407', 'tblTempUsageDetail_20' ) start [2025-01-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259407', 'tblTempUsageDetail_20' ) end [2025-01-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259407', 'tblTempVendorCDR_20' ) start [2025-01-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259407', 'tblTempVendorCDR_20' ) end [2025-01-16 07:24:18] Production.INFO: ProcessCDR(1,14259407,1,1,2) [2025-01-16 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259407', 'tblTempUsageDetail_20' ) start [2025-01-16 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259407', 'tblTempUsageDetail_20' ) end [2025-01-16 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:24:21] Production.INFO: ==10951== Releasing lock... [2025-01-16 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:25:04 [end_date_ymd] => 2025-01-16 07:25:04 [RateCDR] => 1 ) [2025-01-16 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:25:04' and `end` < '2025-01-16 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:25:16] Production.INFO: count ==26 [2025-01-16 07:25:16] Production.ERROR: pbx CDR StartTime 2025-01-16 04:25:04 - End Time 2025-01-16 07:25:04 [2025-01-16 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259413', 'tblTempUsageDetail_20' ) start [2025-01-16 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259413', 'tblTempUsageDetail_20' ) end [2025-01-16 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259413', 'tblTempVendorCDR_20' ) start [2025-01-16 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259413', 'tblTempVendorCDR_20' ) end [2025-01-16 07:25:16] Production.INFO: ProcessCDR(1,14259413,1,1,2) [2025-01-16 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259413', 'tblTempUsageDetail_20' ) start [2025-01-16 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259413', 'tblTempUsageDetail_20' ) end [2025-01-16 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:25:20] Production.INFO: ==11021== Releasing lock... [2025-01-16 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:26:05 [end_date_ymd] => 2025-01-16 07:26:05 [RateCDR] => 1 ) [2025-01-16 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:26:05' and `end` < '2025-01-16 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:26:18] Production.INFO: count ==26 [2025-01-16 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:26:05 - End Time 2025-01-16 07:26:05 [2025-01-16 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259418', 'tblTempUsageDetail_20' ) start [2025-01-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259418', 'tblTempUsageDetail_20' ) end [2025-01-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259418', 'tblTempVendorCDR_20' ) start [2025-01-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259418', 'tblTempVendorCDR_20' ) end [2025-01-16 07:26:18] Production.INFO: ProcessCDR(1,14259418,1,1,2) [2025-01-16 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259418', 'tblTempUsageDetail_20' ) start [2025-01-16 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259418', 'tblTempUsageDetail_20' ) end [2025-01-16 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:26:22] Production.INFO: ==11094== Releasing lock... [2025-01-16 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:26:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:27:04 [end_date_ymd] => 2025-01-16 07:27:04 [RateCDR] => 1 ) [2025-01-16 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:27:04' and `end` < '2025-01-16 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:27:16] Production.INFO: count ==26 [2025-01-16 07:27:16] Production.ERROR: pbx CDR StartTime 2025-01-16 04:27:04 - End Time 2025-01-16 07:27:04 [2025-01-16 07:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259423', 'tblTempUsageDetail_20' ) start [2025-01-16 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259423', 'tblTempUsageDetail_20' ) end [2025-01-16 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259423', 'tblTempVendorCDR_20' ) start [2025-01-16 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259423', 'tblTempVendorCDR_20' ) end [2025-01-16 07:27:16] Production.INFO: ProcessCDR(1,14259423,1,1,2) [2025-01-16 07:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259423', 'tblTempUsageDetail_20' ) start [2025-01-16 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259423', 'tblTempUsageDetail_20' ) end [2025-01-16 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:27:20] Production.INFO: ==11164== Releasing lock... [2025-01-16 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:27:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:28:05 [end_date_ymd] => 2025-01-16 07:28:05 [RateCDR] => 1 ) [2025-01-16 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:28:05' and `end` < '2025-01-16 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:28:17] Production.INFO: count ==27 [2025-01-16 07:28:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:28:05 - End Time 2025-01-16 07:28:05 [2025-01-16 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259428', 'tblTempUsageDetail_20' ) start [2025-01-16 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259428', 'tblTempUsageDetail_20' ) end [2025-01-16 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259428', 'tblTempVendorCDR_20' ) start [2025-01-16 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259428', 'tblTempVendorCDR_20' ) end [2025-01-16 07:28:17] Production.INFO: ProcessCDR(1,14259428,1,1,2) [2025-01-16 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259428', 'tblTempUsageDetail_20' ) start [2025-01-16 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259428', 'tblTempUsageDetail_20' ) end [2025-01-16 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:28:22] Production.INFO: ==11273== Releasing lock... [2025-01-16 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:28:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:29:05 [end_date_ymd] => 2025-01-16 07:29:05 [RateCDR] => 1 ) [2025-01-16 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:29:05' and `end` < '2025-01-16 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:29:18] Production.INFO: count ==27 [2025-01-16 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:29:05 - End Time 2025-01-16 07:29:05 [2025-01-16 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259433', 'tblTempUsageDetail_20' ) start [2025-01-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259433', 'tblTempUsageDetail_20' ) end [2025-01-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259433', 'tblTempVendorCDR_20' ) start [2025-01-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259433', 'tblTempVendorCDR_20' ) end [2025-01-16 07:29:18] Production.INFO: ProcessCDR(1,14259433,1,1,2) [2025-01-16 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259433', 'tblTempUsageDetail_20' ) start [2025-01-16 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259433', 'tblTempUsageDetail_20' ) end [2025-01-16 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:29:21] Production.INFO: ==11344== Releasing lock... [2025-01-16 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:30:05 [end_date_ymd] => 2025-01-16 07:30:05 [RateCDR] => 1 ) [2025-01-16 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:30:05' and `end` < '2025-01-16 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:30:18] Production.INFO: count ==25 [2025-01-16 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:30:05 - End Time 2025-01-16 07:30:05 [2025-01-16 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259438', 'tblTempUsageDetail_20' ) start [2025-01-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259438', 'tblTempUsageDetail_20' ) end [2025-01-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259438', 'tblTempVendorCDR_20' ) start [2025-01-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259438', 'tblTempVendorCDR_20' ) end [2025-01-16 07:30:18] Production.INFO: ProcessCDR(1,14259438,1,1,2) [2025-01-16 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259438', 'tblTempUsageDetail_20' ) start [2025-01-16 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259438', 'tblTempUsageDetail_20' ) end [2025-01-16 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:30:21] Production.INFO: ==11416== Releasing lock... [2025-01-16 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:31:05 [end_date_ymd] => 2025-01-16 07:31:05 [RateCDR] => 1 ) [2025-01-16 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:31:05' and `end` < '2025-01-16 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:31:18] Production.INFO: count ==24 [2025-01-16 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:31:05 - End Time 2025-01-16 07:31:05 [2025-01-16 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259444', 'tblTempUsageDetail_20' ) start [2025-01-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259444', 'tblTempUsageDetail_20' ) end [2025-01-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259444', 'tblTempVendorCDR_20' ) start [2025-01-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259444', 'tblTempVendorCDR_20' ) end [2025-01-16 07:31:18] Production.INFO: ProcessCDR(1,14259444,1,1,2) [2025-01-16 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259444', 'tblTempUsageDetail_20' ) start [2025-01-16 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259444', 'tblTempUsageDetail_20' ) end [2025-01-16 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:31:21] Production.INFO: ==11490== Releasing lock... [2025-01-16 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:32:05 [end_date_ymd] => 2025-01-16 07:32:05 [RateCDR] => 1 ) [2025-01-16 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:32:05' and `end` < '2025-01-16 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:32:17] Production.INFO: count ==24 [2025-01-16 07:32:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:32:05 - End Time 2025-01-16 07:32:05 [2025-01-16 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259449', 'tblTempUsageDetail_20' ) start [2025-01-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259449', 'tblTempUsageDetail_20' ) end [2025-01-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259449', 'tblTempVendorCDR_20' ) start [2025-01-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259449', 'tblTempVendorCDR_20' ) end [2025-01-16 07:32:17] Production.INFO: ProcessCDR(1,14259449,1,1,2) [2025-01-16 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259449', 'tblTempUsageDetail_20' ) start [2025-01-16 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259449', 'tblTempUsageDetail_20' ) end [2025-01-16 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:32:20] Production.INFO: ==11561== Releasing lock... [2025-01-16 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:32:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:33:05 [end_date_ymd] => 2025-01-16 07:33:05 [RateCDR] => 1 ) [2025-01-16 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:33:05' and `end` < '2025-01-16 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:33:18] Production.INFO: count ==24 [2025-01-16 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:33:05 - End Time 2025-01-16 07:33:05 [2025-01-16 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259454', 'tblTempUsageDetail_20' ) start [2025-01-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259454', 'tblTempUsageDetail_20' ) end [2025-01-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259454', 'tblTempVendorCDR_20' ) start [2025-01-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259454', 'tblTempVendorCDR_20' ) end [2025-01-16 07:33:18] Production.INFO: ProcessCDR(1,14259454,1,1,2) [2025-01-16 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259454', 'tblTempUsageDetail_20' ) start [2025-01-16 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259454', 'tblTempUsageDetail_20' ) end [2025-01-16 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:33:21] Production.INFO: ==11632== Releasing lock... [2025-01-16 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-16 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:34:05 [end_date_ymd] => 2025-01-16 07:34:05 [RateCDR] => 1 ) [2025-01-16 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:34:05' and `end` < '2025-01-16 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:34:17] Production.INFO: count ==41 [2025-01-16 07:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:34:05 - End Time 2025-01-16 07:34:05 [2025-01-16 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259459', 'tblTempUsageDetail_20' ) start [2025-01-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259459', 'tblTempUsageDetail_20' ) end [2025-01-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259459', 'tblTempVendorCDR_20' ) start [2025-01-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259459', 'tblTempVendorCDR_20' ) end [2025-01-16 07:34:17] Production.INFO: ProcessCDR(1,14259459,1,1,2) [2025-01-16 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259459', 'tblTempUsageDetail_20' ) start [2025-01-16 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259459', 'tblTempUsageDetail_20' ) end [2025-01-16 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:34:21] Production.INFO: ==11718== Releasing lock... [2025-01-16 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:35:05 [end_date_ymd] => 2025-01-16 07:35:05 [RateCDR] => 1 ) [2025-01-16 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:35:05' and `end` < '2025-01-16 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:35:18] Production.INFO: count ==41 [2025-01-16 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:35:05 - End Time 2025-01-16 07:35:05 [2025-01-16 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259464', 'tblTempUsageDetail_20' ) start [2025-01-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259464', 'tblTempUsageDetail_20' ) end [2025-01-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259464', 'tblTempVendorCDR_20' ) start [2025-01-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259464', 'tblTempVendorCDR_20' ) end [2025-01-16 07:35:18] Production.INFO: ProcessCDR(1,14259464,1,1,2) [2025-01-16 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259464', 'tblTempUsageDetail_20' ) start [2025-01-16 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259464', 'tblTempUsageDetail_20' ) end [2025-01-16 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:35:21] Production.INFO: ==11790== Releasing lock... [2025-01-16 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:36:05 [end_date_ymd] => 2025-01-16 07:36:05 [RateCDR] => 1 ) [2025-01-16 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:36:05' and `end` < '2025-01-16 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:36:18] Production.INFO: count ==41 [2025-01-16 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:36:05 - End Time 2025-01-16 07:36:05 [2025-01-16 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259469', 'tblTempUsageDetail_20' ) start [2025-01-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259469', 'tblTempUsageDetail_20' ) end [2025-01-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259469', 'tblTempVendorCDR_20' ) start [2025-01-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259469', 'tblTempVendorCDR_20' ) end [2025-01-16 07:36:18] Production.INFO: ProcessCDR(1,14259469,1,1,2) [2025-01-16 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259469', 'tblTempUsageDetail_20' ) start [2025-01-16 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259469', 'tblTempUsageDetail_20' ) end [2025-01-16 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:36:21] Production.INFO: ==11860== Releasing lock... [2025-01-16 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:37:05 [end_date_ymd] => 2025-01-16 07:37:05 [RateCDR] => 1 ) [2025-01-16 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:37:05' and `end` < '2025-01-16 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:37:17] Production.INFO: count ==41 [2025-01-16 07:37:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:37:05 - End Time 2025-01-16 07:37:05 [2025-01-16 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259474', 'tblTempUsageDetail_20' ) start [2025-01-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259474', 'tblTempUsageDetail_20' ) end [2025-01-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259474', 'tblTempVendorCDR_20' ) start [2025-01-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259474', 'tblTempVendorCDR_20' ) end [2025-01-16 07:37:17] Production.INFO: ProcessCDR(1,14259474,1,1,2) [2025-01-16 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259474', 'tblTempUsageDetail_20' ) start [2025-01-16 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259474', 'tblTempUsageDetail_20' ) end [2025-01-16 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:37:20] Production.INFO: ==11932== Releasing lock... [2025-01-16 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:37:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:38:05 [end_date_ymd] => 2025-01-16 07:38:05 [RateCDR] => 1 ) [2025-01-16 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:38:05' and `end` < '2025-01-16 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:38:18] Production.INFO: count ==41 [2025-01-16 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:38:05 - End Time 2025-01-16 07:38:05 [2025-01-16 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259479', 'tblTempUsageDetail_20' ) start [2025-01-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259479', 'tblTempUsageDetail_20' ) end [2025-01-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259479', 'tblTempVendorCDR_20' ) start [2025-01-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259479', 'tblTempVendorCDR_20' ) end [2025-01-16 07:38:18] Production.INFO: ProcessCDR(1,14259479,1,1,2) [2025-01-16 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259479', 'tblTempUsageDetail_20' ) start [2025-01-16 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259479', 'tblTempUsageDetail_20' ) end [2025-01-16 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:38:21] Production.INFO: ==12003== Releasing lock... [2025-01-16 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:39:05 [end_date_ymd] => 2025-01-16 07:39:05 [RateCDR] => 1 ) [2025-01-16 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:39:05' and `end` < '2025-01-16 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:39:17] Production.INFO: count ==42 [2025-01-16 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:39:05 - End Time 2025-01-16 07:39:05 [2025-01-16 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259484', 'tblTempUsageDetail_20' ) start [2025-01-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259484', 'tblTempUsageDetail_20' ) end [2025-01-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259484', 'tblTempVendorCDR_20' ) start [2025-01-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259484', 'tblTempVendorCDR_20' ) end [2025-01-16 07:39:17] Production.INFO: ProcessCDR(1,14259484,1,1,2) [2025-01-16 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259484', 'tblTempUsageDetail_20' ) start [2025-01-16 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259484', 'tblTempUsageDetail_20' ) end [2025-01-16 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:39:22] Production.INFO: ==12076== Releasing lock... [2025-01-16 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:40:05 [end_date_ymd] => 2025-01-16 07:40:05 [RateCDR] => 1 ) [2025-01-16 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:40:05' and `end` < '2025-01-16 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:40:18] Production.INFO: count ==42 [2025-01-16 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:40:05 - End Time 2025-01-16 07:40:05 [2025-01-16 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259489', 'tblTempUsageDetail_20' ) start [2025-01-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259489', 'tblTempUsageDetail_20' ) end [2025-01-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259489', 'tblTempVendorCDR_20' ) start [2025-01-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259489', 'tblTempVendorCDR_20' ) end [2025-01-16 07:40:18] Production.INFO: ProcessCDR(1,14259489,1,1,2) [2025-01-16 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259489', 'tblTempUsageDetail_20' ) start [2025-01-16 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259489', 'tblTempUsageDetail_20' ) end [2025-01-16 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:40:21] Production.INFO: ==12146== Releasing lock... [2025-01-16 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:41:05 [end_date_ymd] => 2025-01-16 07:41:05 [RateCDR] => 1 ) [2025-01-16 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:41:05' and `end` < '2025-01-16 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:41:17] Production.INFO: count ==42 [2025-01-16 07:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:41:05 - End Time 2025-01-16 07:41:05 [2025-01-16 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259495', 'tblTempUsageDetail_20' ) start [2025-01-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259495', 'tblTempUsageDetail_20' ) end [2025-01-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259495', 'tblTempVendorCDR_20' ) start [2025-01-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259495', 'tblTempVendorCDR_20' ) end [2025-01-16 07:41:17] Production.INFO: ProcessCDR(1,14259495,1,1,2) [2025-01-16 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259495', 'tblTempUsageDetail_20' ) start [2025-01-16 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259495', 'tblTempUsageDetail_20' ) end [2025-01-16 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:41:20] Production.INFO: ==12219== Releasing lock... [2025-01-16 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:42:05 [end_date_ymd] => 2025-01-16 07:42:05 [RateCDR] => 1 ) [2025-01-16 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:42:05' and `end` < '2025-01-16 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:42:18] Production.INFO: count ==42 [2025-01-16 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:42:05 - End Time 2025-01-16 07:42:05 [2025-01-16 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259500', 'tblTempUsageDetail_20' ) start [2025-01-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259500', 'tblTempUsageDetail_20' ) end [2025-01-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259500', 'tblTempVendorCDR_20' ) start [2025-01-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259500', 'tblTempVendorCDR_20' ) end [2025-01-16 07:42:18] Production.INFO: ProcessCDR(1,14259500,1,1,2) [2025-01-16 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259500', 'tblTempUsageDetail_20' ) start [2025-01-16 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259500', 'tblTempUsageDetail_20' ) end [2025-01-16 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:42:21] Production.INFO: ==12289== Releasing lock... [2025-01-16 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:43:05 [end_date_ymd] => 2025-01-16 07:43:05 [RateCDR] => 1 ) [2025-01-16 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:43:05' and `end` < '2025-01-16 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:43:17] Production.INFO: count ==42 [2025-01-16 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:43:05 - End Time 2025-01-16 07:43:05 [2025-01-16 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259505', 'tblTempUsageDetail_20' ) start [2025-01-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259505', 'tblTempUsageDetail_20' ) end [2025-01-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259505', 'tblTempVendorCDR_20' ) start [2025-01-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259505', 'tblTempVendorCDR_20' ) end [2025-01-16 07:43:17] Production.INFO: ProcessCDR(1,14259505,1,1,2) [2025-01-16 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259505', 'tblTempUsageDetail_20' ) start [2025-01-16 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259505', 'tblTempUsageDetail_20' ) end [2025-01-16 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:43:21] Production.INFO: ==12358== Releasing lock... [2025-01-16 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:44:04 [end_date_ymd] => 2025-01-16 07:44:04 [RateCDR] => 1 ) [2025-01-16 07:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:44:04' and `end` < '2025-01-16 07:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:44:17] Production.INFO: count ==42 [2025-01-16 07:44:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:44:04 - End Time 2025-01-16 07:44:04 [2025-01-16 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259510', 'tblTempUsageDetail_20' ) start [2025-01-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259510', 'tblTempUsageDetail_20' ) end [2025-01-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259510', 'tblTempVendorCDR_20' ) start [2025-01-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259510', 'tblTempVendorCDR_20' ) end [2025-01-16 07:44:17] Production.INFO: ProcessCDR(1,14259510,1,1,2) [2025-01-16 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259510', 'tblTempUsageDetail_20' ) start [2025-01-16 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259510', 'tblTempUsageDetail_20' ) end [2025-01-16 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:44:21] Production.INFO: ==12468== Releasing lock... [2025-01-16 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:45:05 [end_date_ymd] => 2025-01-16 07:45:05 [RateCDR] => 1 ) [2025-01-16 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:45:05' and `end` < '2025-01-16 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:45:17] Production.INFO: count ==43 [2025-01-16 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:45:05 - End Time 2025-01-16 07:45:05 [2025-01-16 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259515', 'tblTempUsageDetail_20' ) start [2025-01-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259515', 'tblTempUsageDetail_20' ) end [2025-01-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259515', 'tblTempVendorCDR_20' ) start [2025-01-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259515', 'tblTempVendorCDR_20' ) end [2025-01-16 07:45:17] Production.INFO: ProcessCDR(1,14259515,1,1,2) [2025-01-16 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259515', 'tblTempUsageDetail_20' ) start [2025-01-16 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259515', 'tblTempUsageDetail_20' ) end [2025-01-16 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:45:22] Production.INFO: ==12540== Releasing lock... [2025-01-16 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:46:05 [end_date_ymd] => 2025-01-16 07:46:05 [RateCDR] => 1 ) [2025-01-16 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:46:05' and `end` < '2025-01-16 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:46:18] Production.INFO: count ==43 [2025-01-16 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:46:05 - End Time 2025-01-16 07:46:05 [2025-01-16 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259520', 'tblTempUsageDetail_20' ) start [2025-01-16 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259520', 'tblTempUsageDetail_20' ) end [2025-01-16 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259520', 'tblTempVendorCDR_20' ) start [2025-01-16 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259520', 'tblTempVendorCDR_20' ) end [2025-01-16 07:46:18] Production.INFO: ProcessCDR(1,14259520,1,1,2) [2025-01-16 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259520', 'tblTempUsageDetail_20' ) start [2025-01-16 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259520', 'tblTempUsageDetail_20' ) end [2025-01-16 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:46:21] Production.INFO: ==12611== Releasing lock... [2025-01-16 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:47:05 [end_date_ymd] => 2025-01-16 07:47:05 [RateCDR] => 1 ) [2025-01-16 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:47:05' and `end` < '2025-01-16 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:47:18] Production.INFO: count ==43 [2025-01-16 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:47:05 - End Time 2025-01-16 07:47:05 [2025-01-16 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259525', 'tblTempUsageDetail_20' ) start [2025-01-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259525', 'tblTempUsageDetail_20' ) end [2025-01-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259525', 'tblTempVendorCDR_20' ) start [2025-01-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259525', 'tblTempVendorCDR_20' ) end [2025-01-16 07:47:18] Production.INFO: ProcessCDR(1,14259525,1,1,2) [2025-01-16 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259525', 'tblTempUsageDetail_20' ) start [2025-01-16 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259525', 'tblTempUsageDetail_20' ) end [2025-01-16 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:47:21] Production.INFO: ==12682== Releasing lock... [2025-01-16 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:48:05 [end_date_ymd] => 2025-01-16 07:48:05 [RateCDR] => 1 ) [2025-01-16 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:48:05' and `end` < '2025-01-16 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:48:18] Production.INFO: count ==43 [2025-01-16 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:48:05 - End Time 2025-01-16 07:48:05 [2025-01-16 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259530', 'tblTempUsageDetail_20' ) start [2025-01-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259530', 'tblTempUsageDetail_20' ) end [2025-01-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259530', 'tblTempVendorCDR_20' ) start [2025-01-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259530', 'tblTempVendorCDR_20' ) end [2025-01-16 07:48:18] Production.INFO: ProcessCDR(1,14259530,1,1,2) [2025-01-16 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259530', 'tblTempUsageDetail_20' ) start [2025-01-16 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259530', 'tblTempUsageDetail_20' ) end [2025-01-16 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:48:21] Production.INFO: ==12753== Releasing lock... [2025-01-16 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:49:04 [end_date_ymd] => 2025-01-16 07:49:04 [RateCDR] => 1 ) [2025-01-16 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:49:04' and `end` < '2025-01-16 07:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:49:17] Production.INFO: count ==43 [2025-01-16 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:49:04 - End Time 2025-01-16 07:49:04 [2025-01-16 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259535', 'tblTempUsageDetail_20' ) start [2025-01-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259535', 'tblTempUsageDetail_20' ) end [2025-01-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259535', 'tblTempVendorCDR_20' ) start [2025-01-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259535', 'tblTempVendorCDR_20' ) end [2025-01-16 07:49:17] Production.INFO: ProcessCDR(1,14259535,1,1,2) [2025-01-16 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259535', 'tblTempUsageDetail_20' ) start [2025-01-16 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259535', 'tblTempUsageDetail_20' ) end [2025-01-16 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:49:20] Production.INFO: ==12822== Releasing lock... [2025-01-16 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:50:05 [end_date_ymd] => 2025-01-16 07:50:05 [RateCDR] => 1 ) [2025-01-16 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:50:05' and `end` < '2025-01-16 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:50:18] Production.INFO: count ==43 [2025-01-16 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:50:05 - End Time 2025-01-16 07:50:05 [2025-01-16 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259540', 'tblTempUsageDetail_20' ) start [2025-01-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259540', 'tblTempUsageDetail_20' ) end [2025-01-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259540', 'tblTempVendorCDR_20' ) start [2025-01-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259540', 'tblTempVendorCDR_20' ) end [2025-01-16 07:50:18] Production.INFO: ProcessCDR(1,14259540,1,1,2) [2025-01-16 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259540', 'tblTempUsageDetail_20' ) start [2025-01-16 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259540', 'tblTempUsageDetail_20' ) end [2025-01-16 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:50:21] Production.INFO: ==12900== Releasing lock... [2025-01-16 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:51:04 [end_date_ymd] => 2025-01-16 07:51:04 [RateCDR] => 1 ) [2025-01-16 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:51:04' and `end` < '2025-01-16 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:51:16] Production.INFO: count ==43 [2025-01-16 07:51:16] Production.ERROR: pbx CDR StartTime 2025-01-16 04:51:04 - End Time 2025-01-16 07:51:04 [2025-01-16 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259546', 'tblTempUsageDetail_20' ) start [2025-01-16 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259546', 'tblTempUsageDetail_20' ) end [2025-01-16 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259546', 'tblTempVendorCDR_20' ) start [2025-01-16 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259546', 'tblTempVendorCDR_20' ) end [2025-01-16 07:51:16] Production.INFO: ProcessCDR(1,14259546,1,1,2) [2025-01-16 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259546', 'tblTempUsageDetail_20' ) start [2025-01-16 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259546', 'tblTempUsageDetail_20' ) end [2025-01-16 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:51:20] Production.INFO: ==12978== Releasing lock... [2025-01-16 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:51:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:52:05 [end_date_ymd] => 2025-01-16 07:52:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 04:52:05' and `end` < '2025-01-16 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-01-16 07:52:18] Production.INFO: count ==43 [2025-01-16 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:52:05 - End Time 2025-01-16 07:52:05 [2025-01-16 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259551', 'tblTempUsageDetail_20' ) start [2025-01-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259551', 'tblTempUsageDetail_20' ) end [2025-01-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259551', 'tblTempVendorCDR_20' ) start [2025-01-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259551', 'tblTempVendorCDR_20' ) end [2025-01-16 07:52:18] Production.INFO: ProcessCDR(1,14259551,1,1,2) [2025-01-16 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259551', 'tblTempUsageDetail_20' ) start [2025-01-16 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259551', 'tblTempUsageDetail_20' ) end [2025-01-16 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:52:21] Production.INFO: ==13048== Releasing lock... [2025-01-16 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:53:04 [end_date_ymd] => 2025-01-16 07:53:04 [RateCDR] => 1 ) [2025-01-16 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:53:04' and `end` < '2025-01-16 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:53:17] Production.INFO: count ==43 [2025-01-16 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:53:04 - End Time 2025-01-16 07:53:04 [2025-01-16 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259555', 'tblTempUsageDetail_20' ) start [2025-01-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259555', 'tblTempUsageDetail_20' ) end [2025-01-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259555', 'tblTempVendorCDR_20' ) start [2025-01-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259555', 'tblTempVendorCDR_20' ) end [2025-01-16 07:53:17] Production.INFO: ProcessCDR(1,14259555,1,1,2) [2025-01-16 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259555', 'tblTempUsageDetail_20' ) start [2025-01-16 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259555', 'tblTempUsageDetail_20' ) end [2025-01-16 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:53:20] Production.INFO: ==13118== Releasing lock... [2025-01-16 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:53:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:54:05 [end_date_ymd] => 2025-01-16 07:54:05 [RateCDR] => 1 ) [2025-01-16 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:54:05' and `end` < '2025-01-16 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:54:18] Production.INFO: count ==43 [2025-01-16 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:54:05 - End Time 2025-01-16 07:54:05 [2025-01-16 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259561', 'tblTempUsageDetail_20' ) start [2025-01-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259561', 'tblTempUsageDetail_20' ) end [2025-01-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259561', 'tblTempVendorCDR_20' ) start [2025-01-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259561', 'tblTempVendorCDR_20' ) end [2025-01-16 07:54:18] Production.INFO: ProcessCDR(1,14259561,1,1,2) [2025-01-16 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259561', 'tblTempUsageDetail_20' ) start [2025-01-16 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259561', 'tblTempUsageDetail_20' ) end [2025-01-16 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:54:21] Production.INFO: ==13189== Releasing lock... [2025-01-16 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:55:05 [end_date_ymd] => 2025-01-16 07:55:05 [RateCDR] => 1 ) [2025-01-16 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:55:05' and `end` < '2025-01-16 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:55:18] Production.INFO: count ==43 [2025-01-16 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-16 04:55:05 - End Time 2025-01-16 07:55:05 [2025-01-16 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259566', 'tblTempUsageDetail_20' ) start [2025-01-16 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259566', 'tblTempUsageDetail_20' ) end [2025-01-16 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259566', 'tblTempVendorCDR_20' ) start [2025-01-16 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259566', 'tblTempVendorCDR_20' ) end [2025-01-16 07:55:18] Production.INFO: ProcessCDR(1,14259566,1,1,2) [2025-01-16 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259566', 'tblTempUsageDetail_20' ) start [2025-01-16 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259566', 'tblTempUsageDetail_20' ) end [2025-01-16 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:55:21] Production.INFO: ==13260== Releasing lock... [2025-01-16 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:56:05 [end_date_ymd] => 2025-01-16 07:56:05 [RateCDR] => 1 ) [2025-01-16 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:56:05' and `end` < '2025-01-16 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:56:17] Production.INFO: count ==43 [2025-01-16 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:56:05 - End Time 2025-01-16 07:56:05 [2025-01-16 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259571', 'tblTempUsageDetail_20' ) start [2025-01-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259571', 'tblTempUsageDetail_20' ) end [2025-01-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259571', 'tblTempVendorCDR_20' ) start [2025-01-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259571', 'tblTempVendorCDR_20' ) end [2025-01-16 07:56:17] Production.INFO: ProcessCDR(1,14259571,1,1,2) [2025-01-16 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259571', 'tblTempUsageDetail_20' ) start [2025-01-16 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259571', 'tblTempUsageDetail_20' ) end [2025-01-16 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:56:21] Production.INFO: ==13332== Releasing lock... [2025-01-16 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:57:05 [end_date_ymd] => 2025-01-16 07:57:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 04:57:05' and `end` < '2025-01-16 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-01-16 07:57:17] Production.INFO: count ==48 [2025-01-16 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:57:05 - End Time 2025-01-16 07:57:05 [2025-01-16 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259576', 'tblTempUsageDetail_20' ) start [2025-01-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259576', 'tblTempUsageDetail_20' ) end [2025-01-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259576', 'tblTempVendorCDR_20' ) start [2025-01-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259576', 'tblTempVendorCDR_20' ) end [2025-01-16 07:57:17] Production.INFO: ProcessCDR(1,14259576,1,1,2) [2025-01-16 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259576', 'tblTempUsageDetail_20' ) start [2025-01-16 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259576', 'tblTempUsageDetail_20' ) end [2025-01-16 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:57:20] Production.INFO: ==13403== Releasing lock... [2025-01-16 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:58:04 [end_date_ymd] => 2025-01-16 07:58:04 [RateCDR] => 1 ) [2025-01-16 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:58:04' and `end` < '2025-01-16 07:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:58:17] Production.INFO: count ==48 [2025-01-16 07:58:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:58:04 - End Time 2025-01-16 07:58:04 [2025-01-16 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259581', 'tblTempUsageDetail_20' ) start [2025-01-16 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259581', 'tblTempUsageDetail_20' ) end [2025-01-16 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259581', 'tblTempVendorCDR_20' ) start [2025-01-16 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259581', 'tblTempVendorCDR_20' ) end [2025-01-16 07:58:17] Production.INFO: ProcessCDR(1,14259581,1,1,2) [2025-01-16 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259581', 'tblTempUsageDetail_20' ) start [2025-01-16 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259581', 'tblTempUsageDetail_20' ) end [2025-01-16 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:58:20] Production.INFO: ==13473== Releasing lock... [2025-01-16 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 04:59:05 [end_date_ymd] => 2025-01-16 07:59:05 [RateCDR] => 1 ) [2025-01-16 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 04:59:05' and `end` < '2025-01-16 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 07:59:17] Production.INFO: count ==48 [2025-01-16 07:59:17] Production.ERROR: pbx CDR StartTime 2025-01-16 04:59:05 - End Time 2025-01-16 07:59:05 [2025-01-16 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259586', 'tblTempUsageDetail_20' ) start [2025-01-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259586', 'tblTempUsageDetail_20' ) end [2025-01-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259586', 'tblTempVendorCDR_20' ) start [2025-01-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259586', 'tblTempVendorCDR_20' ) end [2025-01-16 07:59:17] Production.INFO: ProcessCDR(1,14259586,1,1,2) [2025-01-16 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259586', 'tblTempUsageDetail_20' ) start [2025-01-16 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259586', 'tblTempUsageDetail_20' ) end [2025-01-16 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 07:59:20] Production.INFO: ==13587== Releasing lock... [2025-01-16 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 07:59:20] Production.INFO: 28 MB #Memory Used# [2025-01-16 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:00:05 [end_date_ymd] => 2025-01-16 08:00:05 [RateCDR] => 1 ) [2025-01-16 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:00:05' and `end` < '2025-01-16 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:00:18] Production.INFO: count ==65 [2025-01-16 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:00:05 - End Time 2025-01-16 08:00:05 [2025-01-16 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259592', 'tblTempUsageDetail_20' ) start [2025-01-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259592', 'tblTempUsageDetail_20' ) end [2025-01-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259592', 'tblTempVendorCDR_20' ) start [2025-01-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259592', 'tblTempVendorCDR_20' ) end [2025-01-16 08:00:18] Production.INFO: ProcessCDR(1,14259592,1,1,2) [2025-01-16 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259592', 'tblTempUsageDetail_20' ) start [2025-01-16 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259592', 'tblTempUsageDetail_20' ) end [2025-01-16 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:00:21] Production.INFO: ==13658== Releasing lock... [2025-01-16 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:01:05 [end_date_ymd] => 2025-01-16 08:01:05 [RateCDR] => 1 ) [2025-01-16 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:01:05' and `end` < '2025-01-16 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:01:17] Production.INFO: count ==65 [2025-01-16 08:01:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:01:05 - End Time 2025-01-16 08:01:05 [2025-01-16 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259597', 'tblTempUsageDetail_20' ) start [2025-01-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259597', 'tblTempUsageDetail_20' ) end [2025-01-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259597', 'tblTempVendorCDR_20' ) start [2025-01-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259597', 'tblTempVendorCDR_20' ) end [2025-01-16 08:01:17] Production.INFO: ProcessCDR(1,14259597,1,1,2) [2025-01-16 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259597', 'tblTempUsageDetail_20' ) start [2025-01-16 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259597', 'tblTempUsageDetail_20' ) end [2025-01-16 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:01:21] Production.INFO: ==13742== Releasing lock... [2025-01-16 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-16 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:02:05 [end_date_ymd] => 2025-01-16 08:02:05 [RateCDR] => 1 ) [2025-01-16 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:02:05' and `end` < '2025-01-16 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:02:19] Production.INFO: count ==76 [2025-01-16 08:02:19] Production.ERROR: pbx CDR StartTime 2025-01-16 05:02:05 - End Time 2025-01-16 08:02:05 [2025-01-16 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259602', 'tblTempUsageDetail_20' ) start [2025-01-16 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259602', 'tblTempUsageDetail_20' ) end [2025-01-16 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259602', 'tblTempVendorCDR_20' ) start [2025-01-16 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259602', 'tblTempVendorCDR_20' ) end [2025-01-16 08:02:19] Production.INFO: ProcessCDR(1,14259602,1,1,2) [2025-01-16 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259602', 'tblTempUsageDetail_20' ) start [2025-01-16 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259602', 'tblTempUsageDetail_20' ) end [2025-01-16 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:02:22] Production.INFO: ==13812== Releasing lock... [2025-01-16 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:03:05 [end_date_ymd] => 2025-01-16 08:03:05 [RateCDR] => 1 ) [2025-01-16 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:03:05' and `end` < '2025-01-16 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:03:17] Production.INFO: count ==87 [2025-01-16 08:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:03:05 - End Time 2025-01-16 08:03:05 [2025-01-16 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259607', 'tblTempUsageDetail_20' ) start [2025-01-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259607', 'tblTempUsageDetail_20' ) end [2025-01-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259607', 'tblTempVendorCDR_20' ) start [2025-01-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259607', 'tblTempVendorCDR_20' ) end [2025-01-16 08:03:17] Production.INFO: ProcessCDR(1,14259607,1,1,2) [2025-01-16 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259607', 'tblTempUsageDetail_20' ) start [2025-01-16 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259607', 'tblTempUsageDetail_20' ) end [2025-01-16 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:03:20] Production.INFO: ==13886== Releasing lock... [2025-01-16 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-16 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:04:05 [end_date_ymd] => 2025-01-16 08:04:05 [RateCDR] => 1 ) [2025-01-16 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:04:05' and `end` < '2025-01-16 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:04:18] Production.INFO: count ==97 [2025-01-16 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:04:05 - End Time 2025-01-16 08:04:05 [2025-01-16 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259612', 'tblTempUsageDetail_20' ) start [2025-01-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259612', 'tblTempUsageDetail_20' ) end [2025-01-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259612', 'tblTempVendorCDR_20' ) start [2025-01-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259612', 'tblTempVendorCDR_20' ) end [2025-01-16 08:04:18] Production.INFO: ProcessCDR(1,14259612,1,1,2) [2025-01-16 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259612', 'tblTempUsageDetail_20' ) start [2025-01-16 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259612', 'tblTempUsageDetail_20' ) end [2025-01-16 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:04:21] Production.INFO: ==13962== Releasing lock... [2025-01-16 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-16 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:05:05 [end_date_ymd] => 2025-01-16 08:05:05 [RateCDR] => 1 ) [2025-01-16 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:05:05' and `end` < '2025-01-16 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:05:17] Production.INFO: count ==105 [2025-01-16 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:05:05 - End Time 2025-01-16 08:05:05 [2025-01-16 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259617', 'tblTempUsageDetail_20' ) start [2025-01-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259617', 'tblTempUsageDetail_20' ) end [2025-01-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259617', 'tblTempVendorCDR_20' ) start [2025-01-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259617', 'tblTempVendorCDR_20' ) end [2025-01-16 08:05:17] Production.INFO: ProcessCDR(1,14259617,1,1,2) [2025-01-16 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259617', 'tblTempUsageDetail_20' ) start [2025-01-16 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259617', 'tblTempUsageDetail_20' ) end [2025-01-16 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:05:21] Production.INFO: ==14040== Releasing lock... [2025-01-16 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:06:05 [end_date_ymd] => 2025-01-16 08:06:05 [RateCDR] => 1 ) [2025-01-16 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:06:05' and `end` < '2025-01-16 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:06:18] Production.INFO: count ==105 [2025-01-16 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:06:05 - End Time 2025-01-16 08:06:05 [2025-01-16 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259622', 'tblTempUsageDetail_20' ) start [2025-01-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259622', 'tblTempUsageDetail_20' ) end [2025-01-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259622', 'tblTempVendorCDR_20' ) start [2025-01-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259622', 'tblTempVendorCDR_20' ) end [2025-01-16 08:06:18] Production.INFO: ProcessCDR(1,14259622,1,1,2) [2025-01-16 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259622', 'tblTempUsageDetail_20' ) start [2025-01-16 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259622', 'tblTempUsageDetail_20' ) end [2025-01-16 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:06:21] Production.INFO: ==14116== Releasing lock... [2025-01-16 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:07:04 [end_date_ymd] => 2025-01-16 08:07:04 [RateCDR] => 1 ) [2025-01-16 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:07:04' and `end` < '2025-01-16 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:07:17] Production.INFO: count ==125 [2025-01-16 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:07:04 - End Time 2025-01-16 08:07:04 [2025-01-16 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259627', 'tblTempUsageDetail_20' ) start [2025-01-16 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259627', 'tblTempUsageDetail_20' ) end [2025-01-16 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259627', 'tblTempVendorCDR_20' ) start [2025-01-16 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259627', 'tblTempVendorCDR_20' ) end [2025-01-16 08:07:17] Production.INFO: ProcessCDR(1,14259627,1,1,2) [2025-01-16 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259627', 'tblTempUsageDetail_20' ) start [2025-01-16 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259627', 'tblTempUsageDetail_20' ) end [2025-01-16 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:07:20] Production.INFO: ==14202== Releasing lock... [2025-01-16 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:07:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:08:05 [end_date_ymd] => 2025-01-16 08:08:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 05:08:05' and `end` < '2025-01-16 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-01-16 08:08:18] Production.INFO: count ==127 [2025-01-16 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:08:05 - End Time 2025-01-16 08:08:05 [2025-01-16 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259632', 'tblTempUsageDetail_20' ) start [2025-01-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259632', 'tblTempUsageDetail_20' ) end [2025-01-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259632', 'tblTempVendorCDR_20' ) start [2025-01-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259632', 'tblTempVendorCDR_20' ) end [2025-01-16 08:08:18] Production.INFO: ProcessCDR(1,14259632,1,1,2) [2025-01-16 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259632', 'tblTempUsageDetail_20' ) start [2025-01-16 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259632', 'tblTempUsageDetail_20' ) end [2025-01-16 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:08:23] Production.INFO: ==14302== Releasing lock... [2025-01-16 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:09:05 [end_date_ymd] => 2025-01-16 08:09:05 [RateCDR] => 1 ) [2025-01-16 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:09:05' and `end` < '2025-01-16 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:09:17] Production.INFO: count ==128 [2025-01-16 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:09:05 - End Time 2025-01-16 08:09:05 [2025-01-16 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259637', 'tblTempUsageDetail_20' ) start [2025-01-16 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259637', 'tblTempUsageDetail_20' ) end [2025-01-16 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259637', 'tblTempVendorCDR_20' ) start [2025-01-16 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259637', 'tblTempVendorCDR_20' ) end [2025-01-16 08:09:17] Production.INFO: ProcessCDR(1,14259637,1,1,2) [2025-01-16 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259637', 'tblTempUsageDetail_20' ) start [2025-01-16 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259637', 'tblTempUsageDetail_20' ) end [2025-01-16 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:09:22] Production.INFO: ==14404== Releasing lock... [2025-01-16 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-16 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:10:05 [end_date_ymd] => 2025-01-16 08:10:05 [RateCDR] => 1 ) [2025-01-16 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:10:05' and `end` < '2025-01-16 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:10:18] Production.INFO: count ==139 [2025-01-16 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:10:05 - End Time 2025-01-16 08:10:05 [2025-01-16 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259643', 'tblTempUsageDetail_20' ) start [2025-01-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259643', 'tblTempUsageDetail_20' ) end [2025-01-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259643', 'tblTempVendorCDR_20' ) start [2025-01-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259643', 'tblTempVendorCDR_20' ) end [2025-01-16 08:10:18] Production.INFO: ProcessCDR(1,14259643,1,1,2) [2025-01-16 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259643', 'tblTempUsageDetail_20' ) start [2025-01-16 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259643', 'tblTempUsageDetail_20' ) end [2025-01-16 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:10:22] Production.INFO: ==14512== Releasing lock... [2025-01-16 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-16 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:11:05 [end_date_ymd] => 2025-01-16 08:11:05 [RateCDR] => 1 ) [2025-01-16 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:11:05' and `end` < '2025-01-16 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:11:17] Production.INFO: count ==156 [2025-01-16 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:11:05 - End Time 2025-01-16 08:11:05 [2025-01-16 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259648', 'tblTempUsageDetail_20' ) start [2025-01-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259648', 'tblTempUsageDetail_20' ) end [2025-01-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259648', 'tblTempVendorCDR_20' ) start [2025-01-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259648', 'tblTempVendorCDR_20' ) end [2025-01-16 08:11:17] Production.INFO: ProcessCDR(1,14259648,1,1,2) [2025-01-16 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259648', 'tblTempUsageDetail_20' ) start [2025-01-16 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259648', 'tblTempUsageDetail_20' ) end [2025-01-16 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:11:22] Production.INFO: ==14621== Releasing lock... [2025-01-16 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-16 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:12:05 [end_date_ymd] => 2025-01-16 08:12:05 [RateCDR] => 1 ) [2025-01-16 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:12:05' and `end` < '2025-01-16 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:12:17] Production.INFO: count ==181 [2025-01-16 08:12:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:12:05 - End Time 2025-01-16 08:12:05 [2025-01-16 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259653', 'tblTempUsageDetail_20' ) start [2025-01-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259653', 'tblTempUsageDetail_20' ) end [2025-01-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259653', 'tblTempVendorCDR_20' ) start [2025-01-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259653', 'tblTempVendorCDR_20' ) end [2025-01-16 08:12:17] Production.INFO: ProcessCDR(1,14259653,1,1,2) [2025-01-16 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259653', 'tblTempUsageDetail_20' ) start [2025-01-16 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259653', 'tblTempUsageDetail_20' ) end [2025-01-16 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:12:20] Production.INFO: ==14729== Releasing lock... [2025-01-16 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:12:20] Production.INFO: 30 MB #Memory Used# [2025-01-16 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:13:05 [end_date_ymd] => 2025-01-16 08:13:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 05:13:05' and `end` < '2025-01-16 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-01-16 08:13:19] Production.INFO: count ==186 [2025-01-16 08:13:19] Production.ERROR: pbx CDR StartTime 2025-01-16 05:13:05 - End Time 2025-01-16 08:13:05 [2025-01-16 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259658', 'tblTempUsageDetail_20' ) start [2025-01-16 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259658', 'tblTempUsageDetail_20' ) end [2025-01-16 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259658', 'tblTempVendorCDR_20' ) start [2025-01-16 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259658', 'tblTempVendorCDR_20' ) end [2025-01-16 08:13:19] Production.INFO: ProcessCDR(1,14259658,1,1,2) [2025-01-16 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259658', 'tblTempUsageDetail_20' ) start [2025-01-16 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259658', 'tblTempUsageDetail_20' ) end [2025-01-16 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:13:22] Production.INFO: ==14837== Releasing lock... [2025-01-16 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-16 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:14:05 [end_date_ymd] => 2025-01-16 08:14:05 [RateCDR] => 1 ) [2025-01-16 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:14:05' and `end` < '2025-01-16 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:14:17] Production.INFO: count ==187 [2025-01-16 08:14:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:14:05 - End Time 2025-01-16 08:14:05 [2025-01-16 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259663', 'tblTempUsageDetail_20' ) start [2025-01-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259663', 'tblTempUsageDetail_20' ) end [2025-01-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259663', 'tblTempVendorCDR_20' ) start [2025-01-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259663', 'tblTempVendorCDR_20' ) end [2025-01-16 08:14:17] Production.INFO: ProcessCDR(1,14259663,1,1,2) [2025-01-16 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259663', 'tblTempUsageDetail_20' ) start [2025-01-16 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259663', 'tblTempUsageDetail_20' ) end [2025-01-16 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:14:22] Production.INFO: ==14931== Releasing lock... [2025-01-16 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:14:22] Production.INFO: 30 MB #Memory Used# [2025-01-16 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:15:05 [end_date_ymd] => 2025-01-16 08:15:05 [RateCDR] => 1 ) [2025-01-16 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:15:05' and `end` < '2025-01-16 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:15:17] Production.INFO: count ==189 [2025-01-16 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:15:05 - End Time 2025-01-16 08:15:05 [2025-01-16 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259668', 'tblTempUsageDetail_20' ) start [2025-01-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259668', 'tblTempUsageDetail_20' ) end [2025-01-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259668', 'tblTempVendorCDR_20' ) start [2025-01-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259668', 'tblTempVendorCDR_20' ) end [2025-01-16 08:15:17] Production.INFO: ProcessCDR(1,14259668,1,1,2) [2025-01-16 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259668', 'tblTempUsageDetail_20' ) start [2025-01-16 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259668', 'tblTempUsageDetail_20' ) end [2025-01-16 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:15:22] Production.INFO: ==15064== Releasing lock... [2025-01-16 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-16 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:16:05 [end_date_ymd] => 2025-01-16 08:16:05 [RateCDR] => 1 ) [2025-01-16 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:16:05' and `end` < '2025-01-16 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:16:17] Production.INFO: count ==195 [2025-01-16 08:16:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:16:05 - End Time 2025-01-16 08:16:05 [2025-01-16 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259673', 'tblTempUsageDetail_20' ) start [2025-01-16 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259673', 'tblTempUsageDetail_20' ) end [2025-01-16 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259673', 'tblTempVendorCDR_20' ) start [2025-01-16 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259673', 'tblTempVendorCDR_20' ) end [2025-01-16 08:16:17] Production.INFO: ProcessCDR(1,14259673,1,1,2) [2025-01-16 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259673', 'tblTempUsageDetail_20' ) start [2025-01-16 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259673', 'tblTempUsageDetail_20' ) end [2025-01-16 08:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:16:20] Production.INFO: ==15167== Releasing lock... [2025-01-16 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:16:20] Production.INFO: 30 MB #Memory Used# [2025-01-16 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:17:05 [end_date_ymd] => 2025-01-16 08:17:05 [RateCDR] => 1 ) [2025-01-16 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:17:05' and `end` < '2025-01-16 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:17:17] Production.INFO: count ==199 [2025-01-16 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:17:05 - End Time 2025-01-16 08:17:05 [2025-01-16 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259678', 'tblTempUsageDetail_20' ) start [2025-01-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259678', 'tblTempUsageDetail_20' ) end [2025-01-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259678', 'tblTempVendorCDR_20' ) start [2025-01-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259678', 'tblTempVendorCDR_20' ) end [2025-01-16 08:17:17] Production.INFO: ProcessCDR(1,14259678,1,1,2) [2025-01-16 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259678', 'tblTempUsageDetail_20' ) start [2025-01-16 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259678', 'tblTempUsageDetail_20' ) end [2025-01-16 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:17:22] Production.INFO: ==15257== Releasing lock... [2025-01-16 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:17:22] Production.INFO: 30 MB #Memory Used# [2025-01-16 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:18:04 [end_date_ymd] => 2025-01-16 08:18:04 [RateCDR] => 1 ) [2025-01-16 08:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:18:04' and `end` < '2025-01-16 08:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:18:16] Production.INFO: count ==209 [2025-01-16 08:18:16] Production.ERROR: pbx CDR StartTime 2025-01-16 05:18:04 - End Time 2025-01-16 08:18:04 [2025-01-16 08:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259683', 'tblTempUsageDetail_20' ) start [2025-01-16 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259683', 'tblTempUsageDetail_20' ) end [2025-01-16 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259683', 'tblTempVendorCDR_20' ) start [2025-01-16 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259683', 'tblTempVendorCDR_20' ) end [2025-01-16 08:18:16] Production.INFO: ProcessCDR(1,14259683,1,1,2) [2025-01-16 08:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259683', 'tblTempUsageDetail_20' ) start [2025-01-16 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259683', 'tblTempUsageDetail_20' ) end [2025-01-16 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:18:21] Production.INFO: ==15361== Releasing lock... [2025-01-16 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:18:21] Production.INFO: 30 MB #Memory Used# [2025-01-16 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:19:05 [end_date_ymd] => 2025-01-16 08:19:05 [RateCDR] => 1 ) [2025-01-16 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:19:05' and `end` < '2025-01-16 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:19:17] Production.INFO: count ==221 [2025-01-16 08:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:19:05 - End Time 2025-01-16 08:19:05 [2025-01-16 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259688', 'tblTempUsageDetail_20' ) start [2025-01-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259688', 'tblTempUsageDetail_20' ) end [2025-01-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259688', 'tblTempVendorCDR_20' ) start [2025-01-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259688', 'tblTempVendorCDR_20' ) end [2025-01-16 08:19:17] Production.INFO: ProcessCDR(1,14259688,1,1,2) [2025-01-16 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259688', 'tblTempUsageDetail_20' ) start [2025-01-16 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259688', 'tblTempUsageDetail_20' ) end [2025-01-16 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:19:20] Production.INFO: ==15450== Releasing lock... [2025-01-16 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:19:20] Production.INFO: 30 MB #Memory Used# [2025-01-16 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:20:06 [end_date_ymd] => 2025-01-16 08:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 05:20:06' and `end` < '2025-01-16 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-01-16 08:20:19] Production.INFO: count ==245 [2025-01-16 08:20:19] Production.ERROR: pbx CDR StartTime 2025-01-16 05:20:06 - End Time 2025-01-16 08:20:06 [2025-01-16 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259693', 'tblTempUsageDetail_20' ) start [2025-01-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259693', 'tblTempUsageDetail_20' ) end [2025-01-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259693', 'tblTempVendorCDR_20' ) start [2025-01-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259693', 'tblTempVendorCDR_20' ) end [2025-01-16 08:20:19] Production.INFO: ProcessCDR(1,14259693,1,1,2) [2025-01-16 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259693', 'tblTempUsageDetail_20' ) start [2025-01-16 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259693', 'tblTempUsageDetail_20' ) end [2025-01-16 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:20:24] Production.INFO: ==15543== Releasing lock... [2025-01-16 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:20:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-16 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:21:05 [end_date_ymd] => 2025-01-16 08:21:05 [RateCDR] => 1 ) [2025-01-16 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:21:05' and `end` < '2025-01-16 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:21:17] Production.INFO: count ==267 [2025-01-16 08:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:21:05 - End Time 2025-01-16 08:21:05 [2025-01-16 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259699', 'tblTempUsageDetail_20' ) start [2025-01-16 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259699', 'tblTempUsageDetail_20' ) end [2025-01-16 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259699', 'tblTempVendorCDR_20' ) start [2025-01-16 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259699', 'tblTempVendorCDR_20' ) end [2025-01-16 08:21:17] Production.INFO: ProcessCDR(1,14259699,1,1,2) [2025-01-16 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259699', 'tblTempUsageDetail_20' ) start [2025-01-16 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259699', 'tblTempUsageDetail_20' ) end [2025-01-16 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:21:21] Production.INFO: ==15628== Releasing lock... [2025-01-16 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:21:21] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:22:05 [end_date_ymd] => 2025-01-16 08:22:05 [RateCDR] => 1 ) [2025-01-16 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:22:05' and `end` < '2025-01-16 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:22:18] Production.INFO: count ==270 [2025-01-16 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:22:05 - End Time 2025-01-16 08:22:05 [2025-01-16 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259704', 'tblTempUsageDetail_20' ) start [2025-01-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259704', 'tblTempUsageDetail_20' ) end [2025-01-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259704', 'tblTempVendorCDR_20' ) start [2025-01-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259704', 'tblTempVendorCDR_20' ) end [2025-01-16 08:22:18] Production.INFO: ProcessCDR(1,14259704,1,1,2) [2025-01-16 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259704', 'tblTempUsageDetail_20' ) start [2025-01-16 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259704', 'tblTempUsageDetail_20' ) end [2025-01-16 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:22:23] Production.INFO: ==15709== Releasing lock... [2025-01-16 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:22:23] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:23:05 [end_date_ymd] => 2025-01-16 08:23:05 [RateCDR] => 1 ) [2025-01-16 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:23:05' and `end` < '2025-01-16 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:23:19] Production.INFO: count ==272 [2025-01-16 08:23:19] Production.ERROR: pbx CDR StartTime 2025-01-16 05:23:05 - End Time 2025-01-16 08:23:05 [2025-01-16 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259709', 'tblTempUsageDetail_20' ) start [2025-01-16 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259709', 'tblTempUsageDetail_20' ) end [2025-01-16 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259709', 'tblTempVendorCDR_20' ) start [2025-01-16 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259709', 'tblTempVendorCDR_20' ) end [2025-01-16 08:23:19] Production.INFO: ProcessCDR(1,14259709,1,1,2) [2025-01-16 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259709', 'tblTempUsageDetail_20' ) start [2025-01-16 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259709', 'tblTempUsageDetail_20' ) end [2025-01-16 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:23:22] Production.INFO: ==15782== Releasing lock... [2025-01-16 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-16 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:24:05 [end_date_ymd] => 2025-01-16 08:24:05 [RateCDR] => 1 ) [2025-01-16 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:24:05' and `end` < '2025-01-16 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:24:19] Production.INFO: count ==303 [2025-01-16 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-16 05:24:05 - End Time 2025-01-16 08:24:05 [2025-01-16 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259714', 'tblTempUsageDetail_20' ) start [2025-01-16 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259714', 'tblTempUsageDetail_20' ) end [2025-01-16 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259714', 'tblTempVendorCDR_20' ) start [2025-01-16 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259714', 'tblTempVendorCDR_20' ) end [2025-01-16 08:24:19] Production.INFO: ProcessCDR(1,14259714,1,1,2) [2025-01-16 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259714', 'tblTempUsageDetail_20' ) start [2025-01-16 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259714', 'tblTempUsageDetail_20' ) end [2025-01-16 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:24:22] Production.INFO: ==15854== Releasing lock... [2025-01-16 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-16 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:25:04 [end_date_ymd] => 2025-01-16 08:25:04 [RateCDR] => 1 ) [2025-01-16 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:25:04' and `end` < '2025-01-16 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:25:17] Production.INFO: count ==303 [2025-01-16 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:25:04 - End Time 2025-01-16 08:25:04 [2025-01-16 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259719', 'tblTempUsageDetail_20' ) start [2025-01-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259719', 'tblTempUsageDetail_20' ) end [2025-01-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259719', 'tblTempVendorCDR_20' ) start [2025-01-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259719', 'tblTempVendorCDR_20' ) end [2025-01-16 08:25:17] Production.INFO: ProcessCDR(1,14259719,1,1,2) [2025-01-16 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259719', 'tblTempUsageDetail_20' ) start [2025-01-16 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259719', 'tblTempUsageDetail_20' ) end [2025-01-16 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:25:20] Production.INFO: ==15923== Releasing lock... [2025-01-16 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-16 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:26:05 [end_date_ymd] => 2025-01-16 08:26:05 [RateCDR] => 1 ) [2025-01-16 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:26:05' and `end` < '2025-01-16 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:26:17] Production.INFO: count ==303 [2025-01-16 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:26:05 - End Time 2025-01-16 08:26:05 [2025-01-16 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259724', 'tblTempUsageDetail_20' ) start [2025-01-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259724', 'tblTempUsageDetail_20' ) end [2025-01-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259724', 'tblTempVendorCDR_20' ) start [2025-01-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259724', 'tblTempVendorCDR_20' ) end [2025-01-16 08:26:17] Production.INFO: ProcessCDR(1,14259724,1,1,2) [2025-01-16 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259724', 'tblTempUsageDetail_20' ) start [2025-01-16 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259724', 'tblTempUsageDetail_20' ) end [2025-01-16 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:26:21] Production.INFO: ==15993== Releasing lock... [2025-01-16 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-16 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:27:06 [end_date_ymd] => 2025-01-16 08:27:06 [RateCDR] => 1 ) [2025-01-16 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:27:06' and `end` < '2025-01-16 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:27:18] Production.INFO: count ==308 [2025-01-16 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:27:06 - End Time 2025-01-16 08:27:06 [2025-01-16 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259729', 'tblTempUsageDetail_20' ) start [2025-01-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259729', 'tblTempUsageDetail_20' ) end [2025-01-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259729', 'tblTempVendorCDR_20' ) start [2025-01-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259729', 'tblTempVendorCDR_20' ) end [2025-01-16 08:27:18] Production.INFO: ProcessCDR(1,14259729,1,1,2) [2025-01-16 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259729', 'tblTempUsageDetail_20' ) start [2025-01-16 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259729', 'tblTempUsageDetail_20' ) end [2025-01-16 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:27:21] Production.INFO: ==16063== Releasing lock... [2025-01-16 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-16 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:28:05 [end_date_ymd] => 2025-01-16 08:28:05 [RateCDR] => 1 ) [2025-01-16 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:28:05' and `end` < '2025-01-16 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:28:18] Production.INFO: count ==314 [2025-01-16 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:28:05 - End Time 2025-01-16 08:28:05 [2025-01-16 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259734', 'tblTempUsageDetail_20' ) start [2025-01-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259734', 'tblTempUsageDetail_20' ) end [2025-01-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259734', 'tblTempVendorCDR_20' ) start [2025-01-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259734', 'tblTempVendorCDR_20' ) end [2025-01-16 08:28:18] Production.INFO: ProcessCDR(1,14259734,1,1,2) [2025-01-16 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259734', 'tblTempUsageDetail_20' ) start [2025-01-16 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259734', 'tblTempUsageDetail_20' ) end [2025-01-16 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:28:22] Production.INFO: ==16132== Releasing lock... [2025-01-16 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:28:22] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:29:05 [end_date_ymd] => 2025-01-16 08:29:05 [RateCDR] => 1 ) [2025-01-16 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:29:05' and `end` < '2025-01-16 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:29:18] Production.INFO: count ==314 [2025-01-16 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:29:05 - End Time 2025-01-16 08:29:05 [2025-01-16 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259739', 'tblTempUsageDetail_20' ) start [2025-01-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259739', 'tblTempUsageDetail_20' ) end [2025-01-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259739', 'tblTempVendorCDR_20' ) start [2025-01-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259739', 'tblTempVendorCDR_20' ) end [2025-01-16 08:29:18] Production.INFO: ProcessCDR(1,14259739,1,1,2) [2025-01-16 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259739', 'tblTempUsageDetail_20' ) start [2025-01-16 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259739', 'tblTempUsageDetail_20' ) end [2025-01-16 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:29:21] Production.INFO: ==16207== Releasing lock... [2025-01-16 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:29:21] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:30:06 [end_date_ymd] => 2025-01-16 08:30:06 [RateCDR] => 1 ) [2025-01-16 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:30:06' and `end` < '2025-01-16 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:30:18] Production.INFO: count ==327 [2025-01-16 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:30:06 - End Time 2025-01-16 08:30:06 [2025-01-16 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259745', 'tblTempUsageDetail_20' ) start [2025-01-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259745', 'tblTempUsageDetail_20' ) end [2025-01-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259745', 'tblTempVendorCDR_20' ) start [2025-01-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259745', 'tblTempVendorCDR_20' ) end [2025-01-16 08:30:18] Production.INFO: ProcessCDR(1,14259745,1,1,2) [2025-01-16 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259745', 'tblTempUsageDetail_20' ) start [2025-01-16 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259745', 'tblTempUsageDetail_20' ) end [2025-01-16 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:30:22] Production.INFO: ==16280== Releasing lock... [2025-01-16 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-16 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:31:05 [end_date_ymd] => 2025-01-16 08:31:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 05:31:05' and `end` < '2025-01-16 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-01-16 08:31:17] Production.INFO: count ==346 [2025-01-16 08:31:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:31:05 - End Time 2025-01-16 08:31:05 [2025-01-16 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259750', 'tblTempUsageDetail_20' ) start [2025-01-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259750', 'tblTempUsageDetail_20' ) end [2025-01-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259750', 'tblTempVendorCDR_20' ) start [2025-01-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259750', 'tblTempVendorCDR_20' ) end [2025-01-16 08:31:17] Production.INFO: ProcessCDR(1,14259750,1,1,2) [2025-01-16 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259750', 'tblTempUsageDetail_20' ) start [2025-01-16 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259750', 'tblTempUsageDetail_20' ) end [2025-01-16 08:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:31:20] Production.INFO: ==16392== Releasing lock... [2025-01-16 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:31:20] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:32:05 [end_date_ymd] => 2025-01-16 08:32:05 [RateCDR] => 1 ) [2025-01-16 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:32:05' and `end` < '2025-01-16 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:32:18] Production.INFO: count ==346 [2025-01-16 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:32:05 - End Time 2025-01-16 08:32:05 [2025-01-16 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259755', 'tblTempUsageDetail_20' ) start [2025-01-16 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259755', 'tblTempUsageDetail_20' ) end [2025-01-16 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259755', 'tblTempVendorCDR_20' ) start [2025-01-16 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259755', 'tblTempVendorCDR_20' ) end [2025-01-16 08:32:18] Production.INFO: ProcessCDR(1,14259755,1,1,2) [2025-01-16 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259755', 'tblTempUsageDetail_20' ) start [2025-01-16 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259755', 'tblTempUsageDetail_20' ) end [2025-01-16 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:32:22] Production.INFO: ==16461== Releasing lock... [2025-01-16 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:32:22] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:33:06 [end_date_ymd] => 2025-01-16 08:33:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 05:33:06' and `end` < '2025-01-16 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-01-16 08:33:18] Production.INFO: count ==357 [2025-01-16 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:33:06 - End Time 2025-01-16 08:33:06 [2025-01-16 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259760', 'tblTempUsageDetail_20' ) start [2025-01-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259760', 'tblTempUsageDetail_20' ) end [2025-01-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259760', 'tblTempVendorCDR_20' ) start [2025-01-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259760', 'tblTempVendorCDR_20' ) end [2025-01-16 08:33:18] Production.INFO: ProcessCDR(1,14259760,1,1,2) [2025-01-16 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259760', 'tblTempUsageDetail_20' ) start [2025-01-16 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259760', 'tblTempUsageDetail_20' ) end [2025-01-16 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:33:24] Production.INFO: ==16538== Releasing lock... [2025-01-16 08:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:33:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:34:05 [end_date_ymd] => 2025-01-16 08:34:05 [RateCDR] => 1 ) [2025-01-16 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:34:05' and `end` < '2025-01-16 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:34:17] Production.INFO: count ==358 [2025-01-16 08:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:34:05 - End Time 2025-01-16 08:34:05 [2025-01-16 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259765', 'tblTempUsageDetail_20' ) start [2025-01-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259765', 'tblTempUsageDetail_20' ) end [2025-01-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259765', 'tblTempVendorCDR_20' ) start [2025-01-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259765', 'tblTempVendorCDR_20' ) end [2025-01-16 08:34:17] Production.INFO: ProcessCDR(1,14259765,1,1,2) [2025-01-16 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259765', 'tblTempUsageDetail_20' ) start [2025-01-16 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259765', 'tblTempUsageDetail_20' ) end [2025-01-16 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:34:20] Production.INFO: ==16610== Releasing lock... [2025-01-16 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:34:20] Production.INFO: 31 MB #Memory Used# [2025-01-16 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:35:05 [end_date_ymd] => 2025-01-16 08:35:05 [RateCDR] => 1 ) [2025-01-16 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:35:05' and `end` < '2025-01-16 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:35:17] Production.INFO: count ==364 [2025-01-16 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:35:05 - End Time 2025-01-16 08:35:05 [2025-01-16 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259770', 'tblTempUsageDetail_20' ) start [2025-01-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259770', 'tblTempUsageDetail_20' ) end [2025-01-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259770', 'tblTempVendorCDR_20' ) start [2025-01-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259770', 'tblTempVendorCDR_20' ) end [2025-01-16 08:35:17] Production.INFO: ProcessCDR(1,14259770,1,1,2) [2025-01-16 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259770', 'tblTempUsageDetail_20' ) start [2025-01-16 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259770', 'tblTempUsageDetail_20' ) end [2025-01-16 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:35:22] Production.INFO: ==16680== Releasing lock... [2025-01-16 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:36:05 [end_date_ymd] => 2025-01-16 08:36:05 [RateCDR] => 1 ) [2025-01-16 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:36:05' and `end` < '2025-01-16 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:36:17] Production.INFO: count ==369 [2025-01-16 08:36:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:36:05 - End Time 2025-01-16 08:36:05 [2025-01-16 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259775', 'tblTempUsageDetail_20' ) start [2025-01-16 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259775', 'tblTempUsageDetail_20' ) end [2025-01-16 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259775', 'tblTempVendorCDR_20' ) start [2025-01-16 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259775', 'tblTempVendorCDR_20' ) end [2025-01-16 08:36:17] Production.INFO: ProcessCDR(1,14259775,1,1,2) [2025-01-16 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259775', 'tblTempUsageDetail_20' ) start [2025-01-16 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259775', 'tblTempUsageDetail_20' ) end [2025-01-16 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:36:20] Production.INFO: ==16752== Releasing lock... [2025-01-16 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:36:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:37:05 [end_date_ymd] => 2025-01-16 08:37:05 [RateCDR] => 1 ) [2025-01-16 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:37:05' and `end` < '2025-01-16 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:37:17] Production.INFO: count ==395 [2025-01-16 08:37:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:37:05 - End Time 2025-01-16 08:37:05 [2025-01-16 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259780', 'tblTempUsageDetail_20' ) start [2025-01-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259780', 'tblTempUsageDetail_20' ) end [2025-01-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259780', 'tblTempVendorCDR_20' ) start [2025-01-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259780', 'tblTempVendorCDR_20' ) end [2025-01-16 08:37:17] Production.INFO: ProcessCDR(1,14259780,1,1,2) [2025-01-16 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259780', 'tblTempUsageDetail_20' ) start [2025-01-16 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259780', 'tblTempUsageDetail_20' ) end [2025-01-16 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:37:21] Production.INFO: ==16822== Releasing lock... [2025-01-16 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:37:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:38:04 [end_date_ymd] => 2025-01-16 08:38:04 [RateCDR] => 1 ) [2025-01-16 08:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:38:04' and `end` < '2025-01-16 08:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:38:17] Production.INFO: count ==406 [2025-01-16 08:38:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:38:04 - End Time 2025-01-16 08:38:04 [2025-01-16 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259785', 'tblTempUsageDetail_20' ) start [2025-01-16 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259785', 'tblTempUsageDetail_20' ) end [2025-01-16 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259785', 'tblTempVendorCDR_20' ) start [2025-01-16 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259785', 'tblTempVendorCDR_20' ) end [2025-01-16 08:38:17] Production.INFO: ProcessCDR(1,14259785,1,1,2) [2025-01-16 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259785', 'tblTempUsageDetail_20' ) start [2025-01-16 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259785', 'tblTempUsageDetail_20' ) end [2025-01-16 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:38:20] Production.INFO: ==16892== Releasing lock... [2025-01-16 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:38:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:39:05 [end_date_ymd] => 2025-01-16 08:39:05 [RateCDR] => 1 ) [2025-01-16 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:39:05' and `end` < '2025-01-16 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:39:17] Production.INFO: count ==415 [2025-01-16 08:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:39:05 - End Time 2025-01-16 08:39:05 [2025-01-16 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259790', 'tblTempUsageDetail_20' ) start [2025-01-16 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259790', 'tblTempUsageDetail_20' ) end [2025-01-16 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259790', 'tblTempVendorCDR_20' ) start [2025-01-16 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259790', 'tblTempVendorCDR_20' ) end [2025-01-16 08:39:18] Production.INFO: ProcessCDR(1,14259790,1,1,2) [2025-01-16 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259790', 'tblTempUsageDetail_20' ) start [2025-01-16 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259790', 'tblTempUsageDetail_20' ) end [2025-01-16 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:39:22] Production.INFO: ==16966== Releasing lock... [2025-01-16 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:40:06 [end_date_ymd] => 2025-01-16 08:40:06 [RateCDR] => 1 ) [2025-01-16 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:40:06' and `end` < '2025-01-16 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-01-16 08:40:18] Production.INFO: count ==440 [2025-01-16 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:40:06 - End Time 2025-01-16 08:40:06 [2025-01-16 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259796', 'tblTempUsageDetail_20' ) start [2025-01-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259796', 'tblTempUsageDetail_20' ) end [2025-01-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259796', 'tblTempVendorCDR_20' ) start [2025-01-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259796', 'tblTempVendorCDR_20' ) end [2025-01-16 08:40:18] Production.INFO: ProcessCDR(1,14259796,1,1,2) [2025-01-16 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259796', 'tblTempUsageDetail_20' ) start [2025-01-16 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259796', 'tblTempUsageDetail_20' ) end [2025-01-16 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:40:22] Production.INFO: ==17038== Releasing lock... [2025-01-16 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:40:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:41:05 [end_date_ymd] => 2025-01-16 08:41:05 [RateCDR] => 1 ) [2025-01-16 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:41:05' and `end` < '2025-01-16 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:41:17] Production.INFO: count ==471 [2025-01-16 08:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:41:05 - End Time 2025-01-16 08:41:05 [2025-01-16 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259801', 'tblTempUsageDetail_20' ) start [2025-01-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259801', 'tblTempUsageDetail_20' ) end [2025-01-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259801', 'tblTempVendorCDR_20' ) start [2025-01-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259801', 'tblTempVendorCDR_20' ) end [2025-01-16 08:41:17] Production.INFO: ProcessCDR(1,14259801,1,1,2) [2025-01-16 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259801', 'tblTempUsageDetail_20' ) start [2025-01-16 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259801', 'tblTempUsageDetail_20' ) end [2025-01-16 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:41:20] Production.INFO: ==17111== Releasing lock... [2025-01-16 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:41:20] Production.INFO: 32 MB #Memory Used# [2025-01-16 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:42:05 [end_date_ymd] => 2025-01-16 08:42:05 [RateCDR] => 1 ) [2025-01-16 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:42:05' and `end` < '2025-01-16 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:42:17] Production.INFO: count ==488 [2025-01-16 08:42:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:42:05 - End Time 2025-01-16 08:42:05 [2025-01-16 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259805', 'tblTempUsageDetail_20' ) start [2025-01-16 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259805', 'tblTempUsageDetail_20' ) end [2025-01-16 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259805', 'tblTempVendorCDR_20' ) start [2025-01-16 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259805', 'tblTempVendorCDR_20' ) end [2025-01-16 08:42:17] Production.INFO: ProcessCDR(1,14259805,1,1,2) [2025-01-16 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259805', 'tblTempUsageDetail_20' ) start [2025-01-16 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259805', 'tblTempUsageDetail_20' ) end [2025-01-16 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:42:22] Production.INFO: ==17182== Releasing lock... [2025-01-16 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:43:05 [end_date_ymd] => 2025-01-16 08:43:05 [RateCDR] => 1 ) [2025-01-16 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:43:05' and `end` < '2025-01-16 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:43:17] Production.INFO: count ==489 [2025-01-16 08:43:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:43:05 - End Time 2025-01-16 08:43:05 [2025-01-16 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259811', 'tblTempUsageDetail_20' ) start [2025-01-16 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259811', 'tblTempUsageDetail_20' ) end [2025-01-16 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259811', 'tblTempVendorCDR_20' ) start [2025-01-16 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259811', 'tblTempVendorCDR_20' ) end [2025-01-16 08:43:17] Production.INFO: ProcessCDR(1,14259811,1,1,2) [2025-01-16 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259811', 'tblTempUsageDetail_20' ) start [2025-01-16 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259811', 'tblTempUsageDetail_20' ) end [2025-01-16 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:43:22] Production.INFO: ==17252== Releasing lock... [2025-01-16 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:44:05 [end_date_ymd] => 2025-01-16 08:44:05 [RateCDR] => 1 ) [2025-01-16 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:44:05' and `end` < '2025-01-16 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:44:18] Production.INFO: count ==498 [2025-01-16 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:44:05 - End Time 2025-01-16 08:44:05 [2025-01-16 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259816', 'tblTempUsageDetail_20' ) start [2025-01-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259816', 'tblTempUsageDetail_20' ) end [2025-01-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259816', 'tblTempVendorCDR_20' ) start [2025-01-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259816', 'tblTempVendorCDR_20' ) end [2025-01-16 08:44:18] Production.INFO: ProcessCDR(1,14259816,1,1,2) [2025-01-16 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259816', 'tblTempUsageDetail_20' ) start [2025-01-16 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259816', 'tblTempUsageDetail_20' ) end [2025-01-16 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:44:21] Production.INFO: ==17325== Releasing lock... [2025-01-16 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:44:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:45:05 [end_date_ymd] => 2025-01-16 08:45:05 [RateCDR] => 1 ) [2025-01-16 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:45:05' and `end` < '2025-01-16 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:45:17] Production.INFO: count ==503 [2025-01-16 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:45:05 - End Time 2025-01-16 08:45:05 [2025-01-16 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259821', 'tblTempUsageDetail_20' ) start [2025-01-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259821', 'tblTempUsageDetail_20' ) end [2025-01-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259821', 'tblTempVendorCDR_20' ) start [2025-01-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259821', 'tblTempVendorCDR_20' ) end [2025-01-16 08:45:17] Production.INFO: ProcessCDR(1,14259821,1,1,2) [2025-01-16 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259821', 'tblTempUsageDetail_20' ) start [2025-01-16 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259821', 'tblTempUsageDetail_20' ) end [2025-01-16 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:45:20] Production.INFO: ==17394== Releasing lock... [2025-01-16 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:45:20] Production.INFO: 32 MB #Memory Used# [2025-01-16 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:46:05 [end_date_ymd] => 2025-01-16 08:46:05 [RateCDR] => 1 ) [2025-01-16 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:46:05' and `end` < '2025-01-16 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:46:17] Production.INFO: count ==517 [2025-01-16 08:46:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:46:05 - End Time 2025-01-16 08:46:05 [2025-01-16 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259826', 'tblTempUsageDetail_20' ) start [2025-01-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259826', 'tblTempUsageDetail_20' ) end [2025-01-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259826', 'tblTempVendorCDR_20' ) start [2025-01-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259826', 'tblTempVendorCDR_20' ) end [2025-01-16 08:46:17] Production.INFO: ProcessCDR(1,14259826,1,1,2) [2025-01-16 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259826', 'tblTempUsageDetail_20' ) start [2025-01-16 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259826', 'tblTempUsageDetail_20' ) end [2025-01-16 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:46:22] Production.INFO: ==17504== Releasing lock... [2025-01-16 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:47:04 [end_date_ymd] => 2025-01-16 08:47:04 [RateCDR] => 1 ) [2025-01-16 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:47:04' and `end` < '2025-01-16 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:47:17] Production.INFO: count ==520 [2025-01-16 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:47:04 - End Time 2025-01-16 08:47:04 [2025-01-16 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259831', 'tblTempUsageDetail_20' ) start [2025-01-16 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259831', 'tblTempUsageDetail_20' ) end [2025-01-16 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259831', 'tblTempVendorCDR_20' ) start [2025-01-16 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259831', 'tblTempVendorCDR_20' ) end [2025-01-16 08:47:17] Production.INFO: ProcessCDR(1,14259831,1,1,2) [2025-01-16 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259831', 'tblTempUsageDetail_20' ) start [2025-01-16 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259831', 'tblTempUsageDetail_20' ) end [2025-01-16 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:47:21] Production.INFO: ==17579== Releasing lock... [2025-01-16 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:47:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:48:05 [end_date_ymd] => 2025-01-16 08:48:05 [RateCDR] => 1 ) [2025-01-16 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:48:05' and `end` < '2025-01-16 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:48:18] Production.INFO: count ==526 [2025-01-16 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:48:05 - End Time 2025-01-16 08:48:05 [2025-01-16 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259836', 'tblTempUsageDetail_20' ) start [2025-01-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259836', 'tblTempUsageDetail_20' ) end [2025-01-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259836', 'tblTempVendorCDR_20' ) start [2025-01-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259836', 'tblTempVendorCDR_20' ) end [2025-01-16 08:48:18] Production.INFO: ProcessCDR(1,14259836,1,1,2) [2025-01-16 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259836', 'tblTempUsageDetail_20' ) start [2025-01-16 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259836', 'tblTempUsageDetail_20' ) end [2025-01-16 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:48:21] Production.INFO: ==17657== Releasing lock... [2025-01-16 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:49:04 [end_date_ymd] => 2025-01-16 08:49:04 [RateCDR] => 1 ) [2025-01-16 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:49:04' and `end` < '2025-01-16 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:49:16] Production.INFO: count ==540 [2025-01-16 08:49:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:49:04 - End Time 2025-01-16 08:49:04 [2025-01-16 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259841', 'tblTempUsageDetail_20' ) start [2025-01-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259841', 'tblTempUsageDetail_20' ) end [2025-01-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259841', 'tblTempVendorCDR_20' ) start [2025-01-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259841', 'tblTempVendorCDR_20' ) end [2025-01-16 08:49:17] Production.INFO: ProcessCDR(1,14259841,1,1,2) [2025-01-16 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259841', 'tblTempUsageDetail_20' ) start [2025-01-16 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259841', 'tblTempUsageDetail_20' ) end [2025-01-16 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:49:21] Production.INFO: ==17728== Releasing lock... [2025-01-16 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:49:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:50:06 [end_date_ymd] => 2025-01-16 08:50:06 [RateCDR] => 1 ) [2025-01-16 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:50:06' and `end` < '2025-01-16 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:50:18] Production.INFO: count ==541 [2025-01-16 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:50:06 - End Time 2025-01-16 08:50:06 [2025-01-16 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259847', 'tblTempUsageDetail_20' ) start [2025-01-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259847', 'tblTempUsageDetail_20' ) end [2025-01-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259847', 'tblTempVendorCDR_20' ) start [2025-01-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259847', 'tblTempVendorCDR_20' ) end [2025-01-16 08:50:18] Production.INFO: ProcessCDR(1,14259847,1,1,2) [2025-01-16 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259847', 'tblTempUsageDetail_20' ) start [2025-01-16 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259847', 'tblTempUsageDetail_20' ) end [2025-01-16 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:50:21] Production.INFO: ==17802== Releasing lock... [2025-01-16 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:51:05 [end_date_ymd] => 2025-01-16 08:51:05 [RateCDR] => 1 ) [2025-01-16 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:51:05' and `end` < '2025-01-16 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:51:18] Production.INFO: count ==582 [2025-01-16 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:51:05 - End Time 2025-01-16 08:51:05 [2025-01-16 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259852', 'tblTempUsageDetail_20' ) start [2025-01-16 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259852', 'tblTempUsageDetail_20' ) end [2025-01-16 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259852', 'tblTempVendorCDR_20' ) start [2025-01-16 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259852', 'tblTempVendorCDR_20' ) end [2025-01-16 08:51:18] Production.INFO: ProcessCDR(1,14259852,1,1,2) [2025-01-16 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259852', 'tblTempUsageDetail_20' ) start [2025-01-16 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259852', 'tblTempUsageDetail_20' ) end [2025-01-16 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:51:21] Production.INFO: ==17874== Releasing lock... [2025-01-16 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:52:05 [end_date_ymd] => 2025-01-16 08:52:05 [RateCDR] => 1 ) [2025-01-16 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:52:05' and `end` < '2025-01-16 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:52:17] Production.INFO: count ==582 [2025-01-16 08:52:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:52:05 - End Time 2025-01-16 08:52:05 [2025-01-16 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259857', 'tblTempUsageDetail_20' ) start [2025-01-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259857', 'tblTempUsageDetail_20' ) end [2025-01-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259857', 'tblTempVendorCDR_20' ) start [2025-01-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259857', 'tblTempVendorCDR_20' ) end [2025-01-16 08:52:17] Production.INFO: ProcessCDR(1,14259857,1,1,2) [2025-01-16 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259857', 'tblTempUsageDetail_20' ) start [2025-01-16 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259857', 'tblTempUsageDetail_20' ) end [2025-01-16 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:52:20] Production.INFO: ==17945== Releasing lock... [2025-01-16 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:52:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:53:05 [end_date_ymd] => 2025-01-16 08:53:05 [RateCDR] => 1 ) [2025-01-16 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:53:05' and `end` < '2025-01-16 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:53:17] Production.INFO: count ==584 [2025-01-16 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:53:05 - End Time 2025-01-16 08:53:05 [2025-01-16 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259862', 'tblTempUsageDetail_20' ) start [2025-01-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259862', 'tblTempUsageDetail_20' ) end [2025-01-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259862', 'tblTempVendorCDR_20' ) start [2025-01-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259862', 'tblTempVendorCDR_20' ) end [2025-01-16 08:53:18] Production.INFO: ProcessCDR(1,14259862,1,1,2) [2025-01-16 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259862', 'tblTempUsageDetail_20' ) start [2025-01-16 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259862', 'tblTempUsageDetail_20' ) end [2025-01-16 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:53:22] Production.INFO: ==18017== Releasing lock... [2025-01-16 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:53:22] Production.INFO: 33 MB #Memory Used# [2025-01-16 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:54:04 [end_date_ymd] => 2025-01-16 08:54:04 [RateCDR] => 1 ) [2025-01-16 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:54:04' and `end` < '2025-01-16 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:54:17] Production.INFO: count ==586 [2025-01-16 08:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:54:04 - End Time 2025-01-16 08:54:04 [2025-01-16 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259867', 'tblTempUsageDetail_20' ) start [2025-01-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259867', 'tblTempUsageDetail_20' ) end [2025-01-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259867', 'tblTempVendorCDR_20' ) start [2025-01-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259867', 'tblTempVendorCDR_20' ) end [2025-01-16 08:54:17] Production.INFO: ProcessCDR(1,14259867,1,1,2) [2025-01-16 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259867', 'tblTempUsageDetail_20' ) start [2025-01-16 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259867', 'tblTempUsageDetail_20' ) end [2025-01-16 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:54:22] Production.INFO: ==18087== Releasing lock... [2025-01-16 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:55:05 [end_date_ymd] => 2025-01-16 08:55:05 [RateCDR] => 1 ) [2025-01-16 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:55:05' and `end` < '2025-01-16 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:55:17] Production.INFO: count ==586 [2025-01-16 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:55:05 - End Time 2025-01-16 08:55:05 [2025-01-16 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259872', 'tblTempUsageDetail_20' ) start [2025-01-16 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259872', 'tblTempUsageDetail_20' ) end [2025-01-16 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259872', 'tblTempVendorCDR_20' ) start [2025-01-16 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259872', 'tblTempVendorCDR_20' ) end [2025-01-16 08:55:17] Production.INFO: ProcessCDR(1,14259872,1,1,2) [2025-01-16 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259872', 'tblTempUsageDetail_20' ) start [2025-01-16 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259872', 'tblTempUsageDetail_20' ) end [2025-01-16 08:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:55:20] Production.INFO: ==18157== Releasing lock... [2025-01-16 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:55:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:56:04 [end_date_ymd] => 2025-01-16 08:56:04 [RateCDR] => 1 ) [2025-01-16 08:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:56:04' and `end` < '2025-01-16 08:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:56:17] Production.INFO: count ==592 [2025-01-16 08:56:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:56:04 - End Time 2025-01-16 08:56:04 [2025-01-16 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259877', 'tblTempUsageDetail_20' ) start [2025-01-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259877', 'tblTempUsageDetail_20' ) end [2025-01-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259877', 'tblTempVendorCDR_20' ) start [2025-01-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259877', 'tblTempVendorCDR_20' ) end [2025-01-16 08:56:17] Production.INFO: ProcessCDR(1,14259877,1,1,2) [2025-01-16 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259877', 'tblTempUsageDetail_20' ) start [2025-01-16 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259877', 'tblTempUsageDetail_20' ) end [2025-01-16 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:56:22] Production.INFO: ==18227== Releasing lock... [2025-01-16 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:56:22] Production.INFO: 33 MB #Memory Used# [2025-01-16 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:57:04 [end_date_ymd] => 2025-01-16 08:57:04 [RateCDR] => 1 ) [2025-01-16 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:57:04' and `end` < '2025-01-16 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:57:17] Production.INFO: count ==605 [2025-01-16 08:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 05:57:04 - End Time 2025-01-16 08:57:04 [2025-01-16 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259882', 'tblTempUsageDetail_20' ) start [2025-01-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259882', 'tblTempUsageDetail_20' ) end [2025-01-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259882', 'tblTempVendorCDR_20' ) start [2025-01-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259882', 'tblTempVendorCDR_20' ) end [2025-01-16 08:57:17] Production.INFO: ProcessCDR(1,14259882,1,1,2) [2025-01-16 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259882', 'tblTempUsageDetail_20' ) start [2025-01-16 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259882', 'tblTempUsageDetail_20' ) end [2025-01-16 08:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:57:20] Production.INFO: ==18301== Releasing lock... [2025-01-16 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:57:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:58:05 [end_date_ymd] => 2025-01-16 08:58:05 [RateCDR] => 1 ) [2025-01-16 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:58:05' and `end` < '2025-01-16 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 08:58:18] Production.INFO: count ==606 [2025-01-16 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:58:05 - End Time 2025-01-16 08:58:05 [2025-01-16 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259887', 'tblTempUsageDetail_20' ) start [2025-01-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259887', 'tblTempUsageDetail_20' ) end [2025-01-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259887', 'tblTempVendorCDR_20' ) start [2025-01-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259887', 'tblTempVendorCDR_20' ) end [2025-01-16 08:58:18] Production.INFO: ProcessCDR(1,14259887,1,1,2) [2025-01-16 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259887', 'tblTempUsageDetail_20' ) start [2025-01-16 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259887', 'tblTempUsageDetail_20' ) end [2025-01-16 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:58:22] Production.INFO: ==18372== Releasing lock... [2025-01-16 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 05:59:05 [end_date_ymd] => 2025-01-16 08:59:05 [RateCDR] => 1 ) [2025-01-16 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 05:59:05' and `end` < '2025-01-16 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-01-16 08:59:18] Production.INFO: count ==606 [2025-01-16 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 05:59:05 - End Time 2025-01-16 08:59:05 [2025-01-16 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259892', 'tblTempUsageDetail_20' ) start [2025-01-16 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259892', 'tblTempUsageDetail_20' ) end [2025-01-16 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259892', 'tblTempVendorCDR_20' ) start [2025-01-16 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259892', 'tblTempVendorCDR_20' ) end [2025-01-16 08:59:18] Production.INFO: ProcessCDR(1,14259892,1,1,2) [2025-01-16 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259892', 'tblTempUsageDetail_20' ) start [2025-01-16 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259892', 'tblTempUsageDetail_20' ) end [2025-01-16 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 08:59:21] Production.INFO: ==18455== Releasing lock... [2025-01-16 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 08:59:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:00:06 [end_date_ymd] => 2025-01-16 09:00:06 [RateCDR] => 1 ) [2025-01-16 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:00:06' and `end` < '2025-01-16 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:00:19] Production.INFO: count ==619 [2025-01-16 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:00:06 - End Time 2025-01-16 09:00:06 [2025-01-16 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259898', 'tblTempUsageDetail_20' ) start [2025-01-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259898', 'tblTempUsageDetail_20' ) end [2025-01-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259898', 'tblTempVendorCDR_20' ) start [2025-01-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259898', 'tblTempVendorCDR_20' ) end [2025-01-16 09:00:19] Production.INFO: ProcessCDR(1,14259898,1,1,2) [2025-01-16 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259898', 'tblTempUsageDetail_20' ) start [2025-01-16 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259898', 'tblTempUsageDetail_20' ) end [2025-01-16 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:00:24] Production.INFO: ==18545== Releasing lock... [2025-01-16 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:00:24] Production.INFO: 33 MB #Memory Used# [2025-01-16 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:01:05 [end_date_ymd] => 2025-01-16 09:01:05 [RateCDR] => 1 ) [2025-01-16 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:01:05' and `end` < '2025-01-16 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:01:17] Production.INFO: count ==658 [2025-01-16 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:01:05 - End Time 2025-01-16 09:01:05 [2025-01-16 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259903', 'tblTempUsageDetail_20' ) start [2025-01-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259903', 'tblTempUsageDetail_20' ) end [2025-01-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259903', 'tblTempVendorCDR_20' ) start [2025-01-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259903', 'tblTempVendorCDR_20' ) end [2025-01-16 09:01:18] Production.INFO: ProcessCDR(1,14259903,1,1,2) [2025-01-16 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259903', 'tblTempUsageDetail_20' ) start [2025-01-16 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259903', 'tblTempUsageDetail_20' ) end [2025-01-16 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:01:22] Production.INFO: ==18643== Releasing lock... [2025-01-16 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:01:22] Production.INFO: 33 MB #Memory Used# [2025-01-16 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:02:05 [end_date_ymd] => 2025-01-16 09:02:05 [RateCDR] => 1 ) [2025-01-16 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:02:05' and `end` < '2025-01-16 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:02:19] Production.INFO: count ==693 [2025-01-16 09:02:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:02:05 - End Time 2025-01-16 09:02:05 [2025-01-16 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259908', 'tblTempUsageDetail_20' ) start [2025-01-16 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259908', 'tblTempUsageDetail_20' ) end [2025-01-16 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259908', 'tblTempVendorCDR_20' ) start [2025-01-16 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259908', 'tblTempVendorCDR_20' ) end [2025-01-16 09:02:19] Production.INFO: ProcessCDR(1,14259908,1,1,2) [2025-01-16 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259908', 'tblTempUsageDetail_20' ) start [2025-01-16 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259908', 'tblTempUsageDetail_20' ) end [2025-01-16 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:02:24] Production.INFO: ==18785== Releasing lock... [2025-01-16 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:02:24] Production.INFO: 34 MB #Memory Used# [2025-01-16 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:03:05 [end_date_ymd] => 2025-01-16 09:03:05 [RateCDR] => 1 ) [2025-01-16 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:03:05' and `end` < '2025-01-16 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:03:17] Production.INFO: count ==705 [2025-01-16 09:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 06:03:05 - End Time 2025-01-16 09:03:05 [2025-01-16 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259913', 'tblTempUsageDetail_20' ) start [2025-01-16 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259913', 'tblTempUsageDetail_20' ) end [2025-01-16 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259913', 'tblTempVendorCDR_20' ) start [2025-01-16 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259913', 'tblTempVendorCDR_20' ) end [2025-01-16 09:03:17] Production.INFO: ProcessCDR(1,14259913,1,1,2) [2025-01-16 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259913', 'tblTempUsageDetail_20' ) start [2025-01-16 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259913', 'tblTempUsageDetail_20' ) end [2025-01-16 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:03:22] Production.INFO: ==18859== Releasing lock... [2025-01-16 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:04:05 [end_date_ymd] => 2025-01-16 09:04:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 06:04:05' and `end` < '2025-01-16 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-01-16 09:04:17] Production.INFO: count ==717 [2025-01-16 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:04:05 - End Time 2025-01-16 09:04:05 [2025-01-16 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259918', 'tblTempUsageDetail_20' ) start [2025-01-16 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259918', 'tblTempUsageDetail_20' ) end [2025-01-16 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259918', 'tblTempVendorCDR_20' ) start [2025-01-16 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259918', 'tblTempVendorCDR_20' ) end [2025-01-16 09:04:18] Production.INFO: ProcessCDR(1,14259918,1,1,2) [2025-01-16 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259918', 'tblTempUsageDetail_20' ) start [2025-01-16 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259918', 'tblTempUsageDetail_20' ) end [2025-01-16 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:04:21] Production.INFO: ==18958== Releasing lock... [2025-01-16 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:05:05 [end_date_ymd] => 2025-01-16 09:05:05 [RateCDR] => 1 ) [2025-01-16 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:05:05' and `end` < '2025-01-16 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:05:17] Production.INFO: count ==742 [2025-01-16 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:05:05 - End Time 2025-01-16 09:05:05 [2025-01-16 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259923', 'tblTempUsageDetail_20' ) start [2025-01-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259923', 'tblTempUsageDetail_20' ) end [2025-01-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259923', 'tblTempVendorCDR_20' ) start [2025-01-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259923', 'tblTempVendorCDR_20' ) end [2025-01-16 09:05:18] Production.INFO: ProcessCDR(1,14259923,1,1,2) [2025-01-16 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259923', 'tblTempUsageDetail_20' ) start [2025-01-16 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259923', 'tblTempUsageDetail_20' ) end [2025-01-16 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:05:23] Production.INFO: ==19036== Releasing lock... [2025-01-16 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-16 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:06:05 [end_date_ymd] => 2025-01-16 09:06:05 [RateCDR] => 1 ) [2025-01-16 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:06:05' and `end` < '2025-01-16 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-01-16 09:06:18] Production.INFO: count ==769 [2025-01-16 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:06:05 - End Time 2025-01-16 09:06:05 [2025-01-16 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259928', 'tblTempUsageDetail_20' ) start [2025-01-16 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259928', 'tblTempUsageDetail_20' ) end [2025-01-16 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259928', 'tblTempVendorCDR_20' ) start [2025-01-16 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259928', 'tblTempVendorCDR_20' ) end [2025-01-16 09:06:18] Production.INFO: ProcessCDR(1,14259928,1,1,2) [2025-01-16 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259928', 'tblTempUsageDetail_20' ) start [2025-01-16 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259928', 'tblTempUsageDetail_20' ) end [2025-01-16 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:06:23] Production.INFO: ==19133== Releasing lock... [2025-01-16 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:06:23] Production.INFO: 34 MB #Memory Used# [2025-01-16 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:07:04 [end_date_ymd] => 2025-01-16 09:07:04 [RateCDR] => 1 ) [2025-01-16 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:07:04' and `end` < '2025-01-16 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:07:17] Production.INFO: count ==777 [2025-01-16 09:07:17] Production.ERROR: pbx CDR StartTime 2025-01-16 06:07:04 - End Time 2025-01-16 09:07:04 [2025-01-16 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259933', 'tblTempUsageDetail_20' ) start [2025-01-16 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259933', 'tblTempUsageDetail_20' ) end [2025-01-16 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259933', 'tblTempVendorCDR_20' ) start [2025-01-16 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259933', 'tblTempVendorCDR_20' ) end [2025-01-16 09:07:17] Production.INFO: ProcessCDR(1,14259933,1,1,2) [2025-01-16 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259933', 'tblTempUsageDetail_20' ) start [2025-01-16 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259933', 'tblTempUsageDetail_20' ) end [2025-01-16 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:07:22] Production.INFO: ==19207== Releasing lock... [2025-01-16 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-16 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:08:05 [end_date_ymd] => 2025-01-16 09:08:05 [RateCDR] => 1 ) [2025-01-16 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:08:05' and `end` < '2025-01-16 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:08:18] Production.INFO: count ==803 [2025-01-16 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:08:05 - End Time 2025-01-16 09:08:05 [2025-01-16 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259938', 'tblTempUsageDetail_20' ) start [2025-01-16 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259938', 'tblTempUsageDetail_20' ) end [2025-01-16 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259938', 'tblTempVendorCDR_20' ) start [2025-01-16 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259938', 'tblTempVendorCDR_20' ) end [2025-01-16 09:08:19] Production.INFO: ProcessCDR(1,14259938,1,1,2) [2025-01-16 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259938', 'tblTempUsageDetail_20' ) start [2025-01-16 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259938', 'tblTempUsageDetail_20' ) end [2025-01-16 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:08:24] Production.INFO: ==19303== Releasing lock... [2025-01-16 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:08:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-16 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:09:04 [end_date_ymd] => 2025-01-16 09:09:04 [RateCDR] => 1 ) [2025-01-16 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:09:04' and `end` < '2025-01-16 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:09:17] Production.INFO: count ==809 [2025-01-16 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 06:09:04 - End Time 2025-01-16 09:09:04 [2025-01-16 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259943', 'tblTempUsageDetail_20' ) start [2025-01-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259943', 'tblTempUsageDetail_20' ) end [2025-01-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259943', 'tblTempVendorCDR_20' ) start [2025-01-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259943', 'tblTempVendorCDR_20' ) end [2025-01-16 09:09:17] Production.INFO: ProcessCDR(1,14259943,1,1,2) [2025-01-16 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259943', 'tblTempUsageDetail_20' ) start [2025-01-16 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259943', 'tblTempUsageDetail_20' ) end [2025-01-16 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:09:22] Production.INFO: ==19372== Releasing lock... [2025-01-16 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-16 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:10:06 [end_date_ymd] => 2025-01-16 09:10:06 [RateCDR] => 1 ) [2025-01-16 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:10:06' and `end` < '2025-01-16 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:10:18] Production.INFO: count ==850 [2025-01-16 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:10:06 - End Time 2025-01-16 09:10:06 [2025-01-16 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259949', 'tblTempUsageDetail_20' ) start [2025-01-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259949', 'tblTempUsageDetail_20' ) end [2025-01-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259949', 'tblTempVendorCDR_20' ) start [2025-01-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259949', 'tblTempVendorCDR_20' ) end [2025-01-16 09:10:19] Production.INFO: ProcessCDR(1,14259949,1,1,2) [2025-01-16 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259949', 'tblTempUsageDetail_20' ) start [2025-01-16 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259949', 'tblTempUsageDetail_20' ) end [2025-01-16 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:10:24] Production.INFO: ==19474== Releasing lock... [2025-01-16 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:10:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-16 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:11:05 [end_date_ymd] => 2025-01-16 09:11:05 [RateCDR] => 1 ) [2025-01-16 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:11:05' and `end` < '2025-01-16 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:11:18] Production.INFO: count ==929 [2025-01-16 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:11:05 - End Time 2025-01-16 09:11:05 [2025-01-16 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259954', 'tblTempUsageDetail_20' ) start [2025-01-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259954', 'tblTempUsageDetail_20' ) end [2025-01-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259954', 'tblTempVendorCDR_20' ) start [2025-01-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259954', 'tblTempVendorCDR_20' ) end [2025-01-16 09:11:18] Production.INFO: ProcessCDR(1,14259954,1,1,2) [2025-01-16 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259954', 'tblTempUsageDetail_20' ) start [2025-01-16 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259954', 'tblTempUsageDetail_20' ) end [2025-01-16 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:11:24] Production.INFO: ==19549== Releasing lock... [2025-01-16 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:11:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-16 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:12:05 [end_date_ymd] => 2025-01-16 09:12:05 [RateCDR] => 1 ) [2025-01-16 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:12:05' and `end` < '2025-01-16 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:12:18] Production.INFO: count ==943 [2025-01-16 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:12:05 - End Time 2025-01-16 09:12:05 [2025-01-16 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259959', 'tblTempUsageDetail_20' ) start [2025-01-16 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259959', 'tblTempUsageDetail_20' ) end [2025-01-16 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259959', 'tblTempVendorCDR_20' ) start [2025-01-16 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259959', 'tblTempVendorCDR_20' ) end [2025-01-16 09:12:19] Production.INFO: ProcessCDR(1,14259959,1,1,2) [2025-01-16 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259959', 'tblTempUsageDetail_20' ) start [2025-01-16 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259959', 'tblTempUsageDetail_20' ) end [2025-01-16 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:12:24] Production.INFO: ==19649== Releasing lock... [2025-01-16 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:12:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:13:05 [end_date_ymd] => 2025-01-16 09:13:05 [RateCDR] => 1 ) [2025-01-16 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:13:05' and `end` < '2025-01-16 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:13:18] Production.INFO: count ==969 [2025-01-16 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:13:05 - End Time 2025-01-16 09:13:05 [2025-01-16 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259964', 'tblTempUsageDetail_20' ) start [2025-01-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259964', 'tblTempUsageDetail_20' ) end [2025-01-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259964', 'tblTempVendorCDR_20' ) start [2025-01-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259964', 'tblTempVendorCDR_20' ) end [2025-01-16 09:13:18] Production.INFO: ProcessCDR(1,14259964,1,1,2) [2025-01-16 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259964', 'tblTempUsageDetail_20' ) start [2025-01-16 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259964', 'tblTempUsageDetail_20' ) end [2025-01-16 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:13:23] Production.INFO: ==19721== Releasing lock... [2025-01-16 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:13:23] Production.INFO: 36 MB #Memory Used# [2025-01-16 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:14:05 [end_date_ymd] => 2025-01-16 09:14:05 [RateCDR] => 1 ) [2025-01-16 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:14:05' and `end` < '2025-01-16 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:14:17] Production.INFO: count ==974 [2025-01-16 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:14:05 - End Time 2025-01-16 09:14:05 [2025-01-16 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259969', 'tblTempUsageDetail_20' ) start [2025-01-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259969', 'tblTempUsageDetail_20' ) end [2025-01-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259969', 'tblTempVendorCDR_20' ) start [2025-01-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259969', 'tblTempVendorCDR_20' ) end [2025-01-16 09:14:18] Production.INFO: ProcessCDR(1,14259969,1,1,2) [2025-01-16 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259969', 'tblTempUsageDetail_20' ) start [2025-01-16 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259969', 'tblTempUsageDetail_20' ) end [2025-01-16 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:14:23] Production.INFO: ==19812== Releasing lock... [2025-01-16 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:14:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-16 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:15:05 [end_date_ymd] => 2025-01-16 09:15:05 [RateCDR] => 1 ) [2025-01-16 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:15:05' and `end` < '2025-01-16 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:15:18] Production.INFO: count ==1001 [2025-01-16 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:15:05 - End Time 2025-01-16 09:15:05 [2025-01-16 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259974', 'tblTempUsageDetail_20' ) start [2025-01-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259974', 'tblTempUsageDetail_20' ) end [2025-01-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259974', 'tblTempVendorCDR_20' ) start [2025-01-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259974', 'tblTempVendorCDR_20' ) end [2025-01-16 09:15:18] Production.INFO: ProcessCDR(1,14259974,1,1,2) [2025-01-16 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259974', 'tblTempUsageDetail_20' ) start [2025-01-16 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259974', 'tblTempUsageDetail_20' ) end [2025-01-16 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:15:23] Production.INFO: ==19888== Releasing lock... [2025-01-16 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:15:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:16:05 [end_date_ymd] => 2025-01-16 09:16:05 [RateCDR] => 1 ) [2025-01-16 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:16:05' and `end` < '2025-01-16 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:16:18] Production.INFO: count ==1023 [2025-01-16 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:16:05 - End Time 2025-01-16 09:16:05 [2025-01-16 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259979', 'tblTempUsageDetail_20' ) start [2025-01-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259979', 'tblTempUsageDetail_20' ) end [2025-01-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259979', 'tblTempVendorCDR_20' ) start [2025-01-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259979', 'tblTempVendorCDR_20' ) end [2025-01-16 09:16:18] Production.INFO: ProcessCDR(1,14259979,1,1,2) [2025-01-16 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259979', 'tblTempUsageDetail_20' ) start [2025-01-16 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259979', 'tblTempUsageDetail_20' ) end [2025-01-16 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:16:23] Production.INFO: ==19978== Releasing lock... [2025-01-16 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:17:05 [end_date_ymd] => 2025-01-16 09:17:05 [RateCDR] => 1 ) [2025-01-16 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:17:05' and `end` < '2025-01-16 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:17:19] Production.INFO: count ==1037 [2025-01-16 09:17:20] Production.ERROR: pbx CDR StartTime 2025-01-16 06:17:05 - End Time 2025-01-16 09:17:05 [2025-01-16 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259984', 'tblTempUsageDetail_20' ) start [2025-01-16 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259984', 'tblTempUsageDetail_20' ) end [2025-01-16 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259984', 'tblTempVendorCDR_20' ) start [2025-01-16 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259984', 'tblTempVendorCDR_20' ) end [2025-01-16 09:17:20] Production.INFO: ProcessCDR(1,14259984,1,1,2) [2025-01-16 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259984', 'tblTempUsageDetail_20' ) start [2025-01-16 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259984', 'tblTempUsageDetail_20' ) end [2025-01-16 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:17:24] Production.INFO: ==20088== Releasing lock... [2025-01-16 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:17:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-16 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:18:04 [end_date_ymd] => 2025-01-16 09:18:04 [RateCDR] => 1 ) [2025-01-16 09:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:18:04' and `end` < '2025-01-16 09:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:18:17] Production.INFO: count ==1046 [2025-01-16 09:18:17] Production.ERROR: pbx CDR StartTime 2025-01-16 06:18:04 - End Time 2025-01-16 09:18:04 [2025-01-16 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259989', 'tblTempUsageDetail_20' ) start [2025-01-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259989', 'tblTempUsageDetail_20' ) end [2025-01-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259989', 'tblTempVendorCDR_20' ) start [2025-01-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259989', 'tblTempVendorCDR_20' ) end [2025-01-16 09:18:17] Production.INFO: ProcessCDR(1,14259989,1,1,2) [2025-01-16 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259989', 'tblTempUsageDetail_20' ) start [2025-01-16 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259989', 'tblTempUsageDetail_20' ) end [2025-01-16 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:18:22] Production.INFO: ==20157== Releasing lock... [2025-01-16 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-16 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:19:05 [end_date_ymd] => 2025-01-16 09:19:05 [RateCDR] => 1 ) [2025-01-16 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:19:05' and `end` < '2025-01-16 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:19:18] Production.INFO: count ==1070 [2025-01-16 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:19:05 - End Time 2025-01-16 09:19:05 [2025-01-16 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259994', 'tblTempUsageDetail_20' ) start [2025-01-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14259994', 'tblTempUsageDetail_20' ) end [2025-01-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259994', 'tblTempVendorCDR_20' ) start [2025-01-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14259994', 'tblTempVendorCDR_20' ) end [2025-01-16 09:19:18] Production.INFO: ProcessCDR(1,14259994,1,1,2) [2025-01-16 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14259994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14259994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14259994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14259994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259994', 'tblTempUsageDetail_20' ) start [2025-01-16 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14259994', 'tblTempUsageDetail_20' ) end [2025-01-16 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:19:23] Production.INFO: ==20229== Releasing lock... [2025-01-16 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:19:23] Production.INFO: 37 MB #Memory Used# [2025-01-16 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:20:05 [end_date_ymd] => 2025-01-16 09:20:05 [RateCDR] => 1 ) [2025-01-16 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:20:05' and `end` < '2025-01-16 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:20:18] Production.INFO: count ==1095 [2025-01-16 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:20:05 - End Time 2025-01-16 09:20:05 [2025-01-16 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260000', 'tblTempUsageDetail_20' ) start [2025-01-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260000', 'tblTempUsageDetail_20' ) end [2025-01-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260000', 'tblTempVendorCDR_20' ) start [2025-01-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260000', 'tblTempVendorCDR_20' ) end [2025-01-16 09:20:19] Production.INFO: ProcessCDR(1,14260000,1,1,2) [2025-01-16 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260000', 'tblTempUsageDetail_20' ) start [2025-01-16 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260000', 'tblTempUsageDetail_20' ) end [2025-01-16 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:20:24] Production.INFO: ==20301== Releasing lock... [2025-01-16 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:20:24] Production.INFO: 37 MB #Memory Used# [2025-01-16 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:21:05 [end_date_ymd] => 2025-01-16 09:21:05 [RateCDR] => 1 ) [2025-01-16 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:21:05' and `end` < '2025-01-16 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:21:17] Production.INFO: count ==1153 [2025-01-16 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:21:05 - End Time 2025-01-16 09:21:05 [2025-01-16 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260005', 'tblTempUsageDetail_20' ) start [2025-01-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260005', 'tblTempUsageDetail_20' ) end [2025-01-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260005', 'tblTempVendorCDR_20' ) start [2025-01-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260005', 'tblTempVendorCDR_20' ) end [2025-01-16 09:21:18] Production.INFO: ProcessCDR(1,14260005,1,1,2) [2025-01-16 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260005', 'tblTempUsageDetail_20' ) start [2025-01-16 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260005', 'tblTempUsageDetail_20' ) end [2025-01-16 09:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:21:21] Production.INFO: ==20373== Releasing lock... [2025-01-16 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:21:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:22:05 [end_date_ymd] => 2025-01-16 09:22:05 [RateCDR] => 1 ) [2025-01-16 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:22:05' and `end` < '2025-01-16 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:22:19] Production.INFO: count ==1183 [2025-01-16 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:22:05 - End Time 2025-01-16 09:22:05 [2025-01-16 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260010', 'tblTempUsageDetail_20' ) start [2025-01-16 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260010', 'tblTempUsageDetail_20' ) end [2025-01-16 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260010', 'tblTempVendorCDR_20' ) start [2025-01-16 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260010', 'tblTempVendorCDR_20' ) end [2025-01-16 09:22:19] Production.INFO: ProcessCDR(1,14260010,1,1,2) [2025-01-16 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260010', 'tblTempUsageDetail_20' ) start [2025-01-16 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260010', 'tblTempUsageDetail_20' ) end [2025-01-16 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:22:24] Production.INFO: ==20443== Releasing lock... [2025-01-16 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:22:24] Production.INFO: 38 MB #Memory Used# [2025-01-16 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:23:05 [end_date_ymd] => 2025-01-16 09:23:05 [RateCDR] => 1 ) [2025-01-16 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:23:05' and `end` < '2025-01-16 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:23:19] Production.INFO: count ==1196 [2025-01-16 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:23:05 - End Time 2025-01-16 09:23:05 [2025-01-16 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260015', 'tblTempUsageDetail_20' ) start [2025-01-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260015', 'tblTempUsageDetail_20' ) end [2025-01-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260015', 'tblTempVendorCDR_20' ) start [2025-01-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260015', 'tblTempVendorCDR_20' ) end [2025-01-16 09:23:19] Production.INFO: ProcessCDR(1,14260015,1,1,2) [2025-01-16 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260015', 'tblTempUsageDetail_20' ) start [2025-01-16 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260015', 'tblTempUsageDetail_20' ) end [2025-01-16 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:23:25] Production.INFO: ==20516== Releasing lock... [2025-01-16 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:23:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:24:05 [end_date_ymd] => 2025-01-16 09:24:05 [RateCDR] => 1 ) [2025-01-16 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:24:05' and `end` < '2025-01-16 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:24:25] Production.INFO: count ==1231 [2025-01-16 09:24:26] Production.ERROR: pbx CDR StartTime 2025-01-16 06:24:05 - End Time 2025-01-16 09:24:05 [2025-01-16 09:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260020', 'tblTempUsageDetail_20' ) start [2025-01-16 09:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260020', 'tblTempUsageDetail_20' ) end [2025-01-16 09:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260020', 'tblTempVendorCDR_20' ) start [2025-01-16 09:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260020', 'tblTempVendorCDR_20' ) end [2025-01-16 09:24:26] Production.INFO: ProcessCDR(1,14260020,1,1,2) [2025-01-16 09:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260020', 'tblTempUsageDetail_20' ) start [2025-01-16 09:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260020', 'tblTempUsageDetail_20' ) end [2025-01-16 09:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:24:31] Production.INFO: ==20588== Releasing lock... [2025-01-16 09:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:24:31] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:25:04 [end_date_ymd] => 2025-01-16 09:25:04 [RateCDR] => 1 ) [2025-01-16 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:25:04' and `end` < '2025-01-16 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:25:32] Production.INFO: count ==1254 [2025-01-16 09:25:32] Production.ERROR: pbx CDR StartTime 2025-01-16 06:25:04 - End Time 2025-01-16 09:25:04 [2025-01-16 09:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260025', 'tblTempUsageDetail_20' ) start [2025-01-16 09:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260025', 'tblTempUsageDetail_20' ) end [2025-01-16 09:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260025', 'tblTempVendorCDR_20' ) start [2025-01-16 09:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260025', 'tblTempVendorCDR_20' ) end [2025-01-16 09:25:32] Production.INFO: ProcessCDR(1,14260025,1,1,2) [2025-01-16 09:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260025', 'tblTempUsageDetail_20' ) start [2025-01-16 09:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260025', 'tblTempUsageDetail_20' ) end [2025-01-16 09:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:25:37] Production.INFO: ==20661== Releasing lock... [2025-01-16 09:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:25:37] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:26:05 [end_date_ymd] => 2025-01-16 09:26:05 [RateCDR] => 1 ) [2025-01-16 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:26:05' and `end` < '2025-01-16 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:26:20] Production.INFO: count ==1264 [2025-01-16 09:26:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:26:05 - End Time 2025-01-16 09:26:05 [2025-01-16 09:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260030', 'tblTempUsageDetail_20' ) start [2025-01-16 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260030', 'tblTempUsageDetail_20' ) end [2025-01-16 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260030', 'tblTempVendorCDR_20' ) start [2025-01-16 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260030', 'tblTempVendorCDR_20' ) end [2025-01-16 09:26:21] Production.INFO: ProcessCDR(1,14260030,1,1,2) [2025-01-16 09:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260030', 'tblTempUsageDetail_20' ) start [2025-01-16 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260030', 'tblTempUsageDetail_20' ) end [2025-01-16 09:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:26:26] Production.INFO: ==20732== Releasing lock... [2025-01-16 09:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:26:26] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:27:05 [end_date_ymd] => 2025-01-16 09:27:05 [RateCDR] => 1 ) [2025-01-16 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:27:05' and `end` < '2025-01-16 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:27:18] Production.INFO: count ==1288 [2025-01-16 09:27:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:27:05 - End Time 2025-01-16 09:27:05 [2025-01-16 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260035', 'tblTempUsageDetail_20' ) start [2025-01-16 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260035', 'tblTempUsageDetail_20' ) end [2025-01-16 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260035', 'tblTempVendorCDR_20' ) start [2025-01-16 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260035', 'tblTempVendorCDR_20' ) end [2025-01-16 09:27:19] Production.INFO: ProcessCDR(1,14260035,1,1,2) [2025-01-16 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260035', 'tblTempUsageDetail_20' ) start [2025-01-16 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260035', 'tblTempUsageDetail_20' ) end [2025-01-16 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:27:24] Production.INFO: ==20801== Releasing lock... [2025-01-16 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:27:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:28:05 [end_date_ymd] => 2025-01-16 09:28:05 [RateCDR] => 1 ) [2025-01-16 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:28:05' and `end` < '2025-01-16 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:28:18] Production.INFO: count ==1299 [2025-01-16 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:28:05 - End Time 2025-01-16 09:28:05 [2025-01-16 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260040', 'tblTempUsageDetail_20' ) start [2025-01-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260040', 'tblTempUsageDetail_20' ) end [2025-01-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260040', 'tblTempVendorCDR_20' ) start [2025-01-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260040', 'tblTempVendorCDR_20' ) end [2025-01-16 09:28:18] Production.INFO: ProcessCDR(1,14260040,1,1,2) [2025-01-16 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260040', 'tblTempUsageDetail_20' ) start [2025-01-16 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260040', 'tblTempUsageDetail_20' ) end [2025-01-16 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:28:23] Production.INFO: ==20871== Releasing lock... [2025-01-16 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:28:23] Production.INFO: 38 MB #Memory Used# [2025-01-16 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:29:05 [end_date_ymd] => 2025-01-16 09:29:05 [RateCDR] => 1 ) [2025-01-16 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:29:05' and `end` < '2025-01-16 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:29:26] Production.INFO: count ==1328 [2025-01-16 09:29:27] Production.ERROR: pbx CDR StartTime 2025-01-16 06:29:05 - End Time 2025-01-16 09:29:05 [2025-01-16 09:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260045', 'tblTempUsageDetail_20' ) start [2025-01-16 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260045', 'tblTempUsageDetail_20' ) end [2025-01-16 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260045', 'tblTempVendorCDR_20' ) start [2025-01-16 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260045', 'tblTempVendorCDR_20' ) end [2025-01-16 09:29:27] Production.INFO: ProcessCDR(1,14260045,1,1,2) [2025-01-16 09:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260045', 'tblTempUsageDetail_20' ) start [2025-01-16 09:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260045', 'tblTempUsageDetail_20' ) end [2025-01-16 09:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:29:32] Production.INFO: ==20940== Releasing lock... [2025-01-16 09:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:29:32] Production.INFO: 38 MB #Memory Used# [2025-01-16 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:30:06 [end_date_ymd] => 2025-01-16 09:30:06 [RateCDR] => 1 ) [2025-01-16 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:30:06' and `end` < '2025-01-16 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:30:27] Production.INFO: count ==1350 [2025-01-16 09:30:28] Production.ERROR: pbx CDR StartTime 2025-01-16 06:30:06 - End Time 2025-01-16 09:30:06 [2025-01-16 09:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260051', 'tblTempUsageDetail_20' ) start [2025-01-16 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260051', 'tblTempUsageDetail_20' ) end [2025-01-16 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260051', 'tblTempVendorCDR_20' ) start [2025-01-16 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260051', 'tblTempVendorCDR_20' ) end [2025-01-16 09:30:28] Production.INFO: ProcessCDR(1,14260051,1,1,2) [2025-01-16 09:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260051', 'tblTempUsageDetail_20' ) start [2025-01-16 09:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260051', 'tblTempUsageDetail_20' ) end [2025-01-16 09:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:30:33] Production.INFO: ==21017== Releasing lock... [2025-01-16 09:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:30:33] Production.INFO: 38.75 MB #Memory Used# [2025-01-16 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:31:04 [end_date_ymd] => 2025-01-16 09:31:04 [RateCDR] => 1 ) [2025-01-16 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:31:04' and `end` < '2025-01-16 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:31:21] Production.INFO: count ==1430 [2025-01-16 09:31:22] Production.ERROR: pbx CDR StartTime 2025-01-16 06:31:04 - End Time 2025-01-16 09:31:04 [2025-01-16 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260056', 'tblTempUsageDetail_20' ) start [2025-01-16 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260056', 'tblTempUsageDetail_20' ) end [2025-01-16 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260056', 'tblTempVendorCDR_20' ) start [2025-01-16 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260056', 'tblTempVendorCDR_20' ) end [2025-01-16 09:31:22] Production.INFO: ProcessCDR(1,14260056,1,1,2) [2025-01-16 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260056', 'tblTempUsageDetail_20' ) start [2025-01-16 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260056', 'tblTempUsageDetail_20' ) end [2025-01-16 09:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:31:26] Production.INFO: ==21093== Releasing lock... [2025-01-16 09:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:31:26] Production.INFO: 38.5 MB #Memory Used# [2025-01-16 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:32:05 [end_date_ymd] => 2025-01-16 09:32:05 [RateCDR] => 1 ) [2025-01-16 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:32:05' and `end` < '2025-01-16 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:32:19] Production.INFO: count ==1452 [2025-01-16 09:32:20] Production.ERROR: pbx CDR StartTime 2025-01-16 06:32:05 - End Time 2025-01-16 09:32:05 [2025-01-16 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260061', 'tblTempUsageDetail_20' ) start [2025-01-16 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260061', 'tblTempUsageDetail_20' ) end [2025-01-16 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260061', 'tblTempVendorCDR_20' ) start [2025-01-16 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260061', 'tblTempVendorCDR_20' ) end [2025-01-16 09:32:20] Production.INFO: ProcessCDR(1,14260061,1,1,2) [2025-01-16 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260061', 'tblTempUsageDetail_20' ) start [2025-01-16 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260061', 'tblTempUsageDetail_20' ) end [2025-01-16 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:32:25] Production.INFO: ==21165== Releasing lock... [2025-01-16 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:32:25] Production.INFO: 39 MB #Memory Used# [2025-01-16 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:33:05 [end_date_ymd] => 2025-01-16 09:33:05 [RateCDR] => 1 ) [2025-01-16 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:33:05' and `end` < '2025-01-16 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:33:20] Production.INFO: count ==1463 [2025-01-16 09:33:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:33:05 - End Time 2025-01-16 09:33:05 [2025-01-16 09:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260066', 'tblTempUsageDetail_20' ) start [2025-01-16 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260066', 'tblTempUsageDetail_20' ) end [2025-01-16 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260066', 'tblTempVendorCDR_20' ) start [2025-01-16 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260066', 'tblTempVendorCDR_20' ) end [2025-01-16 09:33:21] Production.INFO: ProcessCDR(1,14260066,1,1,2) [2025-01-16 09:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260066', 'tblTempUsageDetail_20' ) start [2025-01-16 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260066', 'tblTempUsageDetail_20' ) end [2025-01-16 09:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:33:26] Production.INFO: ==21277== Releasing lock... [2025-01-16 09:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:33:26] Production.INFO: 39 MB #Memory Used# [2025-01-16 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:34:05 [end_date_ymd] => 2025-01-16 09:34:05 [RateCDR] => 1 ) [2025-01-16 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:34:05' and `end` < '2025-01-16 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:34:20] Production.INFO: count ==1493 [2025-01-16 09:34:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:34:05 - End Time 2025-01-16 09:34:05 [2025-01-16 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260071', 'tblTempUsageDetail_20' ) start [2025-01-16 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260071', 'tblTempUsageDetail_20' ) end [2025-01-16 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260071', 'tblTempVendorCDR_20' ) start [2025-01-16 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260071', 'tblTempVendorCDR_20' ) end [2025-01-16 09:34:21] Production.INFO: ProcessCDR(1,14260071,1,1,2) [2025-01-16 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260071', 'tblTempUsageDetail_20' ) start [2025-01-16 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260071', 'tblTempUsageDetail_20' ) end [2025-01-16 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:34:26] Production.INFO: ==21351== Releasing lock... [2025-01-16 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:34:26] Production.INFO: 39.25 MB #Memory Used# [2025-01-16 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:35:05 [end_date_ymd] => 2025-01-16 09:35:05 [RateCDR] => 1 ) [2025-01-16 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:35:05' and `end` < '2025-01-16 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:35:18] Production.INFO: count ==1502 [2025-01-16 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:35:05 - End Time 2025-01-16 09:35:05 [2025-01-16 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260076', 'tblTempUsageDetail_20' ) start [2025-01-16 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260076', 'tblTempUsageDetail_20' ) end [2025-01-16 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260076', 'tblTempVendorCDR_20' ) start [2025-01-16 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260076', 'tblTempVendorCDR_20' ) end [2025-01-16 09:35:18] Production.INFO: ProcessCDR(1,14260076,1,1,2) [2025-01-16 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260076', 'tblTempUsageDetail_20' ) start [2025-01-16 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260076', 'tblTempUsageDetail_20' ) end [2025-01-16 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:35:23] Production.INFO: ==21424== Releasing lock... [2025-01-16 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-16 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:36:05 [end_date_ymd] => 2025-01-16 09:36:05 [RateCDR] => 1 ) [2025-01-16 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:36:05' and `end` < '2025-01-16 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:36:18] Production.INFO: count ==1511 [2025-01-16 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:36:05 - End Time 2025-01-16 09:36:05 [2025-01-16 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260081', 'tblTempUsageDetail_20' ) start [2025-01-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260081', 'tblTempUsageDetail_20' ) end [2025-01-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260081', 'tblTempVendorCDR_20' ) start [2025-01-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260081', 'tblTempVendorCDR_20' ) end [2025-01-16 09:36:18] Production.INFO: ProcessCDR(1,14260081,1,1,2) [2025-01-16 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260081', 'tblTempUsageDetail_20' ) start [2025-01-16 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260081', 'tblTempUsageDetail_20' ) end [2025-01-16 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:36:24] Production.INFO: ==21496== Releasing lock... [2025-01-16 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-16 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:37:04 [end_date_ymd] => 2025-01-16 09:37:04 [RateCDR] => 1 ) [2025-01-16 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:37:04' and `end` < '2025-01-16 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:37:17] Production.INFO: count ==1526 [2025-01-16 09:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:37:04 - End Time 2025-01-16 09:37:04 [2025-01-16 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260086', 'tblTempUsageDetail_20' ) start [2025-01-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260086', 'tblTempUsageDetail_20' ) end [2025-01-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260086', 'tblTempVendorCDR_20' ) start [2025-01-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260086', 'tblTempVendorCDR_20' ) end [2025-01-16 09:37:18] Production.INFO: ProcessCDR(1,14260086,1,1,2) [2025-01-16 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260086', 'tblTempUsageDetail_20' ) start [2025-01-16 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260086', 'tblTempUsageDetail_20' ) end [2025-01-16 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:37:23] Production.INFO: ==21568== Releasing lock... [2025-01-16 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:37:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-16 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:38:05 [end_date_ymd] => 2025-01-16 09:38:05 [RateCDR] => 1 ) [2025-01-16 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:38:05' and `end` < '2025-01-16 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:38:19] Production.INFO: count ==1548 [2025-01-16 09:38:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:38:05 - End Time 2025-01-16 09:38:05 [2025-01-16 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260091', 'tblTempUsageDetail_20' ) start [2025-01-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260091', 'tblTempUsageDetail_20' ) end [2025-01-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260091', 'tblTempVendorCDR_20' ) start [2025-01-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260091', 'tblTempVendorCDR_20' ) end [2025-01-16 09:38:19] Production.INFO: ProcessCDR(1,14260091,1,1,2) [2025-01-16 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260091', 'tblTempUsageDetail_20' ) start [2025-01-16 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260091', 'tblTempUsageDetail_20' ) end [2025-01-16 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:38:25] Production.INFO: ==21642== Releasing lock... [2025-01-16 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:38:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-16 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:39:05 [end_date_ymd] => 2025-01-16 09:39:05 [RateCDR] => 1 ) [2025-01-16 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:39:05' and `end` < '2025-01-16 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:39:21] Production.INFO: count ==1574 [2025-01-16 09:39:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:39:05 - End Time 2025-01-16 09:39:05 [2025-01-16 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260096', 'tblTempUsageDetail_20' ) start [2025-01-16 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260096', 'tblTempUsageDetail_20' ) end [2025-01-16 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260096', 'tblTempVendorCDR_20' ) start [2025-01-16 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260096', 'tblTempVendorCDR_20' ) end [2025-01-16 09:39:21] Production.INFO: ProcessCDR(1,14260096,1,1,2) [2025-01-16 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260096', 'tblTempUsageDetail_20' ) start [2025-01-16 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260096', 'tblTempUsageDetail_20' ) end [2025-01-16 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:39:27] Production.INFO: ==21714== Releasing lock... [2025-01-16 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:39:27] Production.INFO: 40 MB #Memory Used# [2025-01-16 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:40:06 [end_date_ymd] => 2025-01-16 09:40:06 [RateCDR] => 1 ) [2025-01-16 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:40:06' and `end` < '2025-01-16 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:40:29] Production.INFO: count ==1600 [2025-01-16 09:40:29] Production.ERROR: pbx CDR StartTime 2025-01-16 06:40:06 - End Time 2025-01-16 09:40:06 [2025-01-16 09:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260102', 'tblTempUsageDetail_20' ) start [2025-01-16 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260102', 'tblTempUsageDetail_20' ) end [2025-01-16 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260102', 'tblTempVendorCDR_20' ) start [2025-01-16 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260102', 'tblTempVendorCDR_20' ) end [2025-01-16 09:40:29] Production.INFO: ProcessCDR(1,14260102,1,1,2) [2025-01-16 09:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260102', 'tblTempUsageDetail_20' ) start [2025-01-16 09:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260102', 'tblTempUsageDetail_20' ) end [2025-01-16 09:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:40:34] Production.INFO: ==21790== Releasing lock... [2025-01-16 09:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:40:34] Production.INFO: 40 MB #Memory Used# [2025-01-16 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:41:04 [end_date_ymd] => 2025-01-16 09:41:04 [RateCDR] => 1 ) [2025-01-16 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:41:04' and `end` < '2025-01-16 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:41:21] Production.INFO: count ==1657 [2025-01-16 09:41:22] Production.ERROR: pbx CDR StartTime 2025-01-16 06:41:04 - End Time 2025-01-16 09:41:04 [2025-01-16 09:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260107', 'tblTempUsageDetail_20' ) start [2025-01-16 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260107', 'tblTempUsageDetail_20' ) end [2025-01-16 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260107', 'tblTempVendorCDR_20' ) start [2025-01-16 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260107', 'tblTempVendorCDR_20' ) end [2025-01-16 09:41:22] Production.INFO: ProcessCDR(1,14260107,1,1,2) [2025-01-16 09:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260107', 'tblTempUsageDetail_20' ) start [2025-01-16 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260107', 'tblTempUsageDetail_20' ) end [2025-01-16 09:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:41:27] Production.INFO: ==21866== Releasing lock... [2025-01-16 09:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:41:27] Production.INFO: 40.5 MB #Memory Used# [2025-01-16 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:42:05 [end_date_ymd] => 2025-01-16 09:42:05 [RateCDR] => 1 ) [2025-01-16 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:42:05' and `end` < '2025-01-16 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:42:18] Production.INFO: count ==1682 [2025-01-16 09:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:42:05 - End Time 2025-01-16 09:42:05 [2025-01-16 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260112', 'tblTempUsageDetail_20' ) start [2025-01-16 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260112', 'tblTempUsageDetail_20' ) end [2025-01-16 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260112', 'tblTempVendorCDR_20' ) start [2025-01-16 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260112', 'tblTempVendorCDR_20' ) end [2025-01-16 09:42:18] Production.INFO: ProcessCDR(1,14260112,1,1,2) [2025-01-16 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260112', 'tblTempUsageDetail_20' ) start [2025-01-16 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260112', 'tblTempUsageDetail_20' ) end [2025-01-16 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:42:23] Production.INFO: ==21938== Releasing lock... [2025-01-16 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:42:23] Production.INFO: 41 MB #Memory Used# [2025-01-16 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:43:04 [end_date_ymd] => 2025-01-16 09:43:04 [RateCDR] => 1 ) [2025-01-16 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:43:04' and `end` < '2025-01-16 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:43:34] Production.INFO: count ==1699 [2025-01-16 09:43:34] Production.ERROR: pbx CDR StartTime 2025-01-16 06:43:04 - End Time 2025-01-16 09:43:04 [2025-01-16 09:43:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260117', 'tblTempUsageDetail_20' ) start [2025-01-16 09:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260117', 'tblTempUsageDetail_20' ) end [2025-01-16 09:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260117', 'tblTempVendorCDR_20' ) start [2025-01-16 09:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260117', 'tblTempVendorCDR_20' ) end [2025-01-16 09:43:34] Production.INFO: ProcessCDR(1,14260117,1,1,2) [2025-01-16 09:43:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:43:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:43:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:43:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260117', 'tblTempUsageDetail_20' ) start [2025-01-16 09:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260117', 'tblTempUsageDetail_20' ) end [2025-01-16 09:43:39] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:43:39] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:43:39] Production.INFO: ==22011== Releasing lock... [2025-01-16 09:43:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:43:39] Production.INFO: 40.75 MB #Memory Used# [2025-01-16 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:44:05 [end_date_ymd] => 2025-01-16 09:44:05 [RateCDR] => 1 ) [2025-01-16 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:44:05' and `end` < '2025-01-16 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:44:21] Production.INFO: count ==1712 [2025-01-16 09:44:22] Production.ERROR: pbx CDR StartTime 2025-01-16 06:44:05 - End Time 2025-01-16 09:44:05 [2025-01-16 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260122', 'tblTempUsageDetail_20' ) start [2025-01-16 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260122', 'tblTempUsageDetail_20' ) end [2025-01-16 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260122', 'tblTempVendorCDR_20' ) start [2025-01-16 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260122', 'tblTempVendorCDR_20' ) end [2025-01-16 09:44:22] Production.INFO: ProcessCDR(1,14260122,1,1,2) [2025-01-16 09:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260122', 'tblTempUsageDetail_20' ) start [2025-01-16 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260122', 'tblTempUsageDetail_20' ) end [2025-01-16 09:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:44:27] Production.INFO: ==22083== Releasing lock... [2025-01-16 09:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:44:27] Production.INFO: 41 MB #Memory Used# [2025-01-16 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:45:05 [end_date_ymd] => 2025-01-16 09:45:05 [RateCDR] => 1 ) [2025-01-16 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:45:05' and `end` < '2025-01-16 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:45:25] Production.INFO: count ==1718 [2025-01-16 09:45:25] Production.ERROR: pbx CDR StartTime 2025-01-16 06:45:05 - End Time 2025-01-16 09:45:05 [2025-01-16 09:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260127', 'tblTempUsageDetail_20' ) start [2025-01-16 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260127', 'tblTempUsageDetail_20' ) end [2025-01-16 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260127', 'tblTempVendorCDR_20' ) start [2025-01-16 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260127', 'tblTempVendorCDR_20' ) end [2025-01-16 09:45:25] Production.INFO: ProcessCDR(1,14260127,1,1,2) [2025-01-16 09:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260127', 'tblTempUsageDetail_20' ) start [2025-01-16 09:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260127', 'tblTempUsageDetail_20' ) end [2025-01-16 09:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:45:30] Production.INFO: ==22157== Releasing lock... [2025-01-16 09:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:45:30] Production.INFO: 41 MB #Memory Used# [2025-01-16 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:46:05 [end_date_ymd] => 2025-01-16 09:46:05 [RateCDR] => 1 ) [2025-01-16 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:46:05' and `end` < '2025-01-16 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:46:25] Production.INFO: count ==1741 [2025-01-16 09:46:25] Production.ERROR: pbx CDR StartTime 2025-01-16 06:46:05 - End Time 2025-01-16 09:46:05 [2025-01-16 09:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260132', 'tblTempUsageDetail_20' ) start [2025-01-16 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260132', 'tblTempUsageDetail_20' ) end [2025-01-16 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260132', 'tblTempVendorCDR_20' ) start [2025-01-16 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260132', 'tblTempVendorCDR_20' ) end [2025-01-16 09:46:25] Production.INFO: ProcessCDR(1,14260132,1,1,2) [2025-01-16 09:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260132', 'tblTempUsageDetail_20' ) start [2025-01-16 09:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260132', 'tblTempUsageDetail_20' ) end [2025-01-16 09:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:46:30] Production.INFO: ==22233== Releasing lock... [2025-01-16 09:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:46:30] Production.INFO: 41 MB #Memory Used# [2025-01-16 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:47:05 [end_date_ymd] => 2025-01-16 09:47:05 [RateCDR] => 1 ) [2025-01-16 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:47:05' and `end` < '2025-01-16 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:47:21] Production.INFO: count ==1752 [2025-01-16 09:47:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:47:05 - End Time 2025-01-16 09:47:05 [2025-01-16 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260137', 'tblTempUsageDetail_20' ) start [2025-01-16 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260137', 'tblTempUsageDetail_20' ) end [2025-01-16 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260137', 'tblTempVendorCDR_20' ) start [2025-01-16 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260137', 'tblTempVendorCDR_20' ) end [2025-01-16 09:47:21] Production.INFO: ProcessCDR(1,14260137,1,1,2) [2025-01-16 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260137', 'tblTempUsageDetail_20' ) start [2025-01-16 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260137', 'tblTempUsageDetail_20' ) end [2025-01-16 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:47:26] Production.INFO: ==22305== Releasing lock... [2025-01-16 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:47:26] Production.INFO: 41.75 MB #Memory Used# [2025-01-16 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:48:05 [end_date_ymd] => 2025-01-16 09:48:05 [RateCDR] => 1 ) [2025-01-16 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:48:05' and `end` < '2025-01-16 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:48:19] Production.INFO: count ==1755 [2025-01-16 09:48:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:48:05 - End Time 2025-01-16 09:48:05 [2025-01-16 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260142', 'tblTempUsageDetail_20' ) start [2025-01-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260142', 'tblTempUsageDetail_20' ) end [2025-01-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260142', 'tblTempVendorCDR_20' ) start [2025-01-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260142', 'tblTempVendorCDR_20' ) end [2025-01-16 09:48:19] Production.INFO: ProcessCDR(1,14260142,1,1,2) [2025-01-16 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260142', 'tblTempUsageDetail_20' ) start [2025-01-16 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260142', 'tblTempUsageDetail_20' ) end [2025-01-16 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:48:24] Production.INFO: ==22375== Releasing lock... [2025-01-16 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:48:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-16 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:49:05 [end_date_ymd] => 2025-01-16 09:49:05 [RateCDR] => 1 ) [2025-01-16 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:49:05' and `end` < '2025-01-16 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:49:21] Production.INFO: count ==1769 [2025-01-16 09:49:22] Production.ERROR: pbx CDR StartTime 2025-01-16 06:49:05 - End Time 2025-01-16 09:49:05 [2025-01-16 09:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260147', 'tblTempUsageDetail_20' ) start [2025-01-16 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260147', 'tblTempUsageDetail_20' ) end [2025-01-16 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260147', 'tblTempVendorCDR_20' ) start [2025-01-16 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260147', 'tblTempVendorCDR_20' ) end [2025-01-16 09:49:22] Production.INFO: ProcessCDR(1,14260147,1,1,2) [2025-01-16 09:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260147', 'tblTempUsageDetail_20' ) start [2025-01-16 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260147', 'tblTempUsageDetail_20' ) end [2025-01-16 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:49:26] Production.INFO: ==22484== Releasing lock... [2025-01-16 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:49:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-16 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:50:05 [end_date_ymd] => 2025-01-16 09:50:05 [RateCDR] => 1 ) [2025-01-16 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:50:05' and `end` < '2025-01-16 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:50:20] Production.INFO: count ==1809 [2025-01-16 09:50:20] Production.ERROR: pbx CDR StartTime 2025-01-16 06:50:05 - End Time 2025-01-16 09:50:05 [2025-01-16 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260152', 'tblTempUsageDetail_20' ) start [2025-01-16 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260152', 'tblTempUsageDetail_20' ) end [2025-01-16 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260152', 'tblTempVendorCDR_20' ) start [2025-01-16 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260152', 'tblTempVendorCDR_20' ) end [2025-01-16 09:50:21] Production.INFO: ProcessCDR(1,14260152,1,1,2) [2025-01-16 09:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260152', 'tblTempUsageDetail_20' ) start [2025-01-16 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260152', 'tblTempUsageDetail_20' ) end [2025-01-16 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:50:25] Production.INFO: ==22555== Releasing lock... [2025-01-16 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:50:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-16 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:51:05 [end_date_ymd] => 2025-01-16 09:51:05 [RateCDR] => 1 ) [2025-01-16 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:51:05' and `end` < '2025-01-16 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-01-16 09:51:20] Production.INFO: count ==1881 [2025-01-16 09:51:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:51:05 - End Time 2025-01-16 09:51:05 [2025-01-16 09:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260158', 'tblTempUsageDetail_20' ) start [2025-01-16 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260158', 'tblTempUsageDetail_20' ) end [2025-01-16 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260158', 'tblTempVendorCDR_20' ) start [2025-01-16 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260158', 'tblTempVendorCDR_20' ) end [2025-01-16 09:51:21] Production.INFO: ProcessCDR(1,14260158,1,1,2) [2025-01-16 09:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260158', 'tblTempUsageDetail_20' ) start [2025-01-16 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260158', 'tblTempUsageDetail_20' ) end [2025-01-16 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:51:26] Production.INFO: ==22629== Releasing lock... [2025-01-16 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:51:26] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:52:05 [end_date_ymd] => 2025-01-16 09:52:05 [RateCDR] => 1 ) [2025-01-16 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:52:05' and `end` < '2025-01-16 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:52:21] Production.INFO: count ==1883 [2025-01-16 09:52:22] Production.ERROR: pbx CDR StartTime 2025-01-16 06:52:05 - End Time 2025-01-16 09:52:05 [2025-01-16 09:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260163', 'tblTempUsageDetail_20' ) start [2025-01-16 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260163', 'tblTempUsageDetail_20' ) end [2025-01-16 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260163', 'tblTempVendorCDR_20' ) start [2025-01-16 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260163', 'tblTempVendorCDR_20' ) end [2025-01-16 09:52:22] Production.INFO: ProcessCDR(1,14260163,1,1,2) [2025-01-16 09:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260163', 'tblTempUsageDetail_20' ) start [2025-01-16 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260163', 'tblTempUsageDetail_20' ) end [2025-01-16 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:52:27] Production.INFO: ==22700== Releasing lock... [2025-01-16 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:52:27] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:53:06 [end_date_ymd] => 2025-01-16 09:53:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 06:53:06' and `end` < '2025-01-16 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-01-16 09:53:18] Production.INFO: count ==1889 [2025-01-16 09:53:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:53:06 - End Time 2025-01-16 09:53:06 [2025-01-16 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260168', 'tblTempUsageDetail_20' ) start [2025-01-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260168', 'tblTempUsageDetail_20' ) end [2025-01-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260168', 'tblTempVendorCDR_20' ) start [2025-01-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260168', 'tblTempVendorCDR_20' ) end [2025-01-16 09:53:19] Production.INFO: ProcessCDR(1,14260168,1,1,2) [2025-01-16 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260168', 'tblTempUsageDetail_20' ) start [2025-01-16 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260168', 'tblTempUsageDetail_20' ) end [2025-01-16 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:53:24] Production.INFO: ==22771== Releasing lock... [2025-01-16 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:53:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:54:05 [end_date_ymd] => 2025-01-16 09:54:05 [RateCDR] => 1 ) [2025-01-16 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:54:05' and `end` < '2025-01-16 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:54:17] Production.INFO: count ==1900 [2025-01-16 09:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 06:54:05 - End Time 2025-01-16 09:54:05 [2025-01-16 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260173', 'tblTempUsageDetail_20' ) start [2025-01-16 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260173', 'tblTempUsageDetail_20' ) end [2025-01-16 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260173', 'tblTempVendorCDR_20' ) start [2025-01-16 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260173', 'tblTempVendorCDR_20' ) end [2025-01-16 09:54:18] Production.INFO: ProcessCDR(1,14260173,1,1,2) [2025-01-16 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260173', 'tblTempUsageDetail_20' ) start [2025-01-16 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260173', 'tblTempUsageDetail_20' ) end [2025-01-16 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:54:23] Production.INFO: ==22839== Releasing lock... [2025-01-16 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:54:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:55:05 [end_date_ymd] => 2025-01-16 09:55:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 06:55:05' and `end` < '2025-01-16 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-01-16 09:55:18] Production.INFO: count ==1909 [2025-01-16 09:55:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:55:05 - End Time 2025-01-16 09:55:05 [2025-01-16 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260178', 'tblTempUsageDetail_20' ) start [2025-01-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260178', 'tblTempUsageDetail_20' ) end [2025-01-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260178', 'tblTempVendorCDR_20' ) start [2025-01-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260178', 'tblTempVendorCDR_20' ) end [2025-01-16 09:55:19] Production.INFO: ProcessCDR(1,14260178,1,1,2) [2025-01-16 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260178', 'tblTempUsageDetail_20' ) start [2025-01-16 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260178', 'tblTempUsageDetail_20' ) end [2025-01-16 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:55:24] Production.INFO: ==22910== Releasing lock... [2025-01-16 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:55:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:56:05 [end_date_ymd] => 2025-01-16 09:56:05 [RateCDR] => 1 ) [2025-01-16 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:56:05' and `end` < '2025-01-16 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:56:19] Production.INFO: count ==1920 [2025-01-16 09:56:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:56:05 - End Time 2025-01-16 09:56:05 [2025-01-16 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260183', 'tblTempUsageDetail_20' ) start [2025-01-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260183', 'tblTempUsageDetail_20' ) end [2025-01-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260183', 'tblTempVendorCDR_20' ) start [2025-01-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260183', 'tblTempVendorCDR_20' ) end [2025-01-16 09:56:19] Production.INFO: ProcessCDR(1,14260183,1,1,2) [2025-01-16 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260183', 'tblTempUsageDetail_20' ) start [2025-01-16 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260183', 'tblTempUsageDetail_20' ) end [2025-01-16 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:56:24] Production.INFO: ==22981== Releasing lock... [2025-01-16 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:56:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-16 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:57:04 [end_date_ymd] => 2025-01-16 09:57:04 [RateCDR] => 1 ) [2025-01-16 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:57:04' and `end` < '2025-01-16 09:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:57:20] Production.INFO: count ==1933 [2025-01-16 09:57:21] Production.ERROR: pbx CDR StartTime 2025-01-16 06:57:04 - End Time 2025-01-16 09:57:04 [2025-01-16 09:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260188', 'tblTempUsageDetail_20' ) start [2025-01-16 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260188', 'tblTempUsageDetail_20' ) end [2025-01-16 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260188', 'tblTempVendorCDR_20' ) start [2025-01-16 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260188', 'tblTempVendorCDR_20' ) end [2025-01-16 09:57:21] Production.INFO: ProcessCDR(1,14260188,1,1,2) [2025-01-16 09:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260188', 'tblTempUsageDetail_20' ) start [2025-01-16 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260188', 'tblTempUsageDetail_20' ) end [2025-01-16 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:57:26] Production.INFO: ==23049== Releasing lock... [2025-01-16 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:57:26] Production.INFO: 42.5 MB #Memory Used# [2025-01-16 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:58:06 [end_date_ymd] => 2025-01-16 09:58:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 06:58:06' and `end` < '2025-01-16 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-01-16 09:58:18] Production.INFO: count ==1937 [2025-01-16 09:58:19] Production.ERROR: pbx CDR StartTime 2025-01-16 06:58:06 - End Time 2025-01-16 09:58:06 [2025-01-16 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260193', 'tblTempUsageDetail_20' ) start [2025-01-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260193', 'tblTempUsageDetail_20' ) end [2025-01-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260193', 'tblTempVendorCDR_20' ) start [2025-01-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260193', 'tblTempVendorCDR_20' ) end [2025-01-16 09:58:19] Production.INFO: ProcessCDR(1,14260193,1,1,2) [2025-01-16 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260193', 'tblTempUsageDetail_20' ) start [2025-01-16 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260193', 'tblTempUsageDetail_20' ) end [2025-01-16 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:58:24] Production.INFO: ==23120== Releasing lock... [2025-01-16 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:58:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-16 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 06:59:05 [end_date_ymd] => 2025-01-16 09:59:05 [RateCDR] => 1 ) [2025-01-16 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 06:59:05' and `end` < '2025-01-16 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 09:59:19] Production.INFO: count ==1954 [2025-01-16 09:59:20] Production.ERROR: pbx CDR StartTime 2025-01-16 06:59:05 - End Time 2025-01-16 09:59:05 [2025-01-16 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260198', 'tblTempUsageDetail_20' ) start [2025-01-16 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260198', 'tblTempUsageDetail_20' ) end [2025-01-16 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260198', 'tblTempVendorCDR_20' ) start [2025-01-16 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260198', 'tblTempVendorCDR_20' ) end [2025-01-16 09:59:20] Production.INFO: ProcessCDR(1,14260198,1,1,2) [2025-01-16 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260198', 'tblTempUsageDetail_20' ) start [2025-01-16 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260198', 'tblTempUsageDetail_20' ) end [2025-01-16 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 09:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 09:59:26] Production.INFO: ==23191== Releasing lock... [2025-01-16 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 09:59:26] Production.INFO: 42.75 MB #Memory Used# [2025-01-16 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:00:06 [end_date_ymd] => 2025-01-16 10:00:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 07:00:06' and `end` < '2025-01-16 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-01-16 10:00:21] Production.INFO: count ==1974 [2025-01-16 10:00:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:00:06 - End Time 2025-01-16 10:00:06 [2025-01-16 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260204', 'tblTempUsageDetail_20' ) start [2025-01-16 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260204', 'tblTempUsageDetail_20' ) end [2025-01-16 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260204', 'tblTempVendorCDR_20' ) start [2025-01-16 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260204', 'tblTempVendorCDR_20' ) end [2025-01-16 10:00:22] Production.INFO: ProcessCDR(1,14260204,1,1,2) [2025-01-16 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260204', 'tblTempUsageDetail_20' ) start [2025-01-16 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260204', 'tblTempUsageDetail_20' ) end [2025-01-16 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:00:27] Production.INFO: ==23269== Releasing lock... [2025-01-16 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:00:27] Production.INFO: 42.75 MB #Memory Used# [2025-01-16 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:01:05 [end_date_ymd] => 2025-01-16 10:01:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 07:01:05' and `end` < '2025-01-16 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-01-16 10:01:21] Production.INFO: count ==2068 [2025-01-16 10:01:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:01:05 - End Time 2025-01-16 10:01:05 [2025-01-16 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260209', 'tblTempUsageDetail_20' ) start [2025-01-16 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260209', 'tblTempUsageDetail_20' ) end [2025-01-16 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260209', 'tblTempVendorCDR_20' ) start [2025-01-16 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260209', 'tblTempVendorCDR_20' ) end [2025-01-16 10:01:22] Production.INFO: ProcessCDR(1,14260209,1,1,2) [2025-01-16 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260209', 'tblTempUsageDetail_20' ) start [2025-01-16 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260209', 'tblTempUsageDetail_20' ) end [2025-01-16 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:01:27] Production.INFO: ==23361== Releasing lock... [2025-01-16 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:01:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-16 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:02:05 [end_date_ymd] => 2025-01-16 10:02:05 [RateCDR] => 1 ) [2025-01-16 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:02:05' and `end` < '2025-01-16 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:02:23] Production.INFO: count ==2087 [2025-01-16 10:02:24] Production.ERROR: pbx CDR StartTime 2025-01-16 07:02:05 - End Time 2025-01-16 10:02:05 [2025-01-16 10:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260214', 'tblTempUsageDetail_20' ) start [2025-01-16 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260214', 'tblTempUsageDetail_20' ) end [2025-01-16 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260214', 'tblTempVendorCDR_20' ) start [2025-01-16 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260214', 'tblTempVendorCDR_20' ) end [2025-01-16 10:02:24] Production.INFO: ProcessCDR(1,14260214,1,1,2) [2025-01-16 10:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260214', 'tblTempUsageDetail_20' ) start [2025-01-16 10:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260214', 'tblTempUsageDetail_20' ) end [2025-01-16 10:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:02:29] Production.INFO: ==23431== Releasing lock... [2025-01-16 10:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:02:29] Production.INFO: 43.75 MB #Memory Used# [2025-01-16 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:03:05 [end_date_ymd] => 2025-01-16 10:03:05 [RateCDR] => 1 ) [2025-01-16 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:03:05' and `end` < '2025-01-16 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:03:18] Production.INFO: count ==2107 [2025-01-16 10:03:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:03:05 - End Time 2025-01-16 10:03:05 [2025-01-16 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260219', 'tblTempUsageDetail_20' ) start [2025-01-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260219', 'tblTempUsageDetail_20' ) end [2025-01-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260219', 'tblTempVendorCDR_20' ) start [2025-01-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260219', 'tblTempVendorCDR_20' ) end [2025-01-16 10:03:19] Production.INFO: ProcessCDR(1,14260219,1,1,2) [2025-01-16 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260219', 'tblTempUsageDetail_20' ) start [2025-01-16 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260219', 'tblTempUsageDetail_20' ) end [2025-01-16 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:03:24] Production.INFO: ==23502== Releasing lock... [2025-01-16 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:03:24] Production.INFO: 44 MB #Memory Used# [2025-01-16 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:04:05 [end_date_ymd] => 2025-01-16 10:04:05 [RateCDR] => 1 ) [2025-01-16 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:04:05' and `end` < '2025-01-16 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:04:19] Production.INFO: count ==2124 [2025-01-16 10:04:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:04:05 - End Time 2025-01-16 10:04:05 [2025-01-16 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260224', 'tblTempUsageDetail_20' ) start [2025-01-16 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260224', 'tblTempUsageDetail_20' ) end [2025-01-16 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260224', 'tblTempVendorCDR_20' ) start [2025-01-16 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260224', 'tblTempVendorCDR_20' ) end [2025-01-16 10:04:20] Production.INFO: ProcessCDR(1,14260224,1,1,2) [2025-01-16 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260224', 'tblTempUsageDetail_20' ) start [2025-01-16 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260224', 'tblTempUsageDetail_20' ) end [2025-01-16 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:04:24] Production.INFO: ==23611== Releasing lock... [2025-01-16 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:04:24] Production.INFO: 44 MB #Memory Used# [2025-01-16 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:05:05 [end_date_ymd] => 2025-01-16 10:05:05 [RateCDR] => 1 ) [2025-01-16 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:05:05' and `end` < '2025-01-16 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:05:24] Production.INFO: count ==2140 [2025-01-16 10:05:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:05:05 - End Time 2025-01-16 10:05:05 [2025-01-16 10:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260229', 'tblTempUsageDetail_20' ) start [2025-01-16 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260229', 'tblTempUsageDetail_20' ) end [2025-01-16 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260229', 'tblTempVendorCDR_20' ) start [2025-01-16 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260229', 'tblTempVendorCDR_20' ) end [2025-01-16 10:05:25] Production.INFO: ProcessCDR(1,14260229,1,1,2) [2025-01-16 10:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260229', 'tblTempUsageDetail_20' ) start [2025-01-16 10:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260229', 'tblTempUsageDetail_20' ) end [2025-01-16 10:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:05:29] Production.INFO: ==23684== Releasing lock... [2025-01-16 10:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:05:29] Production.INFO: 44.25 MB #Memory Used# [2025-01-16 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:06:05 [end_date_ymd] => 2025-01-16 10:06:05 [RateCDR] => 1 ) [2025-01-16 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:06:05' and `end` < '2025-01-16 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:06:22] Production.INFO: count ==2145 [2025-01-16 10:06:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:06:05 - End Time 2025-01-16 10:06:05 [2025-01-16 10:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260234', 'tblTempUsageDetail_20' ) start [2025-01-16 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260234', 'tblTempUsageDetail_20' ) end [2025-01-16 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260234', 'tblTempVendorCDR_20' ) start [2025-01-16 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260234', 'tblTempVendorCDR_20' ) end [2025-01-16 10:06:22] Production.INFO: ProcessCDR(1,14260234,1,1,2) [2025-01-16 10:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260234', 'tblTempUsageDetail_20' ) start [2025-01-16 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260234', 'tblTempUsageDetail_20' ) end [2025-01-16 10:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:06:27] Production.INFO: ==23757== Releasing lock... [2025-01-16 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:06:27] Production.INFO: 44.25 MB #Memory Used# [2025-01-16 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:07:05 [end_date_ymd] => 2025-01-16 10:07:05 [RateCDR] => 1 ) [2025-01-16 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:07:05' and `end` < '2025-01-16 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:07:20] Production.INFO: count ==2161 [2025-01-16 10:07:21] Production.ERROR: pbx CDR StartTime 2025-01-16 07:07:05 - End Time 2025-01-16 10:07:05 [2025-01-16 10:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260239', 'tblTempUsageDetail_20' ) start [2025-01-16 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260239', 'tblTempUsageDetail_20' ) end [2025-01-16 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260239', 'tblTempVendorCDR_20' ) start [2025-01-16 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260239', 'tblTempVendorCDR_20' ) end [2025-01-16 10:07:21] Production.INFO: ProcessCDR(1,14260239,1,1,2) [2025-01-16 10:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260239', 'tblTempUsageDetail_20' ) start [2025-01-16 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260239', 'tblTempUsageDetail_20' ) end [2025-01-16 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:07:26] Production.INFO: ==23831== Releasing lock... [2025-01-16 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:07:26] Production.INFO: 44.25 MB #Memory Used# [2025-01-16 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:08:05 [end_date_ymd] => 2025-01-16 10:08:05 [RateCDR] => 1 ) [2025-01-16 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:08:05' and `end` < '2025-01-16 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:08:18] Production.INFO: count ==2174 [2025-01-16 10:08:18] Production.ERROR: pbx CDR StartTime 2025-01-16 07:08:05 - End Time 2025-01-16 10:08:05 [2025-01-16 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260244', 'tblTempUsageDetail_20' ) start [2025-01-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260244', 'tblTempUsageDetail_20' ) end [2025-01-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260244', 'tblTempVendorCDR_20' ) start [2025-01-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260244', 'tblTempVendorCDR_20' ) end [2025-01-16 10:08:19] Production.INFO: ProcessCDR(1,14260244,1,1,2) [2025-01-16 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260244', 'tblTempUsageDetail_20' ) start [2025-01-16 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260244', 'tblTempUsageDetail_20' ) end [2025-01-16 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:08:23] Production.INFO: ==23933== Releasing lock... [2025-01-16 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:08:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:09:05 [end_date_ymd] => 2025-01-16 10:09:05 [RateCDR] => 1 ) [2025-01-16 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:09:05' and `end` < '2025-01-16 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:09:18] Production.INFO: count ==2181 [2025-01-16 10:09:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:09:05 - End Time 2025-01-16 10:09:05 [2025-01-16 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260249', 'tblTempUsageDetail_20' ) start [2025-01-16 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260249', 'tblTempUsageDetail_20' ) end [2025-01-16 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260249', 'tblTempVendorCDR_20' ) start [2025-01-16 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260249', 'tblTempVendorCDR_20' ) end [2025-01-16 10:09:19] Production.INFO: ProcessCDR(1,14260249,1,1,2) [2025-01-16 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260249', 'tblTempUsageDetail_20' ) start [2025-01-16 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260249', 'tblTempUsageDetail_20' ) end [2025-01-16 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:09:23] Production.INFO: ==24030== Releasing lock... [2025-01-16 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:09:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:10:06 [end_date_ymd] => 2025-01-16 10:10:06 [RateCDR] => 1 ) [2025-01-16 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:10:06' and `end` < '2025-01-16 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:10:19] Production.INFO: count ==2201 [2025-01-16 10:10:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:10:06 - End Time 2025-01-16 10:10:06 [2025-01-16 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260255', 'tblTempUsageDetail_20' ) start [2025-01-16 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260255', 'tblTempUsageDetail_20' ) end [2025-01-16 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260255', 'tblTempVendorCDR_20' ) start [2025-01-16 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260255', 'tblTempVendorCDR_20' ) end [2025-01-16 10:10:20] Production.INFO: ProcessCDR(1,14260255,1,1,2) [2025-01-16 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260255', 'tblTempUsageDetail_20' ) start [2025-01-16 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260255', 'tblTempUsageDetail_20' ) end [2025-01-16 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:10:25] Production.INFO: ==24134== Releasing lock... [2025-01-16 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:10:25] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:11:04 [end_date_ymd] => 2025-01-16 10:11:04 [RateCDR] => 1 ) [2025-01-16 10:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:11:04' and `end` < '2025-01-16 10:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:11:17] Production.INFO: count ==2290 [2025-01-16 10:11:18] Production.ERROR: pbx CDR StartTime 2025-01-16 07:11:04 - End Time 2025-01-16 10:11:04 [2025-01-16 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260260', 'tblTempUsageDetail_20' ) start [2025-01-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260260', 'tblTempUsageDetail_20' ) end [2025-01-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260260', 'tblTempVendorCDR_20' ) start [2025-01-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260260', 'tblTempVendorCDR_20' ) end [2025-01-16 10:11:18] Production.INFO: ProcessCDR(1,14260260,1,1,2) [2025-01-16 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260260', 'tblTempUsageDetail_20' ) start [2025-01-16 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260260', 'tblTempUsageDetail_20' ) end [2025-01-16 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:11:23] Production.INFO: ==24230== Releasing lock... [2025-01-16 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:11:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-16 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:12:05 [end_date_ymd] => 2025-01-16 10:12:05 [RateCDR] => 1 ) [2025-01-16 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:12:05' and `end` < '2025-01-16 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:12:19] Production.INFO: count ==2333 [2025-01-16 10:12:20] Production.ERROR: pbx CDR StartTime 2025-01-16 07:12:05 - End Time 2025-01-16 10:12:05 [2025-01-16 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260265', 'tblTempUsageDetail_20' ) start [2025-01-16 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260265', 'tblTempUsageDetail_20' ) end [2025-01-16 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260265', 'tblTempVendorCDR_20' ) start [2025-01-16 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260265', 'tblTempVendorCDR_20' ) end [2025-01-16 10:12:20] Production.INFO: ProcessCDR(1,14260265,1,1,2) [2025-01-16 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260265', 'tblTempUsageDetail_20' ) start [2025-01-16 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260265', 'tblTempUsageDetail_20' ) end [2025-01-16 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:12:25] Production.INFO: ==24328== Releasing lock... [2025-01-16 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:12:25] Production.INFO: 45.5 MB #Memory Used# [2025-01-16 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:13:05 [end_date_ymd] => 2025-01-16 10:13:05 [RateCDR] => 1 ) [2025-01-16 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:13:05' and `end` < '2025-01-16 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:13:18] Production.INFO: count ==2342 [2025-01-16 10:13:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:13:05 - End Time 2025-01-16 10:13:05 [2025-01-16 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260270', 'tblTempUsageDetail_20' ) start [2025-01-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260270', 'tblTempUsageDetail_20' ) end [2025-01-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260270', 'tblTempVendorCDR_20' ) start [2025-01-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260270', 'tblTempVendorCDR_20' ) end [2025-01-16 10:13:19] Production.INFO: ProcessCDR(1,14260270,1,1,2) [2025-01-16 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260270', 'tblTempUsageDetail_20' ) start [2025-01-16 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260270', 'tblTempUsageDetail_20' ) end [2025-01-16 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:13:24] Production.INFO: ==24426== Releasing lock... [2025-01-16 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:13:24] Production.INFO: 46 MB #Memory Used# [2025-01-16 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:14:05 [end_date_ymd] => 2025-01-16 10:14:05 [RateCDR] => 1 ) [2025-01-16 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:14:05' and `end` < '2025-01-16 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:14:21] Production.INFO: count ==2346 [2025-01-16 10:14:21] Production.ERROR: pbx CDR StartTime 2025-01-16 07:14:05 - End Time 2025-01-16 10:14:05 [2025-01-16 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260275', 'tblTempUsageDetail_20' ) start [2025-01-16 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260275', 'tblTempUsageDetail_20' ) end [2025-01-16 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260275', 'tblTempVendorCDR_20' ) start [2025-01-16 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260275', 'tblTempVendorCDR_20' ) end [2025-01-16 10:14:22] Production.INFO: ProcessCDR(1,14260275,1,1,2) [2025-01-16 10:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260275', 'tblTempUsageDetail_20' ) start [2025-01-16 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260275', 'tblTempUsageDetail_20' ) end [2025-01-16 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:14:26] Production.INFO: ==24527== Releasing lock... [2025-01-16 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:14:26] Production.INFO: 45.75 MB #Memory Used# [2025-01-16 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:15:05 [end_date_ymd] => 2025-01-16 10:15:05 [RateCDR] => 1 ) [2025-01-16 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:15:05' and `end` < '2025-01-16 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:15:20] Production.INFO: count ==2372 [2025-01-16 10:15:21] Production.ERROR: pbx CDR StartTime 2025-01-16 07:15:05 - End Time 2025-01-16 10:15:05 [2025-01-16 10:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260280', 'tblTempUsageDetail_20' ) start [2025-01-16 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260280', 'tblTempUsageDetail_20' ) end [2025-01-16 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260280', 'tblTempVendorCDR_20' ) start [2025-01-16 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260280', 'tblTempVendorCDR_20' ) end [2025-01-16 10:15:21] Production.INFO: ProcessCDR(1,14260280,1,1,2) [2025-01-16 10:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260280', 'tblTempUsageDetail_20' ) start [2025-01-16 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260280', 'tblTempUsageDetail_20' ) end [2025-01-16 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:15:26] Production.INFO: ==24632== Releasing lock... [2025-01-16 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:15:26] Production.INFO: 46 MB #Memory Used# [2025-01-16 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:16:05 [end_date_ymd] => 2025-01-16 10:16:05 [RateCDR] => 1 ) [2025-01-16 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:16:05' and `end` < '2025-01-16 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:16:19] Production.INFO: count ==2376 [2025-01-16 10:16:20] Production.ERROR: pbx CDR StartTime 2025-01-16 07:16:05 - End Time 2025-01-16 10:16:05 [2025-01-16 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260285', 'tblTempUsageDetail_20' ) start [2025-01-16 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260285', 'tblTempUsageDetail_20' ) end [2025-01-16 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260285', 'tblTempVendorCDR_20' ) start [2025-01-16 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260285', 'tblTempVendorCDR_20' ) end [2025-01-16 10:16:20] Production.INFO: ProcessCDR(1,14260285,1,1,2) [2025-01-16 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260285', 'tblTempUsageDetail_20' ) start [2025-01-16 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260285', 'tblTempUsageDetail_20' ) end [2025-01-16 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:16:24] Production.INFO: ==24730== Releasing lock... [2025-01-16 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:16:24] Production.INFO: 46 MB #Memory Used# [2025-01-16 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:17:05 [end_date_ymd] => 2025-01-16 10:17:05 [RateCDR] => 1 ) [2025-01-16 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:17:05' and `end` < '2025-01-16 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:17:19] Production.INFO: count ==2401 [2025-01-16 10:17:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:17:05 - End Time 2025-01-16 10:17:05 [2025-01-16 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260290', 'tblTempUsageDetail_20' ) start [2025-01-16 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260290', 'tblTempUsageDetail_20' ) end [2025-01-16 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260290', 'tblTempVendorCDR_20' ) start [2025-01-16 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260290', 'tblTempVendorCDR_20' ) end [2025-01-16 10:17:20] Production.INFO: ProcessCDR(1,14260290,1,1,2) [2025-01-16 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260290', 'tblTempUsageDetail_20' ) start [2025-01-16 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260290', 'tblTempUsageDetail_20' ) end [2025-01-16 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:17:24] Production.INFO: ==24826== Releasing lock... [2025-01-16 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:17:24] Production.INFO: 46 MB #Memory Used# [2025-01-16 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:18:05 [end_date_ymd] => 2025-01-16 10:18:05 [RateCDR] => 1 ) [2025-01-16 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:18:05' and `end` < '2025-01-16 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:18:21] Production.INFO: count ==2422 [2025-01-16 10:18:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:18:05 - End Time 2025-01-16 10:18:05 [2025-01-16 10:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260295', 'tblTempUsageDetail_20' ) start [2025-01-16 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260295', 'tblTempUsageDetail_20' ) end [2025-01-16 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260295', 'tblTempVendorCDR_20' ) start [2025-01-16 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260295', 'tblTempVendorCDR_20' ) end [2025-01-16 10:18:22] Production.INFO: ProcessCDR(1,14260295,1,1,2) [2025-01-16 10:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260295', 'tblTempUsageDetail_20' ) start [2025-01-16 10:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260295', 'tblTempUsageDetail_20' ) end [2025-01-16 10:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:18:27] Production.INFO: ==24924== Releasing lock... [2025-01-16 10:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:18:27] Production.INFO: 46.25 MB #Memory Used# [2025-01-16 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:19:05 [end_date_ymd] => 2025-01-16 10:19:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 07:19:05' and `end` < '2025-01-16 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-01-16 10:19:21] Production.INFO: count ==2453 [2025-01-16 10:19:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:19:05 - End Time 2025-01-16 10:19:05 [2025-01-16 10:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260300', 'tblTempUsageDetail_20' ) start [2025-01-16 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260300', 'tblTempUsageDetail_20' ) end [2025-01-16 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260300', 'tblTempVendorCDR_20' ) start [2025-01-16 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260300', 'tblTempVendorCDR_20' ) end [2025-01-16 10:19:22] Production.INFO: ProcessCDR(1,14260300,1,1,2) [2025-01-16 10:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260300', 'tblTempUsageDetail_20' ) start [2025-01-16 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260300', 'tblTempUsageDetail_20' ) end [2025-01-16 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:19:28] Production.INFO: ==25027== Releasing lock... [2025-01-16 10:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:19:28] Production.INFO: 46.5 MB #Memory Used# [2025-01-16 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:20:05 [end_date_ymd] => 2025-01-16 10:20:05 [RateCDR] => 1 ) [2025-01-16 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:20:05' and `end` < '2025-01-16 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:20:31] Production.INFO: count ==2505 [2025-01-16 10:20:32] Production.ERROR: pbx CDR StartTime 2025-01-16 07:20:05 - End Time 2025-01-16 10:20:05 [2025-01-16 10:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260306', 'tblTempUsageDetail_20' ) start [2025-01-16 10:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260306', 'tblTempUsageDetail_20' ) end [2025-01-16 10:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260306', 'tblTempVendorCDR_20' ) start [2025-01-16 10:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260306', 'tblTempVendorCDR_20' ) end [2025-01-16 10:20:32] Production.INFO: ProcessCDR(1,14260306,1,1,2) [2025-01-16 10:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260306', 'tblTempUsageDetail_20' ) start [2025-01-16 10:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260306', 'tblTempUsageDetail_20' ) end [2025-01-16 10:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:20:37] Production.INFO: ==25169== Releasing lock... [2025-01-16 10:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:20:37] Production.INFO: 46.75 MB #Memory Used# [2025-01-16 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:21:05 [end_date_ymd] => 2025-01-16 10:21:05 [RateCDR] => 1 ) [2025-01-16 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:21:05' and `end` < '2025-01-16 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:21:22] Production.INFO: count ==2623 [2025-01-16 10:21:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:21:05 - End Time 2025-01-16 10:21:05 [2025-01-16 10:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260311', 'tblTempUsageDetail_20' ) start [2025-01-16 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260311', 'tblTempUsageDetail_20' ) end [2025-01-16 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260311', 'tblTempVendorCDR_20' ) start [2025-01-16 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260311', 'tblTempVendorCDR_20' ) end [2025-01-16 10:21:23] Production.INFO: ProcessCDR(1,14260311,1,1,2) [2025-01-16 10:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260311', 'tblTempUsageDetail_20' ) start [2025-01-16 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260311', 'tblTempUsageDetail_20' ) end [2025-01-16 10:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:21:28] Production.INFO: ==25267== Releasing lock... [2025-01-16 10:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:21:28] Production.INFO: 47.75 MB #Memory Used# [2025-01-16 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:22:05 [end_date_ymd] => 2025-01-16 10:22:05 [RateCDR] => 1 ) [2025-01-16 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:22:05' and `end` < '2025-01-16 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:22:21] Production.INFO: count ==2650 [2025-01-16 10:22:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:22:05 - End Time 2025-01-16 10:22:05 [2025-01-16 10:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260316', 'tblTempUsageDetail_20' ) start [2025-01-16 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260316', 'tblTempUsageDetail_20' ) end [2025-01-16 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260316', 'tblTempVendorCDR_20' ) start [2025-01-16 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260316', 'tblTempVendorCDR_20' ) end [2025-01-16 10:22:22] Production.INFO: ProcessCDR(1,14260316,1,1,2) [2025-01-16 10:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260316', 'tblTempUsageDetail_20' ) start [2025-01-16 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260316', 'tblTempUsageDetail_20' ) end [2025-01-16 10:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:22:27] Production.INFO: ==25362== Releasing lock... [2025-01-16 10:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:22:27] Production.INFO: 48 MB #Memory Used# [2025-01-16 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:23:05 [end_date_ymd] => 2025-01-16 10:23:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 07:23:05' and `end` < '2025-01-16 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-01-16 10:23:23] Production.INFO: count ==2676 [2025-01-16 10:23:24] Production.ERROR: pbx CDR StartTime 2025-01-16 07:23:05 - End Time 2025-01-16 10:23:05 [2025-01-16 10:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260321', 'tblTempUsageDetail_20' ) start [2025-01-16 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260321', 'tblTempUsageDetail_20' ) end [2025-01-16 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260321', 'tblTempVendorCDR_20' ) start [2025-01-16 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260321', 'tblTempVendorCDR_20' ) end [2025-01-16 10:23:24] Production.INFO: ProcessCDR(1,14260321,1,1,2) [2025-01-16 10:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260321', 'tblTempUsageDetail_20' ) start [2025-01-16 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260321', 'tblTempUsageDetail_20' ) end [2025-01-16 10:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:23:29] Production.INFO: ==25460== Releasing lock... [2025-01-16 10:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:23:29] Production.INFO: 48.25 MB #Memory Used# [2025-01-16 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:24:05 [end_date_ymd] => 2025-01-16 10:24:05 [RateCDR] => 1 ) [2025-01-16 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:24:05' and `end` < '2025-01-16 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:24:20] Production.INFO: count ==2694 [2025-01-16 10:24:21] Production.ERROR: pbx CDR StartTime 2025-01-16 07:24:05 - End Time 2025-01-16 10:24:05 [2025-01-16 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260326', 'tblTempUsageDetail_20' ) start [2025-01-16 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260326', 'tblTempUsageDetail_20' ) end [2025-01-16 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260326', 'tblTempVendorCDR_20' ) start [2025-01-16 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260326', 'tblTempVendorCDR_20' ) end [2025-01-16 10:24:21] Production.INFO: ProcessCDR(1,14260326,1,1,2) [2025-01-16 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260326', 'tblTempUsageDetail_20' ) start [2025-01-16 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260326', 'tblTempUsageDetail_20' ) end [2025-01-16 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:24:24] Production.INFO: ==25561== Releasing lock... [2025-01-16 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:24:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-16 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:25:05 [end_date_ymd] => 2025-01-16 10:25:05 [RateCDR] => 1 ) [2025-01-16 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:25:05' and `end` < '2025-01-16 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:25:27] Production.INFO: count ==2702 [2025-01-16 10:25:28] Production.ERROR: pbx CDR StartTime 2025-01-16 07:25:05 - End Time 2025-01-16 10:25:05 [2025-01-16 10:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260331', 'tblTempUsageDetail_20' ) start [2025-01-16 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260331', 'tblTempUsageDetail_20' ) end [2025-01-16 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260331', 'tblTempVendorCDR_20' ) start [2025-01-16 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260331', 'tblTempVendorCDR_20' ) end [2025-01-16 10:25:28] Production.INFO: ProcessCDR(1,14260331,1,1,2) [2025-01-16 10:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260331', 'tblTempUsageDetail_20' ) start [2025-01-16 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260331', 'tblTempUsageDetail_20' ) end [2025-01-16 10:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:25:33] Production.INFO: ==25659== Releasing lock... [2025-01-16 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:25:33] Production.INFO: 48.5 MB #Memory Used# [2025-01-16 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:26:05 [end_date_ymd] => 2025-01-16 10:26:05 [RateCDR] => 1 ) [2025-01-16 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:26:05' and `end` < '2025-01-16 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:26:21] Production.INFO: count ==2730 [2025-01-16 10:26:22] Production.ERROR: pbx CDR StartTime 2025-01-16 07:26:05 - End Time 2025-01-16 10:26:05 [2025-01-16 10:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260336', 'tblTempUsageDetail_20' ) start [2025-01-16 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260336', 'tblTempUsageDetail_20' ) end [2025-01-16 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260336', 'tblTempVendorCDR_20' ) start [2025-01-16 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260336', 'tblTempVendorCDR_20' ) end [2025-01-16 10:26:23] Production.INFO: ProcessCDR(1,14260336,1,1,2) [2025-01-16 10:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260336', 'tblTempUsageDetail_20' ) start [2025-01-16 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260336', 'tblTempUsageDetail_20' ) end [2025-01-16 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:26:27] Production.INFO: ==25736== Releasing lock... [2025-01-16 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:26:27] Production.INFO: 49.25 MB #Memory Used# [2025-01-16 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:27:05 [end_date_ymd] => 2025-01-16 10:27:05 [RateCDR] => 1 ) [2025-01-16 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:27:05' and `end` < '2025-01-16 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:27:18] Production.INFO: count ==2745 [2025-01-16 10:27:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:27:05 - End Time 2025-01-16 10:27:05 [2025-01-16 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260341', 'tblTempUsageDetail_20' ) start [2025-01-16 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260341', 'tblTempUsageDetail_20' ) end [2025-01-16 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260341', 'tblTempVendorCDR_20' ) start [2025-01-16 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260341', 'tblTempVendorCDR_20' ) end [2025-01-16 10:27:19] Production.INFO: ProcessCDR(1,14260341,1,1,2) [2025-01-16 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260341', 'tblTempUsageDetail_20' ) start [2025-01-16 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260341', 'tblTempUsageDetail_20' ) end [2025-01-16 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:27:24] Production.INFO: ==25809== Releasing lock... [2025-01-16 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:27:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-16 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:28:05 [end_date_ymd] => 2025-01-16 10:28:05 [RateCDR] => 1 ) [2025-01-16 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:28:05' and `end` < '2025-01-16 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:28:23] Production.INFO: count ==2778 [2025-01-16 10:28:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:28:05 - End Time 2025-01-16 10:28:05 [2025-01-16 10:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260346', 'tblTempUsageDetail_20' ) start [2025-01-16 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260346', 'tblTempUsageDetail_20' ) end [2025-01-16 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260346', 'tblTempVendorCDR_20' ) start [2025-01-16 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260346', 'tblTempVendorCDR_20' ) end [2025-01-16 10:28:25] Production.INFO: ProcessCDR(1,14260346,1,1,2) [2025-01-16 10:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260346', 'tblTempUsageDetail_20' ) start [2025-01-16 10:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260346', 'tblTempUsageDetail_20' ) end [2025-01-16 10:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:28:28] Production.INFO: ==25880== Releasing lock... [2025-01-16 10:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:28:28] Production.INFO: 49 MB #Memory Used# [2025-01-16 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:29:04 [end_date_ymd] => 2025-01-16 10:29:04 [RateCDR] => 1 ) [2025-01-16 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:29:04' and `end` < '2025-01-16 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:29:20] Production.INFO: count ==2825 [2025-01-16 10:29:21] Production.ERROR: pbx CDR StartTime 2025-01-16 07:29:04 - End Time 2025-01-16 10:29:04 [2025-01-16 10:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260351', 'tblTempUsageDetail_20' ) start [2025-01-16 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260351', 'tblTempUsageDetail_20' ) end [2025-01-16 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260351', 'tblTempVendorCDR_20' ) start [2025-01-16 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260351', 'tblTempVendorCDR_20' ) end [2025-01-16 10:29:21] Production.INFO: ProcessCDR(1,14260351,1,1,2) [2025-01-16 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260351', 'tblTempUsageDetail_20' ) start [2025-01-16 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260351', 'tblTempUsageDetail_20' ) end [2025-01-16 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:29:26] Production.INFO: ==25951== Releasing lock... [2025-01-16 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:29:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-16 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:30:05 [end_date_ymd] => 2025-01-16 10:30:05 [RateCDR] => 1 ) [2025-01-16 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:30:05' and `end` < '2025-01-16 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:30:30] Production.INFO: count ==2851 [2025-01-16 10:30:31] Production.ERROR: pbx CDR StartTime 2025-01-16 07:30:05 - End Time 2025-01-16 10:30:05 [2025-01-16 10:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260357', 'tblTempUsageDetail_20' ) start [2025-01-16 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260357', 'tblTempUsageDetail_20' ) end [2025-01-16 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260357', 'tblTempVendorCDR_20' ) start [2025-01-16 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260357', 'tblTempVendorCDR_20' ) end [2025-01-16 10:30:31] Production.INFO: ProcessCDR(1,14260357,1,1,2) [2025-01-16 10:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260357', 'tblTempUsageDetail_20' ) start [2025-01-16 10:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260357', 'tblTempUsageDetail_20' ) end [2025-01-16 10:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:30:36] Production.INFO: ==26030== Releasing lock... [2025-01-16 10:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:30:36] Production.INFO: 49.25 MB #Memory Used# [2025-01-16 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:31:05 [end_date_ymd] => 2025-01-16 10:31:05 [RateCDR] => 1 ) [2025-01-16 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:31:05' and `end` < '2025-01-16 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:31:22] Production.INFO: count ==2917 [2025-01-16 10:31:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:31:05 - End Time 2025-01-16 10:31:05 [2025-01-16 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260362', 'tblTempUsageDetail_20' ) start [2025-01-16 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260362', 'tblTempUsageDetail_20' ) end [2025-01-16 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260362', 'tblTempVendorCDR_20' ) start [2025-01-16 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260362', 'tblTempVendorCDR_20' ) end [2025-01-16 10:31:23] Production.INFO: ProcessCDR(1,14260362,1,1,2) [2025-01-16 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260362', 'tblTempUsageDetail_20' ) start [2025-01-16 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260362', 'tblTempUsageDetail_20' ) end [2025-01-16 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:31:28] Production.INFO: ==26102== Releasing lock... [2025-01-16 10:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:31:28] Production.INFO: 49.75 MB #Memory Used# [2025-01-16 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:32:05 [end_date_ymd] => 2025-01-16 10:32:05 [RateCDR] => 1 ) [2025-01-16 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:32:05' and `end` < '2025-01-16 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:32:23] Production.INFO: count ==2958 [2025-01-16 10:32:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:32:05 - End Time 2025-01-16 10:32:05 [2025-01-16 10:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260367', 'tblTempUsageDetail_20' ) start [2025-01-16 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260367', 'tblTempUsageDetail_20' ) end [2025-01-16 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260367', 'tblTempVendorCDR_20' ) start [2025-01-16 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260367', 'tblTempVendorCDR_20' ) end [2025-01-16 10:32:25] Production.INFO: ProcessCDR(1,14260367,1,1,2) [2025-01-16 10:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260367', 'tblTempUsageDetail_20' ) start [2025-01-16 10:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260367', 'tblTempUsageDetail_20' ) end [2025-01-16 10:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:32:30] Production.INFO: ==26171== Releasing lock... [2025-01-16 10:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:32:30] Production.INFO: 49.75 MB #Memory Used# [2025-01-16 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:33:05 [end_date_ymd] => 2025-01-16 10:33:05 [RateCDR] => 1 ) [2025-01-16 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:33:05' and `end` < '2025-01-16 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:33:22] Production.INFO: count ==2968 [2025-01-16 10:33:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:33:05 - End Time 2025-01-16 10:33:05 [2025-01-16 10:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260372', 'tblTempUsageDetail_20' ) start [2025-01-16 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260372', 'tblTempUsageDetail_20' ) end [2025-01-16 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260372', 'tblTempVendorCDR_20' ) start [2025-01-16 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260372', 'tblTempVendorCDR_20' ) end [2025-01-16 10:33:23] Production.INFO: ProcessCDR(1,14260372,1,1,2) [2025-01-16 10:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260372', 'tblTempUsageDetail_20' ) start [2025-01-16 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260372', 'tblTempUsageDetail_20' ) end [2025-01-16 10:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:33:28] Production.INFO: ==26243== Releasing lock... [2025-01-16 10:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:33:28] Production.INFO: 50 MB #Memory Used# [2025-01-16 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:34:05 [end_date_ymd] => 2025-01-16 10:34:05 [RateCDR] => 1 ) [2025-01-16 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:34:05' and `end` < '2025-01-16 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:34:30] Production.INFO: count ==2987 [2025-01-16 10:34:31] Production.ERROR: pbx CDR StartTime 2025-01-16 07:34:05 - End Time 2025-01-16 10:34:05 [2025-01-16 10:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260377', 'tblTempUsageDetail_20' ) start [2025-01-16 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260377', 'tblTempUsageDetail_20' ) end [2025-01-16 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260377', 'tblTempVendorCDR_20' ) start [2025-01-16 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260377', 'tblTempVendorCDR_20' ) end [2025-01-16 10:34:31] Production.INFO: ProcessCDR(1,14260377,1,1,2) [2025-01-16 10:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:34:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:34:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260377', 'tblTempUsageDetail_20' ) start [2025-01-16 10:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260377', 'tblTempUsageDetail_20' ) end [2025-01-16 10:34:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:34:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:34:36] Production.INFO: ==26312== Releasing lock... [2025-01-16 10:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:34:36] Production.INFO: 50.5 MB #Memory Used# [2025-01-16 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:35:05 [end_date_ymd] => 2025-01-16 10:35:05 [RateCDR] => 1 ) [2025-01-16 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:35:05' and `end` < '2025-01-16 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:35:29] Production.INFO: count ==2998 [2025-01-16 10:35:31] Production.ERROR: pbx CDR StartTime 2025-01-16 07:35:05 - End Time 2025-01-16 10:35:05 [2025-01-16 10:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260382', 'tblTempUsageDetail_20' ) start [2025-01-16 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260382', 'tblTempUsageDetail_20' ) end [2025-01-16 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260382', 'tblTempVendorCDR_20' ) start [2025-01-16 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260382', 'tblTempVendorCDR_20' ) end [2025-01-16 10:35:31] Production.INFO: ProcessCDR(1,14260382,1,1,2) [2025-01-16 10:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260382', 'tblTempUsageDetail_20' ) start [2025-01-16 10:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260382', 'tblTempUsageDetail_20' ) end [2025-01-16 10:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:35:36] Production.INFO: ==26422== Releasing lock... [2025-01-16 10:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:35:36] Production.INFO: 50.25 MB #Memory Used# [2025-01-16 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:36:05 [end_date_ymd] => 2025-01-16 10:36:05 [RateCDR] => 1 ) [2025-01-16 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:36:05' and `end` < '2025-01-16 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:36:22] Production.INFO: count ==3027 [2025-01-16 10:36:24] Production.ERROR: pbx CDR StartTime 2025-01-16 07:36:05 - End Time 2025-01-16 10:36:05 [2025-01-16 10:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260387', 'tblTempUsageDetail_20' ) start [2025-01-16 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260387', 'tblTempUsageDetail_20' ) end [2025-01-16 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260387', 'tblTempVendorCDR_20' ) start [2025-01-16 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260387', 'tblTempVendorCDR_20' ) end [2025-01-16 10:36:24] Production.INFO: ProcessCDR(1,14260387,1,1,2) [2025-01-16 10:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260387', 'tblTempUsageDetail_20' ) start [2025-01-16 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260387', 'tblTempUsageDetail_20' ) end [2025-01-16 10:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:36:28] Production.INFO: ==26492== Releasing lock... [2025-01-16 10:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:36:28] Production.INFO: 51.25 MB #Memory Used# [2025-01-16 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:37:05 [end_date_ymd] => 2025-01-16 10:37:05 [RateCDR] => 1 ) [2025-01-16 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:37:05' and `end` < '2025-01-16 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:37:21] Production.INFO: count ==3059 [2025-01-16 10:37:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:37:05 - End Time 2025-01-16 10:37:05 [2025-01-16 10:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260392', 'tblTempUsageDetail_20' ) start [2025-01-16 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260392', 'tblTempUsageDetail_20' ) end [2025-01-16 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260392', 'tblTempVendorCDR_20' ) start [2025-01-16 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260392', 'tblTempVendorCDR_20' ) end [2025-01-16 10:37:23] Production.INFO: ProcessCDR(1,14260392,1,1,2) [2025-01-16 10:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260392', 'tblTempUsageDetail_20' ) start [2025-01-16 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260392', 'tblTempUsageDetail_20' ) end [2025-01-16 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:37:28] Production.INFO: ==26561== Releasing lock... [2025-01-16 10:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:37:28] Production.INFO: 51.25 MB #Memory Used# [2025-01-16 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:38:05 [end_date_ymd] => 2025-01-16 10:38:05 [RateCDR] => 1 ) [2025-01-16 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:38:05' and `end` < '2025-01-16 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:38:22] Production.INFO: count ==3066 [2025-01-16 10:38:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:38:05 - End Time 2025-01-16 10:38:05 [2025-01-16 10:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260397', 'tblTempUsageDetail_20' ) start [2025-01-16 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260397', 'tblTempUsageDetail_20' ) end [2025-01-16 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260397', 'tblTempVendorCDR_20' ) start [2025-01-16 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260397', 'tblTempVendorCDR_20' ) end [2025-01-16 10:38:23] Production.INFO: ProcessCDR(1,14260397,1,1,2) [2025-01-16 10:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260397', 'tblTempUsageDetail_20' ) start [2025-01-16 10:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260397', 'tblTempUsageDetail_20' ) end [2025-01-16 10:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:38:28] Production.INFO: ==26631== Releasing lock... [2025-01-16 10:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:38:28] Production.INFO: 51.5 MB #Memory Used# [2025-01-16 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:39:05 [end_date_ymd] => 2025-01-16 10:39:05 [RateCDR] => 1 ) [2025-01-16 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:39:05' and `end` < '2025-01-16 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:39:18] Production.INFO: count ==3068 [2025-01-16 10:39:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:39:05 - End Time 2025-01-16 10:39:05 [2025-01-16 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260402', 'tblTempUsageDetail_20' ) start [2025-01-16 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260402', 'tblTempUsageDetail_20' ) end [2025-01-16 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260402', 'tblTempVendorCDR_20' ) start [2025-01-16 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260402', 'tblTempVendorCDR_20' ) end [2025-01-16 10:39:19] Production.INFO: ProcessCDR(1,14260402,1,1,2) [2025-01-16 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260402', 'tblTempUsageDetail_20' ) start [2025-01-16 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260402', 'tblTempUsageDetail_20' ) end [2025-01-16 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:39:24] Production.INFO: ==26706== Releasing lock... [2025-01-16 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:39:24] Production.INFO: 51 MB #Memory Used# [2025-01-16 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:40:05 [end_date_ymd] => 2025-01-16 10:40:05 [RateCDR] => 1 ) [2025-01-16 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:40:05' and `end` < '2025-01-16 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:40:29] Production.INFO: count ==3118 [2025-01-16 10:40:30] Production.ERROR: pbx CDR StartTime 2025-01-16 07:40:05 - End Time 2025-01-16 10:40:05 [2025-01-16 10:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260407', 'tblTempUsageDetail_20' ) start [2025-01-16 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260407', 'tblTempUsageDetail_20' ) end [2025-01-16 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260407', 'tblTempVendorCDR_20' ) start [2025-01-16 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260407', 'tblTempVendorCDR_20' ) end [2025-01-16 10:40:30] Production.INFO: ProcessCDR(1,14260407,1,1,2) [2025-01-16 10:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260407', 'tblTempUsageDetail_20' ) start [2025-01-16 10:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260407', 'tblTempUsageDetail_20' ) end [2025-01-16 10:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:40:36] Production.INFO: ==26790== Releasing lock... [2025-01-16 10:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:40:36] Production.INFO: 51.5 MB #Memory Used# [2025-01-16 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:41:05 [end_date_ymd] => 2025-01-16 10:41:05 [RateCDR] => 1 ) [2025-01-16 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:41:05' and `end` < '2025-01-16 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:41:25] Production.INFO: count ==3244 [2025-01-16 10:41:26] Production.ERROR: pbx CDR StartTime 2025-01-16 07:41:05 - End Time 2025-01-16 10:41:05 [2025-01-16 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260413', 'tblTempUsageDetail_20' ) start [2025-01-16 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260413', 'tblTempUsageDetail_20' ) end [2025-01-16 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260413', 'tblTempVendorCDR_20' ) start [2025-01-16 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260413', 'tblTempVendorCDR_20' ) end [2025-01-16 10:41:26] Production.INFO: ProcessCDR(1,14260413,1,1,2) [2025-01-16 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260413', 'tblTempUsageDetail_20' ) start [2025-01-16 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260413', 'tblTempUsageDetail_20' ) end [2025-01-16 10:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:41:31] Production.INFO: ==26872== Releasing lock... [2025-01-16 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:41:31] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:42:04 [end_date_ymd] => 2025-01-16 10:42:04 [RateCDR] => 1 ) [2025-01-16 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:42:04' and `end` < '2025-01-16 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:42:17] Production.INFO: count ==3257 [2025-01-16 10:42:19] Production.ERROR: pbx CDR StartTime 2025-01-16 07:42:04 - End Time 2025-01-16 10:42:04 [2025-01-16 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260418', 'tblTempUsageDetail_20' ) start [2025-01-16 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260418', 'tblTempUsageDetail_20' ) end [2025-01-16 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260418', 'tblTempVendorCDR_20' ) start [2025-01-16 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260418', 'tblTempVendorCDR_20' ) end [2025-01-16 10:42:19] Production.INFO: ProcessCDR(1,14260418,1,1,2) [2025-01-16 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260418', 'tblTempUsageDetail_20' ) start [2025-01-16 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260418', 'tblTempUsageDetail_20' ) end [2025-01-16 10:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:42:23] Production.INFO: ==26950== Releasing lock... [2025-01-16 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:42:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:43:05 [end_date_ymd] => 2025-01-16 10:43:05 [RateCDR] => 1 ) [2025-01-16 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:43:05' and `end` < '2025-01-16 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:43:19] Production.INFO: count ==3287 [2025-01-16 10:43:21] Production.ERROR: pbx CDR StartTime 2025-01-16 07:43:05 - End Time 2025-01-16 10:43:05 [2025-01-16 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260423', 'tblTempUsageDetail_20' ) start [2025-01-16 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260423', 'tblTempUsageDetail_20' ) end [2025-01-16 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260423', 'tblTempVendorCDR_20' ) start [2025-01-16 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260423', 'tblTempVendorCDR_20' ) end [2025-01-16 10:43:21] Production.INFO: ProcessCDR(1,14260423,1,1,2) [2025-01-16 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260423', 'tblTempUsageDetail_20' ) start [2025-01-16 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260423', 'tblTempUsageDetail_20' ) end [2025-01-16 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:43:26] Production.INFO: ==27025== Releasing lock... [2025-01-16 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:43:26] Production.INFO: 53 MB #Memory Used# [2025-01-16 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:44:05 [end_date_ymd] => 2025-01-16 10:44:05 [RateCDR] => 1 ) [2025-01-16 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:44:05' and `end` < '2025-01-16 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:44:24] Production.INFO: count ==3314 [2025-01-16 10:44:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:44:05 - End Time 2025-01-16 10:44:05 [2025-01-16 10:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260428', 'tblTempUsageDetail_20' ) start [2025-01-16 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260428', 'tblTempUsageDetail_20' ) end [2025-01-16 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260428', 'tblTempVendorCDR_20' ) start [2025-01-16 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260428', 'tblTempVendorCDR_20' ) end [2025-01-16 10:44:26] Production.INFO: ProcessCDR(1,14260428,1,1,2) [2025-01-16 10:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260428', 'tblTempUsageDetail_20' ) start [2025-01-16 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260428', 'tblTempUsageDetail_20' ) end [2025-01-16 10:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:44:31] Production.INFO: ==27126== Releasing lock... [2025-01-16 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:44:31] Production.INFO: 53 MB #Memory Used# [2025-01-16 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:45:05 [end_date_ymd] => 2025-01-16 10:45:05 [RateCDR] => 1 ) [2025-01-16 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:45:05' and `end` < '2025-01-16 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:45:30] Production.INFO: count ==3336 [2025-01-16 10:45:31] Production.ERROR: pbx CDR StartTime 2025-01-16 07:45:05 - End Time 2025-01-16 10:45:05 [2025-01-16 10:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260433', 'tblTempUsageDetail_20' ) start [2025-01-16 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260433', 'tblTempUsageDetail_20' ) end [2025-01-16 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260433', 'tblTempVendorCDR_20' ) start [2025-01-16 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260433', 'tblTempVendorCDR_20' ) end [2025-01-16 10:45:31] Production.INFO: ProcessCDR(1,14260433,1,1,2) [2025-01-16 10:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260433', 'tblTempUsageDetail_20' ) start [2025-01-16 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260433', 'tblTempUsageDetail_20' ) end [2025-01-16 10:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:45:36] Production.INFO: ==27232== Releasing lock... [2025-01-16 10:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:45:36] Production.INFO: 54 MB #Memory Used# [2025-01-16 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:46:05 [end_date_ymd] => 2025-01-16 10:46:05 [RateCDR] => 1 ) [2025-01-16 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:46:05' and `end` < '2025-01-16 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:46:23] Production.INFO: count ==3343 [2025-01-16 10:46:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:46:05 - End Time 2025-01-16 10:46:05 [2025-01-16 10:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260438', 'tblTempUsageDetail_20' ) start [2025-01-16 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260438', 'tblTempUsageDetail_20' ) end [2025-01-16 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260438', 'tblTempVendorCDR_20' ) start [2025-01-16 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260438', 'tblTempVendorCDR_20' ) end [2025-01-16 10:46:25] Production.INFO: ProcessCDR(1,14260438,1,1,2) [2025-01-16 10:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260438', 'tblTempUsageDetail_20' ) start [2025-01-16 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260438', 'tblTempUsageDetail_20' ) end [2025-01-16 10:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:46:30] Production.INFO: ==27341== Releasing lock... [2025-01-16 10:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:46:30] Production.INFO: 53.5 MB #Memory Used# [2025-01-16 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:47:05 [end_date_ymd] => 2025-01-16 10:47:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 07:47:05' and `end` < '2025-01-16 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-01-16 10:47:23] Production.INFO: count ==3366 [2025-01-16 10:47:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:47:05 - End Time 2025-01-16 10:47:05 [2025-01-16 10:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260443', 'tblTempUsageDetail_20' ) start [2025-01-16 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260443', 'tblTempUsageDetail_20' ) end [2025-01-16 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260443', 'tblTempVendorCDR_20' ) start [2025-01-16 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260443', 'tblTempVendorCDR_20' ) end [2025-01-16 10:47:25] Production.INFO: ProcessCDR(1,14260443,1,1,2) [2025-01-16 10:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260443', 'tblTempUsageDetail_20' ) start [2025-01-16 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260443', 'tblTempUsageDetail_20' ) end [2025-01-16 10:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:47:30] Production.INFO: ==27460== Releasing lock... [2025-01-16 10:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:47:30] Production.INFO: 53.25 MB #Memory Used# [2025-01-16 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:48:04 [end_date_ymd] => 2025-01-16 10:48:04 [RateCDR] => 1 ) [2025-01-16 10:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:48:04' and `end` < '2025-01-16 10:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:48:22] Production.INFO: count ==3396 [2025-01-16 10:48:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:48:04 - End Time 2025-01-16 10:48:04 [2025-01-16 10:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260448', 'tblTempUsageDetail_20' ) start [2025-01-16 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260448', 'tblTempUsageDetail_20' ) end [2025-01-16 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260448', 'tblTempVendorCDR_20' ) start [2025-01-16 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260448', 'tblTempVendorCDR_20' ) end [2025-01-16 10:48:23] Production.INFO: ProcessCDR(1,14260448,1,1,2) [2025-01-16 10:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260448', 'tblTempUsageDetail_20' ) start [2025-01-16 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260448', 'tblTempUsageDetail_20' ) end [2025-01-16 10:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:48:28] Production.INFO: ==27562== Releasing lock... [2025-01-16 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:48:28] Production.INFO: 53.75 MB #Memory Used# [2025-01-16 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:49:05 [end_date_ymd] => 2025-01-16 10:49:05 [RateCDR] => 1 ) [2025-01-16 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:49:05' and `end` < '2025-01-16 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:49:21] Production.INFO: count ==3413 [2025-01-16 10:49:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:49:05 - End Time 2025-01-16 10:49:05 [2025-01-16 10:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260453', 'tblTempUsageDetail_20' ) start [2025-01-16 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260453', 'tblTempUsageDetail_20' ) end [2025-01-16 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260453', 'tblTempVendorCDR_20' ) start [2025-01-16 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260453', 'tblTempVendorCDR_20' ) end [2025-01-16 10:49:23] Production.INFO: ProcessCDR(1,14260453,1,1,2) [2025-01-16 10:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260453', 'tblTempUsageDetail_20' ) start [2025-01-16 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260453', 'tblTempUsageDetail_20' ) end [2025-01-16 10:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:49:28] Production.INFO: ==27673== Releasing lock... [2025-01-16 10:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:49:28] Production.INFO: 54 MB #Memory Used# [2025-01-16 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:50:06 [end_date_ymd] => 2025-01-16 10:50:06 [RateCDR] => 1 ) [2025-01-16 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:50:06' and `end` < '2025-01-16 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:50:24] Production.INFO: count ==3434 [2025-01-16 10:50:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:50:06 - End Time 2025-01-16 10:50:06 [2025-01-16 10:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260459', 'tblTempUsageDetail_20' ) start [2025-01-16 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260459', 'tblTempUsageDetail_20' ) end [2025-01-16 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260459', 'tblTempVendorCDR_20' ) start [2025-01-16 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260459', 'tblTempVendorCDR_20' ) end [2025-01-16 10:50:25] Production.INFO: ProcessCDR(1,14260459,1,1,2) [2025-01-16 10:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260459', 'tblTempUsageDetail_20' ) start [2025-01-16 10:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260459', 'tblTempUsageDetail_20' ) end [2025-01-16 10:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:50:30] Production.INFO: ==27780== Releasing lock... [2025-01-16 10:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:50:30] Production.INFO: 53.5 MB #Memory Used# [2025-01-16 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:51:05 [end_date_ymd] => 2025-01-16 10:51:05 [RateCDR] => 1 ) [2025-01-16 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:51:05' and `end` < '2025-01-16 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:51:24] Production.INFO: count ==3561 [2025-01-16 10:51:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:51:05 - End Time 2025-01-16 10:51:05 [2025-01-16 10:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260464', 'tblTempUsageDetail_20' ) start [2025-01-16 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260464', 'tblTempUsageDetail_20' ) end [2025-01-16 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260464', 'tblTempVendorCDR_20' ) start [2025-01-16 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260464', 'tblTempVendorCDR_20' ) end [2025-01-16 10:51:25] Production.INFO: ProcessCDR(1,14260464,1,1,2) [2025-01-16 10:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260464', 'tblTempUsageDetail_20' ) start [2025-01-16 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260464', 'tblTempUsageDetail_20' ) end [2025-01-16 10:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:51:30] Production.INFO: ==27915== Releasing lock... [2025-01-16 10:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:51:30] Production.INFO: 54.5 MB #Memory Used# [2025-01-16 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:52:05 [end_date_ymd] => 2025-01-16 10:52:05 [RateCDR] => 1 ) [2025-01-16 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:52:05' and `end` < '2025-01-16 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:52:22] Production.INFO: count ==3566 [2025-01-16 10:52:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:52:05 - End Time 2025-01-16 10:52:05 [2025-01-16 10:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260469', 'tblTempUsageDetail_20' ) start [2025-01-16 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260469', 'tblTempUsageDetail_20' ) end [2025-01-16 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260469', 'tblTempVendorCDR_20' ) start [2025-01-16 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260469', 'tblTempVendorCDR_20' ) end [2025-01-16 10:52:23] Production.INFO: ProcessCDR(1,14260469,1,1,2) [2025-01-16 10:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260469', 'tblTempUsageDetail_20' ) start [2025-01-16 10:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260469', 'tblTempUsageDetail_20' ) end [2025-01-16 10:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:52:27] Production.INFO: ==28008== Releasing lock... [2025-01-16 10:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:52:27] Production.INFO: 54.75 MB #Memory Used# [2025-01-16 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:53:05 [end_date_ymd] => 2025-01-16 10:53:05 [RateCDR] => 1 ) [2025-01-16 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:53:05' and `end` < '2025-01-16 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:53:18] Production.INFO: count ==3605 [2025-01-16 10:53:20] Production.ERROR: pbx CDR StartTime 2025-01-16 07:53:05 - End Time 2025-01-16 10:53:05 [2025-01-16 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260474', 'tblTempUsageDetail_20' ) start [2025-01-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260474', 'tblTempUsageDetail_20' ) end [2025-01-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260474', 'tblTempVendorCDR_20' ) start [2025-01-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260474', 'tblTempVendorCDR_20' ) end [2025-01-16 10:53:20] Production.INFO: ProcessCDR(1,14260474,1,1,2) [2025-01-16 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260474', 'tblTempUsageDetail_20' ) start [2025-01-16 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260474', 'tblTempUsageDetail_20' ) end [2025-01-16 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:53:25] Production.INFO: ==28094== Releasing lock... [2025-01-16 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:53:25] Production.INFO: 55 MB #Memory Used# [2025-01-16 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:54:05 [end_date_ymd] => 2025-01-16 10:54:05 [RateCDR] => 1 ) [2025-01-16 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:54:05' and `end` < '2025-01-16 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:54:28] Production.INFO: count ==3628 [2025-01-16 10:54:30] Production.ERROR: pbx CDR StartTime 2025-01-16 07:54:05 - End Time 2025-01-16 10:54:05 [2025-01-16 10:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260479', 'tblTempUsageDetail_20' ) start [2025-01-16 10:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260479', 'tblTempUsageDetail_20' ) end [2025-01-16 10:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260479', 'tblTempVendorCDR_20' ) start [2025-01-16 10:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260479', 'tblTempVendorCDR_20' ) end [2025-01-16 10:54:30] Production.INFO: ProcessCDR(1,14260479,1,1,2) [2025-01-16 10:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260479', 'tblTempUsageDetail_20' ) start [2025-01-16 10:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260479', 'tblTempUsageDetail_20' ) end [2025-01-16 10:54:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:54:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:54:34] Production.INFO: ==28168== Releasing lock... [2025-01-16 10:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:54:34] Production.INFO: 55.5 MB #Memory Used# [2025-01-16 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:55:05 [end_date_ymd] => 2025-01-16 10:55:05 [RateCDR] => 1 ) [2025-01-16 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:55:05' and `end` < '2025-01-16 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:55:28] Production.INFO: count ==3682 [2025-01-16 10:55:29] Production.ERROR: pbx CDR StartTime 2025-01-16 07:55:05 - End Time 2025-01-16 10:55:05 [2025-01-16 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260484', 'tblTempUsageDetail_20' ) start [2025-01-16 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260484', 'tblTempUsageDetail_20' ) end [2025-01-16 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260484', 'tblTempVendorCDR_20' ) start [2025-01-16 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260484', 'tblTempVendorCDR_20' ) end [2025-01-16 10:55:30] Production.INFO: ProcessCDR(1,14260484,1,1,2) [2025-01-16 10:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260484', 'tblTempUsageDetail_20' ) start [2025-01-16 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260484', 'tblTempUsageDetail_20' ) end [2025-01-16 10:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:55:34] Production.INFO: ==28241== Releasing lock... [2025-01-16 10:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:55:34] Production.INFO: 55.5 MB #Memory Used# [2025-01-16 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:56:05 [end_date_ymd] => 2025-01-16 10:56:05 [RateCDR] => 1 ) [2025-01-16 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:56:05' and `end` < '2025-01-16 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:56:27] Production.INFO: count ==3703 [2025-01-16 10:56:28] Production.ERROR: pbx CDR StartTime 2025-01-16 07:56:05 - End Time 2025-01-16 10:56:05 [2025-01-16 10:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260489', 'tblTempUsageDetail_20' ) start [2025-01-16 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260489', 'tblTempUsageDetail_20' ) end [2025-01-16 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260489', 'tblTempVendorCDR_20' ) start [2025-01-16 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260489', 'tblTempVendorCDR_20' ) end [2025-01-16 10:56:29] Production.INFO: ProcessCDR(1,14260489,1,1,2) [2025-01-16 10:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260489', 'tblTempUsageDetail_20' ) start [2025-01-16 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260489', 'tblTempUsageDetail_20' ) end [2025-01-16 10:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:56:33] Production.INFO: ==28313== Releasing lock... [2025-01-16 10:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:56:33] Production.INFO: 56 MB #Memory Used# [2025-01-16 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:57:05 [end_date_ymd] => 2025-01-16 10:57:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 07:57:05' and `end` < '2025-01-16 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-01-16 10:57:22] Production.INFO: count ==3726 [2025-01-16 10:57:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:57:05 - End Time 2025-01-16 10:57:05 [2025-01-16 10:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260494', 'tblTempUsageDetail_20' ) start [2025-01-16 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260494', 'tblTempUsageDetail_20' ) end [2025-01-16 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260494', 'tblTempVendorCDR_20' ) start [2025-01-16 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260494', 'tblTempVendorCDR_20' ) end [2025-01-16 10:57:24] Production.INFO: ProcessCDR(1,14260494,1,1,2) [2025-01-16 10:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260494', 'tblTempUsageDetail_20' ) start [2025-01-16 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260494', 'tblTempUsageDetail_20' ) end [2025-01-16 10:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:57:28] Production.INFO: ==28385== Releasing lock... [2025-01-16 10:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:57:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:58:05 [end_date_ymd] => 2025-01-16 10:58:05 [RateCDR] => 1 ) [2025-01-16 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:58:05' and `end` < '2025-01-16 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:58:23] Production.INFO: count ==3782 [2025-01-16 10:58:25] Production.ERROR: pbx CDR StartTime 2025-01-16 07:58:05 - End Time 2025-01-16 10:58:05 [2025-01-16 10:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260499', 'tblTempUsageDetail_20' ) start [2025-01-16 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260499', 'tblTempUsageDetail_20' ) end [2025-01-16 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260499', 'tblTempVendorCDR_20' ) start [2025-01-16 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260499', 'tblTempVendorCDR_20' ) end [2025-01-16 10:58:25] Production.INFO: ProcessCDR(1,14260499,1,1,2) [2025-01-16 10:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260499', 'tblTempUsageDetail_20' ) start [2025-01-16 10:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260499', 'tblTempUsageDetail_20' ) end [2025-01-16 10:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:58:29] Production.INFO: ==28463== Releasing lock... [2025-01-16 10:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:58:29] Production.INFO: 56.5 MB #Memory Used# [2025-01-16 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 07:59:05 [end_date_ymd] => 2025-01-16 10:59:05 [RateCDR] => 1 ) [2025-01-16 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 07:59:05' and `end` < '2025-01-16 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 10:59:21] Production.INFO: count ==3808 [2025-01-16 10:59:23] Production.ERROR: pbx CDR StartTime 2025-01-16 07:59:05 - End Time 2025-01-16 10:59:05 [2025-01-16 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260504', 'tblTempUsageDetail_20' ) start [2025-01-16 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260504', 'tblTempUsageDetail_20' ) end [2025-01-16 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260504', 'tblTempVendorCDR_20' ) start [2025-01-16 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260504', 'tblTempVendorCDR_20' ) end [2025-01-16 10:59:23] Production.INFO: ProcessCDR(1,14260504,1,1,2) [2025-01-16 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 10:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260504', 'tblTempUsageDetail_20' ) start [2025-01-16 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260504', 'tblTempUsageDetail_20' ) end [2025-01-16 10:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 10:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 10:59:28] Production.INFO: ==28535== Releasing lock... [2025-01-16 10:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 10:59:28] Production.INFO: 56.75 MB #Memory Used# [2025-01-16 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:00:06 [end_date_ymd] => 2025-01-16 11:00:06 [RateCDR] => 1 ) [2025-01-16 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:00:06' and `end` < '2025-01-16 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:00:23] Production.INFO: count ==3810 [2025-01-16 11:00:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:00:06 - End Time 2025-01-16 11:00:06 [2025-01-16 11:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260509', 'tblTempUsageDetail_20' ) start [2025-01-16 11:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260509', 'tblTempUsageDetail_20' ) end [2025-01-16 11:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260509', 'tblTempVendorCDR_20' ) start [2025-01-16 11:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260509', 'tblTempVendorCDR_20' ) end [2025-01-16 11:00:25] Production.INFO: ProcessCDR(1,14260509,1,1,2) [2025-01-16 11:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260509', 'tblTempUsageDetail_20' ) start [2025-01-16 11:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260509', 'tblTempUsageDetail_20' ) end [2025-01-16 11:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:00:30] Production.INFO: ==28609== Releasing lock... [2025-01-16 11:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:00:30] Production.INFO: 56.5 MB #Memory Used# [2025-01-16 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:01:04 [end_date_ymd] => 2025-01-16 11:01:04 [RateCDR] => 1 ) [2025-01-16 11:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:01:04' and `end` < '2025-01-16 11:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:01:23] Production.INFO: count ==3900 [2025-01-16 11:01:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:01:04 - End Time 2025-01-16 11:01:04 [2025-01-16 11:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260515', 'tblTempUsageDetail_20' ) start [2025-01-16 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260515', 'tblTempUsageDetail_20' ) end [2025-01-16 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260515', 'tblTempVendorCDR_20' ) start [2025-01-16 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260515', 'tblTempVendorCDR_20' ) end [2025-01-16 11:01:25] Production.INFO: ProcessCDR(1,14260515,1,1,2) [2025-01-16 11:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260515', 'tblTempUsageDetail_20' ) start [2025-01-16 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260515', 'tblTempUsageDetail_20' ) end [2025-01-16 11:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:01:29] Production.INFO: ==28693== Releasing lock... [2025-01-16 11:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:01:29] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:02:05 [end_date_ymd] => 2025-01-16 11:02:05 [RateCDR] => 1 ) [2025-01-16 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:02:05' and `end` < '2025-01-16 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:02:23] Production.INFO: count ==3934 [2025-01-16 11:02:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:02:05 - End Time 2025-01-16 11:02:05 [2025-01-16 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260520', 'tblTempUsageDetail_20' ) start [2025-01-16 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260520', 'tblTempUsageDetail_20' ) end [2025-01-16 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260520', 'tblTempVendorCDR_20' ) start [2025-01-16 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260520', 'tblTempVendorCDR_20' ) end [2025-01-16 11:02:25] Production.INFO: ProcessCDR(1,14260520,1,1,2) [2025-01-16 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260520', 'tblTempUsageDetail_20' ) start [2025-01-16 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260520', 'tblTempUsageDetail_20' ) end [2025-01-16 11:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:02:29] Production.INFO: ==28844== Releasing lock... [2025-01-16 11:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:02:29] Production.INFO: 57.5 MB #Memory Used# [2025-01-16 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:03:05 [end_date_ymd] => 2025-01-16 11:03:05 [RateCDR] => 1 ) [2025-01-16 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:03:05' and `end` < '2025-01-16 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:03:22] Production.INFO: count ==3921 [2025-01-16 11:03:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:03:05 - End Time 2025-01-16 11:03:05 [2025-01-16 11:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260525', 'tblTempUsageDetail_20' ) start [2025-01-16 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260525', 'tblTempUsageDetail_20' ) end [2025-01-16 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260525', 'tblTempVendorCDR_20' ) start [2025-01-16 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260525', 'tblTempVendorCDR_20' ) end [2025-01-16 11:03:23] Production.INFO: ProcessCDR(1,14260525,1,1,2) [2025-01-16 11:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260525', 'tblTempUsageDetail_20' ) start [2025-01-16 11:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260525', 'tblTempUsageDetail_20' ) end [2025-01-16 11:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:03:29] Production.INFO: ==28915== Releasing lock... [2025-01-16 11:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:03:29] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:04:05 [end_date_ymd] => 2025-01-16 11:04:05 [RateCDR] => 1 ) [2025-01-16 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:04:05' and `end` < '2025-01-16 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:04:21] Production.INFO: count ==3919 [2025-01-16 11:04:22] Production.ERROR: pbx CDR StartTime 2025-01-16 08:04:05 - End Time 2025-01-16 11:04:05 [2025-01-16 11:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260530', 'tblTempUsageDetail_20' ) start [2025-01-16 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260530', 'tblTempUsageDetail_20' ) end [2025-01-16 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260530', 'tblTempVendorCDR_20' ) start [2025-01-16 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260530', 'tblTempVendorCDR_20' ) end [2025-01-16 11:04:22] Production.INFO: ProcessCDR(1,14260530,1,1,2) [2025-01-16 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260530', 'tblTempUsageDetail_20' ) start [2025-01-16 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260530', 'tblTempUsageDetail_20' ) end [2025-01-16 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:04:27] Production.INFO: ==28984== Releasing lock... [2025-01-16 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:04:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:05:05 [end_date_ymd] => 2025-01-16 11:05:05 [RateCDR] => 1 ) [2025-01-16 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:05:05' and `end` < '2025-01-16 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:05:26] Production.INFO: count ==3918 [2025-01-16 11:05:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:05:05 - End Time 2025-01-16 11:05:05 [2025-01-16 11:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260533', 'tblTempUsageDetail_20' ) start [2025-01-16 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260533', 'tblTempUsageDetail_20' ) end [2025-01-16 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260533', 'tblTempVendorCDR_20' ) start [2025-01-16 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260533', 'tblTempVendorCDR_20' ) end [2025-01-16 11:05:27] Production.INFO: ProcessCDR(1,14260533,1,1,2) [2025-01-16 11:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260533', 'tblTempUsageDetail_20' ) start [2025-01-16 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260533', 'tblTempUsageDetail_20' ) end [2025-01-16 11:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:05:32] Production.INFO: ==29133== Releasing lock... [2025-01-16 11:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:05:32] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:06:04 [end_date_ymd] => 2025-01-16 11:06:04 [RateCDR] => 1 ) [2025-01-16 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:06:04' and `end` < '2025-01-16 11:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:06:25] Production.INFO: count ==3918 [2025-01-16 11:06:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:06:04 - End Time 2025-01-16 11:06:04 [2025-01-16 11:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260540', 'tblTempUsageDetail_20' ) start [2025-01-16 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260540', 'tblTempUsageDetail_20' ) end [2025-01-16 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260540', 'tblTempVendorCDR_20' ) start [2025-01-16 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260540', 'tblTempVendorCDR_20' ) end [2025-01-16 11:06:27] Production.INFO: ProcessCDR(1,14260540,1,1,2) [2025-01-16 11:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260540', 'tblTempUsageDetail_20' ) start [2025-01-16 11:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260540', 'tblTempUsageDetail_20' ) end [2025-01-16 11:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:06:32] Production.INFO: ==29205== Releasing lock... [2025-01-16 11:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:06:32] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:07:05 [end_date_ymd] => 2025-01-16 11:07:05 [RateCDR] => 1 ) [2025-01-16 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:07:05' and `end` < '2025-01-16 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:07:24] Production.INFO: count ==3940 [2025-01-16 11:07:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:07:05 - End Time 2025-01-16 11:07:05 [2025-01-16 11:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260545', 'tblTempUsageDetail_20' ) start [2025-01-16 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260545', 'tblTempUsageDetail_20' ) end [2025-01-16 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260545', 'tblTempVendorCDR_20' ) start [2025-01-16 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260545', 'tblTempVendorCDR_20' ) end [2025-01-16 11:07:26] Production.INFO: ProcessCDR(1,14260545,1,1,2) [2025-01-16 11:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260545', 'tblTempUsageDetail_20' ) start [2025-01-16 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260545', 'tblTempUsageDetail_20' ) end [2025-01-16 11:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:07:31] Production.INFO: ==29315== Releasing lock... [2025-01-16 11:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:07:31] Production.INFO: 57.5 MB #Memory Used# [2025-01-16 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:08:05 [end_date_ymd] => 2025-01-16 11:08:05 [RateCDR] => 1 ) [2025-01-16 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:08:05' and `end` < '2025-01-16 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:08:25] Production.INFO: count ==3954 [2025-01-16 11:08:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:08:05 - End Time 2025-01-16 11:08:05 [2025-01-16 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260550', 'tblTempUsageDetail_20' ) start [2025-01-16 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260550', 'tblTempUsageDetail_20' ) end [2025-01-16 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260550', 'tblTempVendorCDR_20' ) start [2025-01-16 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260550', 'tblTempVendorCDR_20' ) end [2025-01-16 11:08:26] Production.INFO: ProcessCDR(1,14260550,1,1,2) [2025-01-16 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260550', 'tblTempUsageDetail_20' ) start [2025-01-16 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260550', 'tblTempUsageDetail_20' ) end [2025-01-16 11:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:08:31] Production.INFO: ==29464== Releasing lock... [2025-01-16 11:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:08:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-16 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:09:05 [end_date_ymd] => 2025-01-16 11:09:05 [RateCDR] => 1 ) [2025-01-16 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:09:05' and `end` < '2025-01-16 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:09:22] Production.INFO: count ==3957 [2025-01-16 11:09:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:09:05 - End Time 2025-01-16 11:09:05 [2025-01-16 11:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260555', 'tblTempUsageDetail_20' ) start [2025-01-16 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260555', 'tblTempUsageDetail_20' ) end [2025-01-16 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260555', 'tblTempVendorCDR_20' ) start [2025-01-16 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260555', 'tblTempVendorCDR_20' ) end [2025-01-16 11:09:23] Production.INFO: ProcessCDR(1,14260555,1,1,2) [2025-01-16 11:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260555', 'tblTempUsageDetail_20' ) start [2025-01-16 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260555', 'tblTempUsageDetail_20' ) end [2025-01-16 11:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:09:28] Production.INFO: ==29535== Releasing lock... [2025-01-16 11:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:09:28] Production.INFO: 57.5 MB #Memory Used# [2025-01-16 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:10:05 [end_date_ymd] => 2025-01-16 11:10:05 [RateCDR] => 1 ) [2025-01-16 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:10:05' and `end` < '2025-01-16 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:10:33] Production.INFO: count ==3974 [2025-01-16 11:10:35] Production.ERROR: pbx CDR StartTime 2025-01-16 08:10:05 - End Time 2025-01-16 11:10:05 [2025-01-16 11:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260561', 'tblTempUsageDetail_20' ) start [2025-01-16 11:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260561', 'tblTempUsageDetail_20' ) end [2025-01-16 11:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260561', 'tblTempVendorCDR_20' ) start [2025-01-16 11:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260561', 'tblTempVendorCDR_20' ) end [2025-01-16 11:10:35] Production.INFO: ProcessCDR(1,14260561,1,1,2) [2025-01-16 11:10:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:10:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:10:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:10:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260561', 'tblTempUsageDetail_20' ) start [2025-01-16 11:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260561', 'tblTempUsageDetail_20' ) end [2025-01-16 11:10:40] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:10:40] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:10:40] Production.INFO: ==29608== Releasing lock... [2025-01-16 11:10:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:10:40] Production.INFO: 57.75 MB #Memory Used# [2025-01-16 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:11:05 [end_date_ymd] => 2025-01-16 11:11:05 [RateCDR] => 1 ) [2025-01-16 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:11:05' and `end` < '2025-01-16 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:11:25] Production.INFO: count ==4054 [2025-01-16 11:11:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:11:05 - End Time 2025-01-16 11:11:05 [2025-01-16 11:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260566', 'tblTempUsageDetail_20' ) start [2025-01-16 11:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260566', 'tblTempUsageDetail_20' ) end [2025-01-16 11:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260566', 'tblTempVendorCDR_20' ) start [2025-01-16 11:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260566', 'tblTempVendorCDR_20' ) end [2025-01-16 11:11:27] Production.INFO: ProcessCDR(1,14260566,1,1,2) [2025-01-16 11:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260566', 'tblTempUsageDetail_20' ) start [2025-01-16 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260566', 'tblTempUsageDetail_20' ) end [2025-01-16 11:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:11:31] Production.INFO: ==29679== Releasing lock... [2025-01-16 11:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:11:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-16 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:12:05 [end_date_ymd] => 2025-01-16 11:12:05 [RateCDR] => 1 ) [2025-01-16 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:12:05' and `end` < '2025-01-16 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:12:26] Production.INFO: count ==4048 [2025-01-16 11:12:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:12:05 - End Time 2025-01-16 11:12:05 [2025-01-16 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260571', 'tblTempUsageDetail_20' ) start [2025-01-16 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260571', 'tblTempUsageDetail_20' ) end [2025-01-16 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260571', 'tblTempVendorCDR_20' ) start [2025-01-16 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260571', 'tblTempVendorCDR_20' ) end [2025-01-16 11:12:28] Production.INFO: ProcessCDR(1,14260571,1,1,2) [2025-01-16 11:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260571', 'tblTempUsageDetail_20' ) start [2025-01-16 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260571', 'tblTempUsageDetail_20' ) end [2025-01-16 11:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:12:33] Production.INFO: ==29839== Releasing lock... [2025-01-16 11:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:12:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-16 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:13:05 [end_date_ymd] => 2025-01-16 11:13:05 [RateCDR] => 1 ) [2025-01-16 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:13:05' and `end` < '2025-01-16 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:13:26] Production.INFO: count ==4059 [2025-01-16 11:13:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:13:05 - End Time 2025-01-16 11:13:05 [2025-01-16 11:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260576', 'tblTempUsageDetail_20' ) start [2025-01-16 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260576', 'tblTempUsageDetail_20' ) end [2025-01-16 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260576', 'tblTempVendorCDR_20' ) start [2025-01-16 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260576', 'tblTempVendorCDR_20' ) end [2025-01-16 11:13:27] Production.INFO: ProcessCDR(1,14260576,1,1,2) [2025-01-16 11:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260576', 'tblTempUsageDetail_20' ) start [2025-01-16 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260576', 'tblTempUsageDetail_20' ) end [2025-01-16 11:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:13:33] Production.INFO: ==29907== Releasing lock... [2025-01-16 11:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:13:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-16 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:14:05 [end_date_ymd] => 2025-01-16 11:14:05 [RateCDR] => 1 ) [2025-01-16 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:14:05' and `end` < '2025-01-16 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:14:23] Production.INFO: count ==4083 [2025-01-16 11:14:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:14:05 - End Time 2025-01-16 11:14:05 [2025-01-16 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260581', 'tblTempUsageDetail_20' ) start [2025-01-16 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260581', 'tblTempUsageDetail_20' ) end [2025-01-16 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260581', 'tblTempVendorCDR_20' ) start [2025-01-16 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260581', 'tblTempVendorCDR_20' ) end [2025-01-16 11:14:25] Production.INFO: ProcessCDR(1,14260581,1,1,2) [2025-01-16 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260581', 'tblTempUsageDetail_20' ) start [2025-01-16 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260581', 'tblTempUsageDetail_20' ) end [2025-01-16 11:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:14:30] Production.INFO: ==29978== Releasing lock... [2025-01-16 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:14:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-16 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:15:05 [end_date_ymd] => 2025-01-16 11:15:05 [RateCDR] => 1 ) [2025-01-16 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:15:05' and `end` < '2025-01-16 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:15:22] Production.INFO: count ==4085 [2025-01-16 11:15:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:15:05 - End Time 2025-01-16 11:15:05 [2025-01-16 11:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260586', 'tblTempUsageDetail_20' ) start [2025-01-16 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260586', 'tblTempUsageDetail_20' ) end [2025-01-16 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260586', 'tblTempVendorCDR_20' ) start [2025-01-16 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260586', 'tblTempVendorCDR_20' ) end [2025-01-16 11:15:24] Production.INFO: ProcessCDR(1,14260586,1,1,2) [2025-01-16 11:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260586', 'tblTempUsageDetail_20' ) start [2025-01-16 11:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260586', 'tblTempUsageDetail_20' ) end [2025-01-16 11:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:15:29] Production.INFO: ==30126== Releasing lock... [2025-01-16 11:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:15:29] Production.INFO: 58.5 MB #Memory Used# [2025-01-16 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:16:05 [end_date_ymd] => 2025-01-16 11:16:05 [RateCDR] => 1 ) [2025-01-16 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:16:05' and `end` < '2025-01-16 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:16:22] Production.INFO: count ==4097 [2025-01-16 11:16:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:16:05 - End Time 2025-01-16 11:16:05 [2025-01-16 11:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260591', 'tblTempUsageDetail_20' ) start [2025-01-16 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260591', 'tblTempUsageDetail_20' ) end [2025-01-16 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260591', 'tblTempVendorCDR_20' ) start [2025-01-16 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260591', 'tblTempVendorCDR_20' ) end [2025-01-16 11:16:24] Production.INFO: ProcessCDR(1,14260591,1,1,2) [2025-01-16 11:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260591', 'tblTempUsageDetail_20' ) start [2025-01-16 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260591', 'tblTempUsageDetail_20' ) end [2025-01-16 11:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:16:30] Production.INFO: ==30199== Releasing lock... [2025-01-16 11:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:16:30] Production.INFO: 58.75 MB #Memory Used# [2025-01-16 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:17:04 [end_date_ymd] => 2025-01-16 11:17:04 [RateCDR] => 1 ) [2025-01-16 11:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:17:04' and `end` < '2025-01-16 11:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:17:22] Production.INFO: count ==4104 [2025-01-16 11:17:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:17:04 - End Time 2025-01-16 11:17:04 [2025-01-16 11:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260596', 'tblTempUsageDetail_20' ) start [2025-01-16 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260596', 'tblTempUsageDetail_20' ) end [2025-01-16 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260596', 'tblTempVendorCDR_20' ) start [2025-01-16 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260596', 'tblTempVendorCDR_20' ) end [2025-01-16 11:17:23] Production.INFO: ProcessCDR(1,14260596,1,1,2) [2025-01-16 11:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260596', 'tblTempUsageDetail_20' ) start [2025-01-16 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260596', 'tblTempUsageDetail_20' ) end [2025-01-16 11:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:17:28] Production.INFO: ==30271== Releasing lock... [2025-01-16 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:17:28] Production.INFO: 58.75 MB #Memory Used# [2025-01-16 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:18:05 [end_date_ymd] => 2025-01-16 11:18:05 [RateCDR] => 1 ) [2025-01-16 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:18:05' and `end` < '2025-01-16 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:18:23] Production.INFO: count ==4109 [2025-01-16 11:18:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:18:05 - End Time 2025-01-16 11:18:05 [2025-01-16 11:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260601', 'tblTempUsageDetail_20' ) start [2025-01-16 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260601', 'tblTempUsageDetail_20' ) end [2025-01-16 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260601', 'tblTempVendorCDR_20' ) start [2025-01-16 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260601', 'tblTempVendorCDR_20' ) end [2025-01-16 11:18:25] Production.INFO: ProcessCDR(1,14260601,1,1,2) [2025-01-16 11:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260601', 'tblTempUsageDetail_20' ) start [2025-01-16 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260601', 'tblTempUsageDetail_20' ) end [2025-01-16 11:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:18:30] Production.INFO: ==30342== Releasing lock... [2025-01-16 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:18:30] Production.INFO: 58.75 MB #Memory Used# [2025-01-16 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:19:05 [end_date_ymd] => 2025-01-16 11:19:05 [RateCDR] => 1 ) [2025-01-16 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:19:05' and `end` < '2025-01-16 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:19:21] Production.INFO: count ==4129 [2025-01-16 11:19:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:19:05 - End Time 2025-01-16 11:19:05 [2025-01-16 11:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260606', 'tblTempUsageDetail_20' ) start [2025-01-16 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260606', 'tblTempUsageDetail_20' ) end [2025-01-16 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260606', 'tblTempVendorCDR_20' ) start [2025-01-16 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260606', 'tblTempVendorCDR_20' ) end [2025-01-16 11:19:23] Production.INFO: ProcessCDR(1,14260606,1,1,2) [2025-01-16 11:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260606', 'tblTempUsageDetail_20' ) start [2025-01-16 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260606', 'tblTempUsageDetail_20' ) end [2025-01-16 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:19:28] Production.INFO: ==30414== Releasing lock... [2025-01-16 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:19:28] Production.INFO: 59.25 MB #Memory Used# [2025-01-16 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:20:06 [end_date_ymd] => 2025-01-16 11:20:06 [RateCDR] => 1 ) [2025-01-16 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:20:06' and `end` < '2025-01-16 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:20:26] Production.INFO: count ==4112 [2025-01-16 11:20:28] Production.ERROR: pbx CDR StartTime 2025-01-16 08:20:06 - End Time 2025-01-16 11:20:06 [2025-01-16 11:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260612', 'tblTempUsageDetail_20' ) start [2025-01-16 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260612', 'tblTempUsageDetail_20' ) end [2025-01-16 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260612', 'tblTempVendorCDR_20' ) start [2025-01-16 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260612', 'tblTempVendorCDR_20' ) end [2025-01-16 11:20:28] Production.INFO: ProcessCDR(1,14260612,1,1,2) [2025-01-16 11:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260612', 'tblTempUsageDetail_20' ) start [2025-01-16 11:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260612', 'tblTempUsageDetail_20' ) end [2025-01-16 11:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:20:33] Production.INFO: ==30487== Releasing lock... [2025-01-16 11:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:20:33] Production.INFO: 58.75 MB #Memory Used# [2025-01-16 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:21:06 [end_date_ymd] => 2025-01-16 11:21:06 [RateCDR] => 1 ) [2025-01-16 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:21:06' and `end` < '2025-01-16 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:21:27] Production.INFO: count ==4192 [2025-01-16 11:21:28] Production.ERROR: pbx CDR StartTime 2025-01-16 08:21:06 - End Time 2025-01-16 11:21:06 [2025-01-16 11:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260617', 'tblTempUsageDetail_20' ) start [2025-01-16 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260617', 'tblTempUsageDetail_20' ) end [2025-01-16 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260617', 'tblTempVendorCDR_20' ) start [2025-01-16 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260617', 'tblTempVendorCDR_20' ) end [2025-01-16 11:21:29] Production.INFO: ProcessCDR(1,14260617,1,1,2) [2025-01-16 11:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260617', 'tblTempUsageDetail_20' ) start [2025-01-16 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260617', 'tblTempUsageDetail_20' ) end [2025-01-16 11:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:21:34] Production.INFO: ==30561== Releasing lock... [2025-01-16 11:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:21:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-16 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:22:05 [end_date_ymd] => 2025-01-16 11:22:05 [RateCDR] => 1 ) [2025-01-16 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:22:05' and `end` < '2025-01-16 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:22:25] Production.INFO: count ==4213 [2025-01-16 11:22:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:22:05 - End Time 2025-01-16 11:22:05 [2025-01-16 11:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260622', 'tblTempUsageDetail_20' ) start [2025-01-16 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260622', 'tblTempUsageDetail_20' ) end [2025-01-16 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260622', 'tblTempVendorCDR_20' ) start [2025-01-16 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260622', 'tblTempVendorCDR_20' ) end [2025-01-16 11:22:26] Production.INFO: ProcessCDR(1,14260622,1,1,2) [2025-01-16 11:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260622', 'tblTempUsageDetail_20' ) start [2025-01-16 11:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260622', 'tblTempUsageDetail_20' ) end [2025-01-16 11:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:22:31] Production.INFO: ==30670== Releasing lock... [2025-01-16 11:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:22:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-16 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:23:04 [end_date_ymd] => 2025-01-16 11:23:04 [RateCDR] => 1 ) [2025-01-16 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:23:04' and `end` < '2025-01-16 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:23:22] Production.INFO: count ==4225 [2025-01-16 11:23:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:23:04 - End Time 2025-01-16 11:23:04 [2025-01-16 11:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260627', 'tblTempUsageDetail_20' ) start [2025-01-16 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260627', 'tblTempUsageDetail_20' ) end [2025-01-16 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260627', 'tblTempVendorCDR_20' ) start [2025-01-16 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260627', 'tblTempVendorCDR_20' ) end [2025-01-16 11:23:24] Production.INFO: ProcessCDR(1,14260627,1,1,2) [2025-01-16 11:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260627', 'tblTempUsageDetail_20' ) start [2025-01-16 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260627', 'tblTempUsageDetail_20' ) end [2025-01-16 11:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:23:29] Production.INFO: ==30740== Releasing lock... [2025-01-16 11:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:23:29] Production.INFO: 59.5 MB #Memory Used# [2025-01-16 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:24:05 [end_date_ymd] => 2025-01-16 11:24:05 [RateCDR] => 1 ) [2025-01-16 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:24:05' and `end` < '2025-01-16 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:24:29] Production.INFO: count ==4234 [2025-01-16 11:24:31] Production.ERROR: pbx CDR StartTime 2025-01-16 08:24:05 - End Time 2025-01-16 11:24:05 [2025-01-16 11:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260632', 'tblTempUsageDetail_20' ) start [2025-01-16 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260632', 'tblTempUsageDetail_20' ) end [2025-01-16 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260632', 'tblTempVendorCDR_20' ) start [2025-01-16 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260632', 'tblTempVendorCDR_20' ) end [2025-01-16 11:24:31] Production.INFO: ProcessCDR(1,14260632,1,1,2) [2025-01-16 11:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260632', 'tblTempUsageDetail_20' ) start [2025-01-16 11:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260632', 'tblTempUsageDetail_20' ) end [2025-01-16 11:24:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:24:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:24:36] Production.INFO: ==30811== Releasing lock... [2025-01-16 11:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:24:36] Production.INFO: 59.75 MB #Memory Used# [2025-01-16 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:25:05 [end_date_ymd] => 2025-01-16 11:25:05 [RateCDR] => 1 ) [2025-01-16 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:25:05' and `end` < '2025-01-16 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:25:30] Production.INFO: count ==4260 [2025-01-16 11:25:32] Production.ERROR: pbx CDR StartTime 2025-01-16 08:25:05 - End Time 2025-01-16 11:25:05 [2025-01-16 11:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260637', 'tblTempUsageDetail_20' ) start [2025-01-16 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260637', 'tblTempUsageDetail_20' ) end [2025-01-16 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260637', 'tblTempVendorCDR_20' ) start [2025-01-16 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260637', 'tblTempVendorCDR_20' ) end [2025-01-16 11:25:32] Production.INFO: ProcessCDR(1,14260637,1,1,2) [2025-01-16 11:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260637', 'tblTempUsageDetail_20' ) start [2025-01-16 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260637', 'tblTempUsageDetail_20' ) end [2025-01-16 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:25:37] Production.INFO: ==30883== Releasing lock... [2025-01-16 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:25:37] Production.INFO: 60 MB #Memory Used# [2025-01-16 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:26:04 [end_date_ymd] => 2025-01-16 11:26:04 [RateCDR] => 1 ) [2025-01-16 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:26:04' and `end` < '2025-01-16 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:26:23] Production.INFO: count ==4283 [2025-01-16 11:26:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:26:04 - End Time 2025-01-16 11:26:04 [2025-01-16 11:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260642', 'tblTempUsageDetail_20' ) start [2025-01-16 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260642', 'tblTempUsageDetail_20' ) end [2025-01-16 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260642', 'tblTempVendorCDR_20' ) start [2025-01-16 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260642', 'tblTempVendorCDR_20' ) end [2025-01-16 11:26:25] Production.INFO: ProcessCDR(1,14260642,1,1,2) [2025-01-16 11:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260642', 'tblTempUsageDetail_20' ) start [2025-01-16 11:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260642', 'tblTempUsageDetail_20' ) end [2025-01-16 11:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:26:30] Production.INFO: ==30957== Releasing lock... [2025-01-16 11:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:26:30] Production.INFO: 60 MB #Memory Used# [2025-01-16 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:27:05 [end_date_ymd] => 2025-01-16 11:27:05 [RateCDR] => 1 ) [2025-01-16 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:27:05' and `end` < '2025-01-16 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:27:29] Production.INFO: count ==4295 [2025-01-16 11:27:30] Production.ERROR: pbx CDR StartTime 2025-01-16 08:27:05 - End Time 2025-01-16 11:27:05 [2025-01-16 11:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260647', 'tblTempUsageDetail_20' ) start [2025-01-16 11:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260647', 'tblTempUsageDetail_20' ) end [2025-01-16 11:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260647', 'tblTempVendorCDR_20' ) start [2025-01-16 11:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260647', 'tblTempVendorCDR_20' ) end [2025-01-16 11:27:31] Production.INFO: ProcessCDR(1,14260647,1,1,2) [2025-01-16 11:27:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:27:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260647', 'tblTempUsageDetail_20' ) start [2025-01-16 11:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260647', 'tblTempUsageDetail_20' ) end [2025-01-16 11:27:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:27:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:27:36] Production.INFO: ==31031== Releasing lock... [2025-01-16 11:27:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:27:36] Production.INFO: 60.5 MB #Memory Used# [2025-01-16 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:28:06 [end_date_ymd] => 2025-01-16 11:28:06 [RateCDR] => 1 ) [2025-01-16 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:28:06' and `end` < '2025-01-16 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:28:22] Production.INFO: count ==4317 [2025-01-16 11:28:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:28:06 - End Time 2025-01-16 11:28:06 [2025-01-16 11:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260652', 'tblTempUsageDetail_20' ) start [2025-01-16 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260652', 'tblTempUsageDetail_20' ) end [2025-01-16 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260652', 'tblTempVendorCDR_20' ) start [2025-01-16 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260652', 'tblTempVendorCDR_20' ) end [2025-01-16 11:28:24] Production.INFO: ProcessCDR(1,14260652,1,1,2) [2025-01-16 11:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260652', 'tblTempUsageDetail_20' ) start [2025-01-16 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260652', 'tblTempUsageDetail_20' ) end [2025-01-16 11:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:28:29] Production.INFO: ==31102== Releasing lock... [2025-01-16 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:28:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-16 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:29:05 [end_date_ymd] => 2025-01-16 11:29:05 [RateCDR] => 1 ) [2025-01-16 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:29:05' and `end` < '2025-01-16 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:29:25] Production.INFO: count ==4349 [2025-01-16 11:29:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:29:05 - End Time 2025-01-16 11:29:05 [2025-01-16 11:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260657', 'tblTempUsageDetail_20' ) start [2025-01-16 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260657', 'tblTempUsageDetail_20' ) end [2025-01-16 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260657', 'tblTempVendorCDR_20' ) start [2025-01-16 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260657', 'tblTempVendorCDR_20' ) end [2025-01-16 11:29:27] Production.INFO: ProcessCDR(1,14260657,1,1,2) [2025-01-16 11:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260657', 'tblTempUsageDetail_20' ) start [2025-01-16 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260657', 'tblTempUsageDetail_20' ) end [2025-01-16 11:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:29:32] Production.INFO: ==31171== Releasing lock... [2025-01-16 11:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:29:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-16 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:30:06 [end_date_ymd] => 2025-01-16 11:30:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 08:30:06' and `end` < '2025-01-16 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-01-16 11:30:23] Production.INFO: count ==4363 [2025-01-16 11:30:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:30:06 - End Time 2025-01-16 11:30:06 [2025-01-16 11:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260663', 'tblTempUsageDetail_20' ) start [2025-01-16 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260663', 'tblTempUsageDetail_20' ) end [2025-01-16 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260663', 'tblTempVendorCDR_20' ) start [2025-01-16 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260663', 'tblTempVendorCDR_20' ) end [2025-01-16 11:30:25] Production.INFO: ProcessCDR(1,14260663,1,1,2) [2025-01-16 11:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260663', 'tblTempUsageDetail_20' ) start [2025-01-16 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260663', 'tblTempUsageDetail_20' ) end [2025-01-16 11:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:30:30] Production.INFO: ==31246== Releasing lock... [2025-01-16 11:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:30:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-16 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:31:04 [end_date_ymd] => 2025-01-16 11:31:04 [RateCDR] => 1 ) [2025-01-16 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:31:04' and `end` < '2025-01-16 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:31:24] Production.INFO: count ==4452 [2025-01-16 11:31:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:31:04 - End Time 2025-01-16 11:31:04 [2025-01-16 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260668', 'tblTempUsageDetail_20' ) start [2025-01-16 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260668', 'tblTempUsageDetail_20' ) end [2025-01-16 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260668', 'tblTempVendorCDR_20' ) start [2025-01-16 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260668', 'tblTempVendorCDR_20' ) end [2025-01-16 11:31:26] Production.INFO: ProcessCDR(1,14260668,1,1,2) [2025-01-16 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260668', 'tblTempUsageDetail_20' ) start [2025-01-16 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260668', 'tblTempUsageDetail_20' ) end [2025-01-16 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:31:31] Production.INFO: ==31317== Releasing lock... [2025-01-16 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:31:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-16 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:32:05 [end_date_ymd] => 2025-01-16 11:32:05 [RateCDR] => 1 ) [2025-01-16 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:32:05' and `end` < '2025-01-16 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:32:22] Production.INFO: count ==4458 [2025-01-16 11:32:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:32:05 - End Time 2025-01-16 11:32:05 [2025-01-16 11:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260673', 'tblTempUsageDetail_20' ) start [2025-01-16 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260673', 'tblTempUsageDetail_20' ) end [2025-01-16 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260673', 'tblTempVendorCDR_20' ) start [2025-01-16 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260673', 'tblTempVendorCDR_20' ) end [2025-01-16 11:32:24] Production.INFO: ProcessCDR(1,14260673,1,1,2) [2025-01-16 11:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260673', 'tblTempUsageDetail_20' ) start [2025-01-16 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260673', 'tblTempUsageDetail_20' ) end [2025-01-16 11:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:32:29] Production.INFO: ==31391== Releasing lock... [2025-01-16 11:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:32:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-16 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:33:05 [end_date_ymd] => 2025-01-16 11:33:05 [RateCDR] => 1 ) [2025-01-16 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:33:05' and `end` < '2025-01-16 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:33:21] Production.INFO: count ==4474 [2025-01-16 11:33:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:33:05 - End Time 2025-01-16 11:33:05 [2025-01-16 11:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260678', 'tblTempUsageDetail_20' ) start [2025-01-16 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260678', 'tblTempUsageDetail_20' ) end [2025-01-16 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260678', 'tblTempVendorCDR_20' ) start [2025-01-16 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260678', 'tblTempVendorCDR_20' ) end [2025-01-16 11:33:23] Production.INFO: ProcessCDR(1,14260678,1,1,2) [2025-01-16 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260678', 'tblTempUsageDetail_20' ) start [2025-01-16 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260678', 'tblTempUsageDetail_20' ) end [2025-01-16 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:33:28] Production.INFO: ==31461== Releasing lock... [2025-01-16 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:33:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:34:05 [end_date_ymd] => 2025-01-16 11:34:05 [RateCDR] => 1 ) [2025-01-16 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:34:05' and `end` < '2025-01-16 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:34:19] Production.INFO: count ==4476 [2025-01-16 11:34:21] Production.ERROR: pbx CDR StartTime 2025-01-16 08:34:05 - End Time 2025-01-16 11:34:05 [2025-01-16 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260683', 'tblTempUsageDetail_20' ) start [2025-01-16 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260683', 'tblTempUsageDetail_20' ) end [2025-01-16 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260683', 'tblTempVendorCDR_20' ) start [2025-01-16 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260683', 'tblTempVendorCDR_20' ) end [2025-01-16 11:34:21] Production.INFO: ProcessCDR(1,14260683,1,1,2) [2025-01-16 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260683', 'tblTempUsageDetail_20' ) start [2025-01-16 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260683', 'tblTempUsageDetail_20' ) end [2025-01-16 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:34:26] Production.INFO: ==31533== Releasing lock... [2025-01-16 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:34:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:35:05 [end_date_ymd] => 2025-01-16 11:35:05 [RateCDR] => 1 ) [2025-01-16 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:35:05' and `end` < '2025-01-16 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:35:24] Production.INFO: count ==4477 [2025-01-16 11:35:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:35:05 - End Time 2025-01-16 11:35:05 [2025-01-16 11:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260688', 'tblTempUsageDetail_20' ) start [2025-01-16 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260688', 'tblTempUsageDetail_20' ) end [2025-01-16 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260688', 'tblTempVendorCDR_20' ) start [2025-01-16 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260688', 'tblTempVendorCDR_20' ) end [2025-01-16 11:35:26] Production.INFO: ProcessCDR(1,14260688,1,1,2) [2025-01-16 11:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260688', 'tblTempUsageDetail_20' ) start [2025-01-16 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260688', 'tblTempUsageDetail_20' ) end [2025-01-16 11:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:35:31] Production.INFO: ==31603== Releasing lock... [2025-01-16 11:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:35:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:36:05 [end_date_ymd] => 2025-01-16 11:36:05 [RateCDR] => 1 ) [2025-01-16 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:36:05' and `end` < '2025-01-16 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:36:21] Production.INFO: count ==4479 [2025-01-16 11:36:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:36:05 - End Time 2025-01-16 11:36:05 [2025-01-16 11:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260693', 'tblTempUsageDetail_20' ) start [2025-01-16 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260693', 'tblTempUsageDetail_20' ) end [2025-01-16 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260693', 'tblTempVendorCDR_20' ) start [2025-01-16 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260693', 'tblTempVendorCDR_20' ) end [2025-01-16 11:36:23] Production.INFO: ProcessCDR(1,14260693,1,1,2) [2025-01-16 11:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260693', 'tblTempUsageDetail_20' ) start [2025-01-16 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260693', 'tblTempUsageDetail_20' ) end [2025-01-16 11:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:36:28] Production.INFO: ==31676== Releasing lock... [2025-01-16 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:36:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:37:05 [end_date_ymd] => 2025-01-16 11:37:05 [RateCDR] => 1 ) [2025-01-16 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:37:05' and `end` < '2025-01-16 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:37:18] Production.INFO: count ==4471 [2025-01-16 11:37:20] Production.ERROR: pbx CDR StartTime 2025-01-16 08:37:05 - End Time 2025-01-16 11:37:05 [2025-01-16 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260698', 'tblTempUsageDetail_20' ) start [2025-01-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260698', 'tblTempUsageDetail_20' ) end [2025-01-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260698', 'tblTempVendorCDR_20' ) start [2025-01-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260698', 'tblTempVendorCDR_20' ) end [2025-01-16 11:37:20] Production.INFO: ProcessCDR(1,14260698,1,1,2) [2025-01-16 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260698', 'tblTempUsageDetail_20' ) start [2025-01-16 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260698', 'tblTempUsageDetail_20' ) end [2025-01-16 11:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:37:25] Production.INFO: ==31753== Releasing lock... [2025-01-16 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:38:06 [end_date_ymd] => 2025-01-16 11:38:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 08:38:06' and `end` < '2025-01-16 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-01-16 11:38:22] Production.INFO: count ==4487 [2025-01-16 11:38:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:38:06 - End Time 2025-01-16 11:38:06 [2025-01-16 11:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260703', 'tblTempUsageDetail_20' ) start [2025-01-16 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260703', 'tblTempUsageDetail_20' ) end [2025-01-16 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260703', 'tblTempVendorCDR_20' ) start [2025-01-16 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260703', 'tblTempVendorCDR_20' ) end [2025-01-16 11:38:24] Production.INFO: ProcessCDR(1,14260703,1,1,2) [2025-01-16 11:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260703', 'tblTempUsageDetail_20' ) start [2025-01-16 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260703', 'tblTempUsageDetail_20' ) end [2025-01-16 11:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:38:29] Production.INFO: ==31867== Releasing lock... [2025-01-16 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:38:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:39:05 [end_date_ymd] => 2025-01-16 11:39:05 [RateCDR] => 1 ) [2025-01-16 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:39:05' and `end` < '2025-01-16 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:39:23] Production.INFO: count ==4488 [2025-01-16 11:39:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:39:05 - End Time 2025-01-16 11:39:05 [2025-01-16 11:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260708', 'tblTempUsageDetail_20' ) start [2025-01-16 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260708', 'tblTempUsageDetail_20' ) end [2025-01-16 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260708', 'tblTempVendorCDR_20' ) start [2025-01-16 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260708', 'tblTempVendorCDR_20' ) end [2025-01-16 11:39:25] Production.INFO: ProcessCDR(1,14260708,1,1,2) [2025-01-16 11:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260708', 'tblTempUsageDetail_20' ) start [2025-01-16 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260708', 'tblTempUsageDetail_20' ) end [2025-01-16 11:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:39:30] Production.INFO: ==31943== Releasing lock... [2025-01-16 11:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:39:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:40:06 [end_date_ymd] => 2025-01-16 11:40:06 [RateCDR] => 1 ) [2025-01-16 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:40:06' and `end` < '2025-01-16 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:40:25] Production.INFO: count ==4500 [2025-01-16 11:40:27] Production.ERROR: pbx CDR StartTime 2025-01-16 08:40:06 - End Time 2025-01-16 11:40:06 [2025-01-16 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260714', 'tblTempUsageDetail_20' ) start [2025-01-16 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260714', 'tblTempUsageDetail_20' ) end [2025-01-16 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260714', 'tblTempVendorCDR_20' ) start [2025-01-16 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260714', 'tblTempVendorCDR_20' ) end [2025-01-16 11:40:27] Production.INFO: ProcessCDR(1,14260714,1,1,2) [2025-01-16 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260714', 'tblTempUsageDetail_20' ) start [2025-01-16 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260714', 'tblTempUsageDetail_20' ) end [2025-01-16 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:40:32] Production.INFO: ==32020== Releasing lock... [2025-01-16 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:40:32] Production.INFO: 61.75 MB #Memory Used# [2025-01-16 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:41:04 [end_date_ymd] => 2025-01-16 11:41:04 [RateCDR] => 1 ) [2025-01-16 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:41:04' and `end` < '2025-01-16 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:41:18] Production.INFO: count ==4523 [2025-01-16 11:41:20] Production.ERROR: pbx CDR StartTime 2025-01-16 08:41:04 - End Time 2025-01-16 11:41:04 [2025-01-16 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260719', 'tblTempUsageDetail_20' ) start [2025-01-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260719', 'tblTempUsageDetail_20' ) end [2025-01-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260719', 'tblTempVendorCDR_20' ) start [2025-01-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260719', 'tblTempVendorCDR_20' ) end [2025-01-16 11:41:20] Production.INFO: ProcessCDR(1,14260719,1,1,2) [2025-01-16 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260719', 'tblTempUsageDetail_20' ) start [2025-01-16 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260719', 'tblTempUsageDetail_20' ) end [2025-01-16 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:41:25] Production.INFO: ==32094== Releasing lock... [2025-01-16 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:41:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-16 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:42:05 [end_date_ymd] => 2025-01-16 11:42:05 [RateCDR] => 1 ) [2025-01-16 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:42:05' and `end` < '2025-01-16 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:42:24] Production.INFO: count ==4526 [2025-01-16 11:42:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:42:05 - End Time 2025-01-16 11:42:05 [2025-01-16 11:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260724', 'tblTempUsageDetail_20' ) start [2025-01-16 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260724', 'tblTempUsageDetail_20' ) end [2025-01-16 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260724', 'tblTempVendorCDR_20' ) start [2025-01-16 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260724', 'tblTempVendorCDR_20' ) end [2025-01-16 11:42:26] Production.INFO: ProcessCDR(1,14260724,1,1,2) [2025-01-16 11:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260724', 'tblTempUsageDetail_20' ) start [2025-01-16 11:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260724', 'tblTempUsageDetail_20' ) end [2025-01-16 11:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:42:31] Production.INFO: ==32164== Releasing lock... [2025-01-16 11:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:42:31] Production.INFO: 62 MB #Memory Used# [2025-01-16 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:43:05 [end_date_ymd] => 2025-01-16 11:43:05 [RateCDR] => 1 ) [2025-01-16 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:43:05' and `end` < '2025-01-16 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:43:26] Production.INFO: count ==4545 [2025-01-16 11:43:28] Production.ERROR: pbx CDR StartTime 2025-01-16 08:43:05 - End Time 2025-01-16 11:43:05 [2025-01-16 11:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260729', 'tblTempUsageDetail_20' ) start [2025-01-16 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260729', 'tblTempUsageDetail_20' ) end [2025-01-16 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260729', 'tblTempVendorCDR_20' ) start [2025-01-16 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260729', 'tblTempVendorCDR_20' ) end [2025-01-16 11:43:28] Production.INFO: ProcessCDR(1,14260729,1,1,2) [2025-01-16 11:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:43:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:43:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260729', 'tblTempUsageDetail_20' ) start [2025-01-16 11:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260729', 'tblTempUsageDetail_20' ) end [2025-01-16 11:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:43:34] Production.INFO: ==32236== Releasing lock... [2025-01-16 11:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:43:34] Production.INFO: 62 MB #Memory Used# [2025-01-16 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:44:05 [end_date_ymd] => 2025-01-16 11:44:05 [RateCDR] => 1 ) [2025-01-16 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:44:05' and `end` < '2025-01-16 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:44:21] Production.INFO: count ==4566 [2025-01-16 11:44:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:44:05 - End Time 2025-01-16 11:44:05 [2025-01-16 11:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260733', 'tblTempUsageDetail_20' ) start [2025-01-16 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260733', 'tblTempUsageDetail_20' ) end [2025-01-16 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260733', 'tblTempVendorCDR_20' ) start [2025-01-16 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260733', 'tblTempVendorCDR_20' ) end [2025-01-16 11:44:24] Production.INFO: ProcessCDR(1,14260733,1,1,2) [2025-01-16 11:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260733', 'tblTempUsageDetail_20' ) start [2025-01-16 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260733', 'tblTempUsageDetail_20' ) end [2025-01-16 11:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:44:30] Production.INFO: ==32309== Releasing lock... [2025-01-16 11:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:44:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-16 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:45:04 [end_date_ymd] => 2025-01-16 11:45:04 [RateCDR] => 1 ) [2025-01-16 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:45:04' and `end` < '2025-01-16 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:45:26] Production.INFO: count ==4582 [2025-01-16 11:45:28] Production.ERROR: pbx CDR StartTime 2025-01-16 08:45:04 - End Time 2025-01-16 11:45:04 [2025-01-16 11:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260739', 'tblTempUsageDetail_20' ) start [2025-01-16 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260739', 'tblTempUsageDetail_20' ) end [2025-01-16 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260739', 'tblTempVendorCDR_20' ) start [2025-01-16 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260739', 'tblTempVendorCDR_20' ) end [2025-01-16 11:45:28] Production.INFO: ProcessCDR(1,14260739,1,1,2) [2025-01-16 11:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260739', 'tblTempUsageDetail_20' ) start [2025-01-16 11:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260739', 'tblTempUsageDetail_20' ) end [2025-01-16 11:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:45:33] Production.INFO: ==32380== Releasing lock... [2025-01-16 11:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:45:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-16 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:46:05 [end_date_ymd] => 2025-01-16 11:46:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 08:46:05' and `end` < '2025-01-16 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-01-16 11:46:31] Production.INFO: count ==4603 [2025-01-16 11:46:33] Production.ERROR: pbx CDR StartTime 2025-01-16 08:46:05 - End Time 2025-01-16 11:46:05 [2025-01-16 11:46:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260744', 'tblTempUsageDetail_20' ) start [2025-01-16 11:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260744', 'tblTempUsageDetail_20' ) end [2025-01-16 11:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260744', 'tblTempVendorCDR_20' ) start [2025-01-16 11:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260744', 'tblTempVendorCDR_20' ) end [2025-01-16 11:46:33] Production.INFO: ProcessCDR(1,14260744,1,1,2) [2025-01-16 11:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:46:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:46:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:46:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260744', 'tblTempUsageDetail_20' ) start [2025-01-16 11:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260744', 'tblTempUsageDetail_20' ) end [2025-01-16 11:46:38] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:46:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:46:39] Production.INFO: ==32456== Releasing lock... [2025-01-16 11:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:46:39] Production.INFO: 62.5 MB #Memory Used# [2025-01-16 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:47:05 [end_date_ymd] => 2025-01-16 11:47:05 [RateCDR] => 1 ) [2025-01-16 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:47:05' and `end` < '2025-01-16 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:47:26] Production.INFO: count ==4642 [2025-01-16 11:47:28] Production.ERROR: pbx CDR StartTime 2025-01-16 08:47:05 - End Time 2025-01-16 11:47:05 [2025-01-16 11:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260749', 'tblTempUsageDetail_20' ) start [2025-01-16 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260749', 'tblTempUsageDetail_20' ) end [2025-01-16 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260749', 'tblTempVendorCDR_20' ) start [2025-01-16 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260749', 'tblTempVendorCDR_20' ) end [2025-01-16 11:47:28] Production.INFO: ProcessCDR(1,14260749,1,1,2) [2025-01-16 11:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260749', 'tblTempUsageDetail_20' ) start [2025-01-16 11:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260749', 'tblTempUsageDetail_20' ) end [2025-01-16 11:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:47:33] Production.INFO: ==32525== Releasing lock... [2025-01-16 11:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:47:33] Production.INFO: 63 MB #Memory Used# [2025-01-16 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:48:05 [end_date_ymd] => 2025-01-16 11:48:05 [RateCDR] => 1 ) [2025-01-16 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:48:05' and `end` < '2025-01-16 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:48:22] Production.INFO: count ==4698 [2025-01-16 11:48:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:48:05 - End Time 2025-01-16 11:48:05 [2025-01-16 11:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260754', 'tblTempUsageDetail_20' ) start [2025-01-16 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260754', 'tblTempUsageDetail_20' ) end [2025-01-16 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260754', 'tblTempVendorCDR_20' ) start [2025-01-16 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260754', 'tblTempVendorCDR_20' ) end [2025-01-16 11:48:24] Production.INFO: ProcessCDR(1,14260754,1,1,2) [2025-01-16 11:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260754', 'tblTempUsageDetail_20' ) start [2025-01-16 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260754', 'tblTempUsageDetail_20' ) end [2025-01-16 11:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:48:30] Production.INFO: ==32596== Releasing lock... [2025-01-16 11:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:48:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-16 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:49:05 [end_date_ymd] => 2025-01-16 11:49:05 [RateCDR] => 1 ) [2025-01-16 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:49:05' and `end` < '2025-01-16 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:49:19] Production.INFO: count ==4738 [2025-01-16 11:49:21] Production.ERROR: pbx CDR StartTime 2025-01-16 08:49:05 - End Time 2025-01-16 11:49:05 [2025-01-16 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260759', 'tblTempUsageDetail_20' ) start [2025-01-16 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260759', 'tblTempUsageDetail_20' ) end [2025-01-16 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260759', 'tblTempVendorCDR_20' ) start [2025-01-16 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260759', 'tblTempVendorCDR_20' ) end [2025-01-16 11:49:21] Production.INFO: ProcessCDR(1,14260759,1,1,2) [2025-01-16 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260759', 'tblTempUsageDetail_20' ) start [2025-01-16 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260759', 'tblTempUsageDetail_20' ) end [2025-01-16 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:49:26] Production.INFO: ==32666== Releasing lock... [2025-01-16 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:49:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-16 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:50:06 [end_date_ymd] => 2025-01-16 11:50:06 [RateCDR] => 1 ) [2025-01-16 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:50:06' and `end` < '2025-01-16 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:50:28] Production.INFO: count ==4809 [2025-01-16 11:50:30] Production.ERROR: pbx CDR StartTime 2025-01-16 08:50:06 - End Time 2025-01-16 11:50:06 [2025-01-16 11:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260764', 'tblTempUsageDetail_20' ) start [2025-01-16 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260764', 'tblTempUsageDetail_20' ) end [2025-01-16 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260764', 'tblTempVendorCDR_20' ) start [2025-01-16 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260764', 'tblTempVendorCDR_20' ) end [2025-01-16 11:50:30] Production.INFO: ProcessCDR(1,14260764,1,1,2) [2025-01-16 11:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260764', 'tblTempUsageDetail_20' ) start [2025-01-16 11:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260764', 'tblTempUsageDetail_20' ) end [2025-01-16 11:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:50:35] Production.INFO: ==32739== Releasing lock... [2025-01-16 11:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:50:35] Production.INFO: 64 MB #Memory Used# [2025-01-16 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:51:04 [end_date_ymd] => 2025-01-16 11:51:04 [RateCDR] => 1 ) [2025-01-16 11:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:51:04' and `end` < '2025-01-16 11:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:51:23] Production.INFO: count ==5021 [2025-01-16 11:51:25] Production.ERROR: pbx CDR StartTime 2025-01-16 08:51:04 - End Time 2025-01-16 11:51:04 [2025-01-16 11:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260770', 'tblTempUsageDetail_20' ) start [2025-01-16 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260770', 'tblTempUsageDetail_20' ) end [2025-01-16 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260770', 'tblTempVendorCDR_20' ) start [2025-01-16 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260770', 'tblTempVendorCDR_20' ) end [2025-01-16 11:51:26] Production.INFO: ProcessCDR(1,14260770,1,1,2) [2025-01-16 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260770', 'tblTempUsageDetail_20' ) start [2025-01-16 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260770', 'tblTempUsageDetail_20' ) end [2025-01-16 11:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:51:31] Production.INFO: ==364== Releasing lock... [2025-01-16 11:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:51:31] Production.INFO: 65.5 MB #Memory Used# [2025-01-16 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:52:04 [end_date_ymd] => 2025-01-16 11:52:04 [RateCDR] => 1 ) [2025-01-16 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:52:04' and `end` < '2025-01-16 11:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:52:22] Production.INFO: count ==5047 [2025-01-16 11:52:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:52:04 - End Time 2025-01-16 11:52:04 [2025-01-16 11:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260775', 'tblTempUsageDetail_20' ) start [2025-01-16 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260775', 'tblTempUsageDetail_20' ) end [2025-01-16 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260775', 'tblTempVendorCDR_20' ) start [2025-01-16 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260775', 'tblTempVendorCDR_20' ) end [2025-01-16 11:52:24] Production.INFO: ProcessCDR(1,14260775,1,1,2) [2025-01-16 11:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260775', 'tblTempUsageDetail_20' ) start [2025-01-16 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260775', 'tblTempUsageDetail_20' ) end [2025-01-16 11:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:52:29] Production.INFO: ==433== Releasing lock... [2025-01-16 11:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:52:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:53:05 [end_date_ymd] => 2025-01-16 11:53:05 [RateCDR] => 1 ) [2025-01-16 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:53:05' and `end` < '2025-01-16 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:53:32] Production.INFO: count ==5084 [2025-01-16 11:53:34] Production.ERROR: pbx CDR StartTime 2025-01-16 08:53:05 - End Time 2025-01-16 11:53:05 [2025-01-16 11:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260780', 'tblTempUsageDetail_20' ) start [2025-01-16 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260780', 'tblTempUsageDetail_20' ) end [2025-01-16 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260780', 'tblTempVendorCDR_20' ) start [2025-01-16 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260780', 'tblTempVendorCDR_20' ) end [2025-01-16 11:53:34] Production.INFO: ProcessCDR(1,14260780,1,1,2) [2025-01-16 11:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260780', 'tblTempUsageDetail_20' ) start [2025-01-16 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260780', 'tblTempUsageDetail_20' ) end [2025-01-16 11:53:39] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:53:39] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:53:39] Production.INFO: ==548== Releasing lock... [2025-01-16 11:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:53:39] Production.INFO: 66 MB #Memory Used# [2025-01-16 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:54:05 [end_date_ymd] => 2025-01-16 11:54:05 [RateCDR] => 1 ) [2025-01-16 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:54:05' and `end` < '2025-01-16 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:54:29] Production.INFO: count ==5139 [2025-01-16 11:54:31] Production.ERROR: pbx CDR StartTime 2025-01-16 08:54:05 - End Time 2025-01-16 11:54:05 [2025-01-16 11:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260785', 'tblTempUsageDetail_20' ) start [2025-01-16 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260785', 'tblTempUsageDetail_20' ) end [2025-01-16 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260785', 'tblTempVendorCDR_20' ) start [2025-01-16 11:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260785', 'tblTempVendorCDR_20' ) end [2025-01-16 11:54:31] Production.INFO: ProcessCDR(1,14260785,1,1,2) [2025-01-16 11:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260785', 'tblTempUsageDetail_20' ) start [2025-01-16 11:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260785', 'tblTempUsageDetail_20' ) end [2025-01-16 11:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:54:37] Production.INFO: ==627== Releasing lock... [2025-01-16 11:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:54:37] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:55:05 [end_date_ymd] => 2025-01-16 11:55:05 [RateCDR] => 1 ) [2025-01-16 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:55:05' and `end` < '2025-01-16 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:55:23] Production.INFO: count ==5246 [2025-01-16 11:55:26] Production.ERROR: pbx CDR StartTime 2025-01-16 08:55:05 - End Time 2025-01-16 11:55:05 [2025-01-16 11:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260790', 'tblTempUsageDetail_20' ) start [2025-01-16 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260790', 'tblTempUsageDetail_20' ) end [2025-01-16 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260790', 'tblTempVendorCDR_20' ) start [2025-01-16 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260790', 'tblTempVendorCDR_20' ) end [2025-01-16 11:55:26] Production.INFO: ProcessCDR(1,14260790,1,1,2) [2025-01-16 11:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260790', 'tblTempUsageDetail_20' ) start [2025-01-16 11:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260790', 'tblTempUsageDetail_20' ) end [2025-01-16 11:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:55:32] Production.INFO: ==723== Releasing lock... [2025-01-16 11:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:55:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:56:05 [end_date_ymd] => 2025-01-16 11:56:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 08:56:05' and `end` < '2025-01-16 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-01-16 11:56:21] Production.INFO: count ==5249 [2025-01-16 11:56:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:56:05 - End Time 2025-01-16 11:56:05 [2025-01-16 11:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260795', 'tblTempUsageDetail_20' ) start [2025-01-16 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260795', 'tblTempUsageDetail_20' ) end [2025-01-16 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260795', 'tblTempVendorCDR_20' ) start [2025-01-16 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260795', 'tblTempVendorCDR_20' ) end [2025-01-16 11:56:23] Production.INFO: ProcessCDR(1,14260795,1,1,2) [2025-01-16 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260795', 'tblTempUsageDetail_20' ) start [2025-01-16 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260795', 'tblTempUsageDetail_20' ) end [2025-01-16 11:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:56:28] Production.INFO: ==802== Releasing lock... [2025-01-16 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:56:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:57:05 [end_date_ymd] => 2025-01-16 11:57:05 [RateCDR] => 1 ) [2025-01-16 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:57:05' and `end` < '2025-01-16 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:57:21] Production.INFO: count ==5248 [2025-01-16 11:57:23] Production.ERROR: pbx CDR StartTime 2025-01-16 08:57:05 - End Time 2025-01-16 11:57:05 [2025-01-16 11:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260800', 'tblTempUsageDetail_20' ) start [2025-01-16 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260800', 'tblTempUsageDetail_20' ) end [2025-01-16 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260800', 'tblTempVendorCDR_20' ) start [2025-01-16 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260800', 'tblTempVendorCDR_20' ) end [2025-01-16 11:57:24] Production.INFO: ProcessCDR(1,14260800,1,1,2) [2025-01-16 11:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260800', 'tblTempUsageDetail_20' ) start [2025-01-16 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260800', 'tblTempUsageDetail_20' ) end [2025-01-16 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:57:28] Production.INFO: ==876== Releasing lock... [2025-01-16 11:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:57:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:58:04 [end_date_ymd] => 2025-01-16 11:58:04 [RateCDR] => 1 ) [2025-01-16 11:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:58:04' and `end` < '2025-01-16 11:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:58:22] Production.INFO: count ==5281 [2025-01-16 11:58:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:58:04 - End Time 2025-01-16 11:58:04 [2025-01-16 11:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260805', 'tblTempUsageDetail_20' ) start [2025-01-16 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260805', 'tblTempUsageDetail_20' ) end [2025-01-16 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260805', 'tblTempVendorCDR_20' ) start [2025-01-16 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260805', 'tblTempVendorCDR_20' ) end [2025-01-16 11:58:25] Production.INFO: ProcessCDR(1,14260805,1,1,2) [2025-01-16 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260805', 'tblTempUsageDetail_20' ) start [2025-01-16 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260805', 'tblTempUsageDetail_20' ) end [2025-01-16 11:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:58:30] Production.INFO: ==948== Releasing lock... [2025-01-16 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:58:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 08:59:05 [end_date_ymd] => 2025-01-16 11:59:05 [RateCDR] => 1 ) [2025-01-16 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 08:59:05' and `end` < '2025-01-16 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 11:59:21] Production.INFO: count ==5285 [2025-01-16 11:59:24] Production.ERROR: pbx CDR StartTime 2025-01-16 08:59:05 - End Time 2025-01-16 11:59:05 [2025-01-16 11:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 11:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260810', 'tblTempUsageDetail_20' ) start [2025-01-16 11:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260810', 'tblTempUsageDetail_20' ) end [2025-01-16 11:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260810', 'tblTempVendorCDR_20' ) start [2025-01-16 11:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260810', 'tblTempVendorCDR_20' ) end [2025-01-16 11:59:24] Production.INFO: ProcessCDR(1,14260810,1,1,2) [2025-01-16 11:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 11:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 11:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260810', 'tblTempUsageDetail_20' ) start [2025-01-16 11:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260810', 'tblTempUsageDetail_20' ) end [2025-01-16 11:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 11:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 11:59:29] Production.INFO: ==1022== Releasing lock... [2025-01-16 11:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 11:59:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:00:06 [end_date_ymd] => 2025-01-16 12:00:06 [RateCDR] => 1 ) [2025-01-16 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:00:06' and `end` < '2025-01-16 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:00:25] Production.INFO: count ==5292 [2025-01-16 12:00:27] Production.ERROR: pbx CDR StartTime 2025-01-16 09:00:06 - End Time 2025-01-16 12:00:06 [2025-01-16 12:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260815', 'tblTempUsageDetail_20' ) start [2025-01-16 12:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260815', 'tblTempUsageDetail_20' ) end [2025-01-16 12:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260815', 'tblTempVendorCDR_20' ) start [2025-01-16 12:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260815', 'tblTempVendorCDR_20' ) end [2025-01-16 12:00:27] Production.INFO: ProcessCDR(1,14260815,1,1,2) [2025-01-16 12:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260815', 'tblTempUsageDetail_20' ) start [2025-01-16 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260815', 'tblTempUsageDetail_20' ) end [2025-01-16 12:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:00:33] Production.INFO: ==1094== Releasing lock... [2025-01-16 12:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:00:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:01:06 [end_date_ymd] => 2025-01-16 12:01:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 09:01:06' and `end` < '2025-01-16 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-01-16 12:01:23] Production.INFO: count ==5357 [2025-01-16 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:01:06 - End Time 2025-01-16 12:01:06 [2025-01-16 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260821', 'tblTempUsageDetail_20' ) start [2025-01-16 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260821', 'tblTempUsageDetail_20' ) end [2025-01-16 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260821', 'tblTempVendorCDR_20' ) start [2025-01-16 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260821', 'tblTempVendorCDR_20' ) end [2025-01-16 12:01:26] Production.INFO: ProcessCDR(1,14260821,1,1,2) [2025-01-16 12:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260821', 'tblTempUsageDetail_20' ) start [2025-01-16 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260821', 'tblTempUsageDetail_20' ) end [2025-01-16 12:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:01:31] Production.INFO: ==1186== Releasing lock... [2025-01-16 12:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:01:31] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:02:05 [end_date_ymd] => 2025-01-16 12:02:05 [RateCDR] => 1 ) [2025-01-16 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:02:05' and `end` < '2025-01-16 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:02:21] Production.INFO: count ==5337 [2025-01-16 12:02:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:02:05 - End Time 2025-01-16 12:02:05 [2025-01-16 12:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260826', 'tblTempUsageDetail_20' ) start [2025-01-16 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260826', 'tblTempUsageDetail_20' ) end [2025-01-16 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260826', 'tblTempVendorCDR_20' ) start [2025-01-16 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260826', 'tblTempVendorCDR_20' ) end [2025-01-16 12:02:24] Production.INFO: ProcessCDR(1,14260826,1,1,2) [2025-01-16 12:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260826', 'tblTempUsageDetail_20' ) start [2025-01-16 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260826', 'tblTempUsageDetail_20' ) end [2025-01-16 12:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:02:29] Production.INFO: ==1269== Releasing lock... [2025-01-16 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:02:29] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:03:05 [end_date_ymd] => 2025-01-16 12:03:05 [RateCDR] => 1 ) [2025-01-16 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:03:05' and `end` < '2025-01-16 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:03:26] Production.INFO: count ==5326 [2025-01-16 12:03:28] Production.ERROR: pbx CDR StartTime 2025-01-16 09:03:05 - End Time 2025-01-16 12:03:05 [2025-01-16 12:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260831', 'tblTempUsageDetail_20' ) start [2025-01-16 12:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260831', 'tblTempUsageDetail_20' ) end [2025-01-16 12:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260831', 'tblTempVendorCDR_20' ) start [2025-01-16 12:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260831', 'tblTempVendorCDR_20' ) end [2025-01-16 12:03:29] Production.INFO: ProcessCDR(1,14260831,1,1,2) [2025-01-16 12:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260831', 'tblTempUsageDetail_20' ) start [2025-01-16 12:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260831', 'tblTempUsageDetail_20' ) end [2025-01-16 12:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:03:34] Production.INFO: ==1339== Releasing lock... [2025-01-16 12:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:03:34] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:04:06 [end_date_ymd] => 2025-01-16 12:04:06 [RateCDR] => 1 ) [2025-01-16 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:04:06' and `end` < '2025-01-16 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:04:26] Production.INFO: count ==5334 [2025-01-16 12:04:29] Production.ERROR: pbx CDR StartTime 2025-01-16 09:04:06 - End Time 2025-01-16 12:04:06 [2025-01-16 12:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260836', 'tblTempUsageDetail_20' ) start [2025-01-16 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260836', 'tblTempUsageDetail_20' ) end [2025-01-16 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260836', 'tblTempVendorCDR_20' ) start [2025-01-16 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260836', 'tblTempVendorCDR_20' ) end [2025-01-16 12:04:29] Production.INFO: ProcessCDR(1,14260836,1,1,2) [2025-01-16 12:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260836', 'tblTempUsageDetail_20' ) start [2025-01-16 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260836', 'tblTempUsageDetail_20' ) end [2025-01-16 12:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:04:34] Production.INFO: ==1410== Releasing lock... [2025-01-16 12:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:04:34] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:05:05 [end_date_ymd] => 2025-01-16 12:05:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 09:05:05' and `end` < '2025-01-16 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-01-16 12:05:24] Production.INFO: count ==5336 [2025-01-16 12:05:26] Production.ERROR: pbx CDR StartTime 2025-01-16 09:05:05 - End Time 2025-01-16 12:05:05 [2025-01-16 12:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260841', 'tblTempUsageDetail_20' ) start [2025-01-16 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260841', 'tblTempUsageDetail_20' ) end [2025-01-16 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260841', 'tblTempVendorCDR_20' ) start [2025-01-16 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260841', 'tblTempVendorCDR_20' ) end [2025-01-16 12:05:26] Production.INFO: ProcessCDR(1,14260841,1,1,2) [2025-01-16 12:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260841', 'tblTempUsageDetail_20' ) start [2025-01-16 12:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260841', 'tblTempUsageDetail_20' ) end [2025-01-16 12:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:05:31] Production.INFO: ==1480== Releasing lock... [2025-01-16 12:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:05:31] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:06:05 [end_date_ymd] => 2025-01-16 12:06:05 [RateCDR] => 1 ) [2025-01-16 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:06:05' and `end` < '2025-01-16 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:06:21] Production.INFO: count ==5306 [2025-01-16 12:06:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:06:05 - End Time 2025-01-16 12:06:05 [2025-01-16 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260844', 'tblTempUsageDetail_20' ) start [2025-01-16 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260844', 'tblTempUsageDetail_20' ) end [2025-01-16 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260844', 'tblTempVendorCDR_20' ) start [2025-01-16 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260844', 'tblTempVendorCDR_20' ) end [2025-01-16 12:06:24] Production.INFO: ProcessCDR(1,14260844,1,1,2) [2025-01-16 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260844', 'tblTempUsageDetail_20' ) start [2025-01-16 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260844', 'tblTempUsageDetail_20' ) end [2025-01-16 12:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:06:29] Production.INFO: ==1590== Releasing lock... [2025-01-16 12:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:06:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:07:05 [end_date_ymd] => 2025-01-16 12:07:05 [RateCDR] => 1 ) [2025-01-16 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:07:05' and `end` < '2025-01-16 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:07:23] Production.INFO: count ==5315 [2025-01-16 12:07:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:07:05 - End Time 2025-01-16 12:07:05 [2025-01-16 12:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260851', 'tblTempUsageDetail_20' ) start [2025-01-16 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260851', 'tblTempUsageDetail_20' ) end [2025-01-16 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260851', 'tblTempVendorCDR_20' ) start [2025-01-16 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260851', 'tblTempVendorCDR_20' ) end [2025-01-16 12:07:25] Production.INFO: ProcessCDR(1,14260851,1,1,2) [2025-01-16 12:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260851', 'tblTempUsageDetail_20' ) start [2025-01-16 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260851', 'tblTempUsageDetail_20' ) end [2025-01-16 12:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:07:30] Production.INFO: ==1662== Releasing lock... [2025-01-16 12:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:07:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:08:05 [end_date_ymd] => 2025-01-16 12:08:05 [RateCDR] => 1 ) [2025-01-16 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:08:05' and `end` < '2025-01-16 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:08:23] Production.INFO: count ==5309 [2025-01-16 12:08:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:08:05 - End Time 2025-01-16 12:08:05 [2025-01-16 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260856', 'tblTempUsageDetail_20' ) start [2025-01-16 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260856', 'tblTempUsageDetail_20' ) end [2025-01-16 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260856', 'tblTempVendorCDR_20' ) start [2025-01-16 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260856', 'tblTempVendorCDR_20' ) end [2025-01-16 12:08:25] Production.INFO: ProcessCDR(1,14260856,1,1,2) [2025-01-16 12:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260856', 'tblTempUsageDetail_20' ) start [2025-01-16 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260856', 'tblTempUsageDetail_20' ) end [2025-01-16 12:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:08:30] Production.INFO: ==1740== Releasing lock... [2025-01-16 12:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:08:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:09:05 [end_date_ymd] => 2025-01-16 12:09:05 [RateCDR] => 1 ) [2025-01-16 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:09:05' and `end` < '2025-01-16 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:09:31] Production.INFO: count ==5327 [2025-01-16 12:09:33] Production.ERROR: pbx CDR StartTime 2025-01-16 09:09:05 - End Time 2025-01-16 12:09:05 [2025-01-16 12:09:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260861', 'tblTempUsageDetail_20' ) start [2025-01-16 12:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260861', 'tblTempUsageDetail_20' ) end [2025-01-16 12:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260861', 'tblTempVendorCDR_20' ) start [2025-01-16 12:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260861', 'tblTempVendorCDR_20' ) end [2025-01-16 12:09:33] Production.INFO: ProcessCDR(1,14260861,1,1,2) [2025-01-16 12:09:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:09:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:09:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260861', 'tblTempUsageDetail_20' ) start [2025-01-16 12:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260861', 'tblTempUsageDetail_20' ) end [2025-01-16 12:09:38] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:09:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:09:38] Production.INFO: ==1857== Releasing lock... [2025-01-16 12:09:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:09:38] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:10:06 [end_date_ymd] => 2025-01-16 12:10:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 09:10:06' and `end` < '2025-01-16 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-01-16 12:10:25] Production.INFO: count ==5320 [2025-01-16 12:10:28] Production.ERROR: pbx CDR StartTime 2025-01-16 09:10:06 - End Time 2025-01-16 12:10:06 [2025-01-16 12:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260867', 'tblTempUsageDetail_20' ) start [2025-01-16 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260867', 'tblTempUsageDetail_20' ) end [2025-01-16 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260867', 'tblTempVendorCDR_20' ) start [2025-01-16 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260867', 'tblTempVendorCDR_20' ) end [2025-01-16 12:10:28] Production.INFO: ProcessCDR(1,14260867,1,1,2) [2025-01-16 12:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260867', 'tblTempUsageDetail_20' ) start [2025-01-16 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260867', 'tblTempUsageDetail_20' ) end [2025-01-16 12:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:10:33] Production.INFO: ==1931== Releasing lock... [2025-01-16 12:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:10:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:11:05 [end_date_ymd] => 2025-01-16 12:11:05 [RateCDR] => 1 ) [2025-01-16 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:11:05' and `end` < '2025-01-16 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:11:21] Production.INFO: count ==5331 [2025-01-16 12:11:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:11:05 - End Time 2025-01-16 12:11:05 [2025-01-16 12:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260872', 'tblTempUsageDetail_20' ) start [2025-01-16 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260872', 'tblTempUsageDetail_20' ) end [2025-01-16 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260872', 'tblTempVendorCDR_20' ) start [2025-01-16 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260872', 'tblTempVendorCDR_20' ) end [2025-01-16 12:11:23] Production.INFO: ProcessCDR(1,14260872,1,1,2) [2025-01-16 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260872', 'tblTempUsageDetail_20' ) start [2025-01-16 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260872', 'tblTempUsageDetail_20' ) end [2025-01-16 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:11:28] Production.INFO: ==2006== Releasing lock... [2025-01-16 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:11:28] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:12:05 [end_date_ymd] => 2025-01-16 12:12:05 [RateCDR] => 1 ) [2025-01-16 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:12:05' and `end` < '2025-01-16 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:12:21] Production.INFO: count ==5352 [2025-01-16 12:12:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:12:05 - End Time 2025-01-16 12:12:05 [2025-01-16 12:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260877', 'tblTempUsageDetail_20' ) start [2025-01-16 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260877', 'tblTempUsageDetail_20' ) end [2025-01-16 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260877', 'tblTempVendorCDR_20' ) start [2025-01-16 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260877', 'tblTempVendorCDR_20' ) end [2025-01-16 12:12:24] Production.INFO: ProcessCDR(1,14260877,1,1,2) [2025-01-16 12:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260877', 'tblTempUsageDetail_20' ) start [2025-01-16 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260877', 'tblTempUsageDetail_20' ) end [2025-01-16 12:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:12:29] Production.INFO: ==2076== Releasing lock... [2025-01-16 12:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:12:29] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:13:05 [end_date_ymd] => 2025-01-16 12:13:05 [RateCDR] => 1 ) [2025-01-16 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:13:05' and `end` < '2025-01-16 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:13:19] Production.INFO: count ==5352 [2025-01-16 12:13:21] Production.ERROR: pbx CDR StartTime 2025-01-16 09:13:05 - End Time 2025-01-16 12:13:05 [2025-01-16 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260882', 'tblTempUsageDetail_20' ) start [2025-01-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260882', 'tblTempUsageDetail_20' ) end [2025-01-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260882', 'tblTempVendorCDR_20' ) start [2025-01-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260882', 'tblTempVendorCDR_20' ) end [2025-01-16 12:13:21] Production.INFO: ProcessCDR(1,14260882,1,1,2) [2025-01-16 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260882', 'tblTempUsageDetail_20' ) start [2025-01-16 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260882', 'tblTempUsageDetail_20' ) end [2025-01-16 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:13:26] Production.INFO: ==2152== Releasing lock... [2025-01-16 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:13:26] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:14:06 [end_date_ymd] => 2025-01-16 12:14:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 09:14:06' and `end` < '2025-01-16 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-01-16 12:14:20] Production.INFO: count ==5358 [2025-01-16 12:14:22] Production.ERROR: pbx CDR StartTime 2025-01-16 09:14:06 - End Time 2025-01-16 12:14:06 [2025-01-16 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260887', 'tblTempUsageDetail_20' ) start [2025-01-16 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260887', 'tblTempUsageDetail_20' ) end [2025-01-16 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260887', 'tblTempVendorCDR_20' ) start [2025-01-16 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260887', 'tblTempVendorCDR_20' ) end [2025-01-16 12:14:23] Production.INFO: ProcessCDR(1,14260887,1,1,2) [2025-01-16 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260887', 'tblTempUsageDetail_20' ) start [2025-01-16 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260887', 'tblTempUsageDetail_20' ) end [2025-01-16 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:14:27] Production.INFO: ==2225== Releasing lock... [2025-01-16 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:14:27] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:15:05 [end_date_ymd] => 2025-01-16 12:15:05 [RateCDR] => 1 ) [2025-01-16 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:15:05' and `end` < '2025-01-16 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:15:18] Production.INFO: count ==5337 [2025-01-16 12:15:20] Production.ERROR: pbx CDR StartTime 2025-01-16 09:15:05 - End Time 2025-01-16 12:15:05 [2025-01-16 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260892', 'tblTempUsageDetail_20' ) start [2025-01-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260892', 'tblTempUsageDetail_20' ) end [2025-01-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260892', 'tblTempVendorCDR_20' ) start [2025-01-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260892', 'tblTempVendorCDR_20' ) end [2025-01-16 12:15:21] Production.INFO: ProcessCDR(1,14260892,1,1,2) [2025-01-16 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260892', 'tblTempUsageDetail_20' ) start [2025-01-16 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260892', 'tblTempUsageDetail_20' ) end [2025-01-16 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:15:25] Production.INFO: ==2298== Releasing lock... [2025-01-16 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:15:25] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:16:05 [end_date_ymd] => 2025-01-16 12:16:05 [RateCDR] => 1 ) [2025-01-16 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:16:05' and `end` < '2025-01-16 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:16:22] Production.INFO: count ==5345 [2025-01-16 12:16:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:16:05 - End Time 2025-01-16 12:16:05 [2025-01-16 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260897', 'tblTempUsageDetail_20' ) start [2025-01-16 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260897', 'tblTempUsageDetail_20' ) end [2025-01-16 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260897', 'tblTempVendorCDR_20' ) start [2025-01-16 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260897', 'tblTempVendorCDR_20' ) end [2025-01-16 12:16:25] Production.INFO: ProcessCDR(1,14260897,1,1,2) [2025-01-16 12:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260897', 'tblTempUsageDetail_20' ) start [2025-01-16 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260897', 'tblTempUsageDetail_20' ) end [2025-01-16 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:16:30] Production.INFO: ==2371== Releasing lock... [2025-01-16 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:16:30] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:17:04 [end_date_ymd] => 2025-01-16 12:17:04 [RateCDR] => 1 ) [2025-01-16 12:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:17:04' and `end` < '2025-01-16 12:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:17:18] Production.INFO: count ==5325 [2025-01-16 12:17:20] Production.ERROR: pbx CDR StartTime 2025-01-16 09:17:04 - End Time 2025-01-16 12:17:04 [2025-01-16 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260902', 'tblTempUsageDetail_20' ) start [2025-01-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260902', 'tblTempUsageDetail_20' ) end [2025-01-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260902', 'tblTempVendorCDR_20' ) start [2025-01-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260902', 'tblTempVendorCDR_20' ) end [2025-01-16 12:17:20] Production.INFO: ProcessCDR(1,14260902,1,1,2) [2025-01-16 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260902', 'tblTempUsageDetail_20' ) start [2025-01-16 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260902', 'tblTempUsageDetail_20' ) end [2025-01-16 12:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:17:25] Production.INFO: ==2442== Releasing lock... [2025-01-16 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:17:25] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:18:05 [end_date_ymd] => 2025-01-16 12:18:05 [RateCDR] => 1 ) [2025-01-16 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:18:05' and `end` < '2025-01-16 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:18:23] Production.INFO: count ==5321 [2025-01-16 12:18:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:18:05 - End Time 2025-01-16 12:18:05 [2025-01-16 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260907', 'tblTempUsageDetail_20' ) start [2025-01-16 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260907', 'tblTempUsageDetail_20' ) end [2025-01-16 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260907', 'tblTempVendorCDR_20' ) start [2025-01-16 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260907', 'tblTempVendorCDR_20' ) end [2025-01-16 12:18:25] Production.INFO: ProcessCDR(1,14260907,1,1,2) [2025-01-16 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260907', 'tblTempUsageDetail_20' ) start [2025-01-16 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260907', 'tblTempUsageDetail_20' ) end [2025-01-16 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:18:30] Production.INFO: ==2523== Releasing lock... [2025-01-16 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:18:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:19:05 [end_date_ymd] => 2025-01-16 12:19:05 [RateCDR] => 1 ) [2025-01-16 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:19:05' and `end` < '2025-01-16 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:19:20] Production.INFO: count ==5322 [2025-01-16 12:19:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:19:05 - End Time 2025-01-16 12:19:05 [2025-01-16 12:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260912', 'tblTempUsageDetail_20' ) start [2025-01-16 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260912', 'tblTempUsageDetail_20' ) end [2025-01-16 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260912', 'tblTempVendorCDR_20' ) start [2025-01-16 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260912', 'tblTempVendorCDR_20' ) end [2025-01-16 12:19:23] Production.INFO: ProcessCDR(1,14260912,1,1,2) [2025-01-16 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260912', 'tblTempUsageDetail_20' ) start [2025-01-16 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260912', 'tblTempUsageDetail_20' ) end [2025-01-16 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:19:27] Production.INFO: ==2593== Releasing lock... [2025-01-16 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:19:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:20:06 [end_date_ymd] => 2025-01-16 12:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 09:20:06' and `end` < '2025-01-16 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-01-16 12:20:23] Production.INFO: count ==5318 [2025-01-16 12:20:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:20:06 - End Time 2025-01-16 12:20:06 [2025-01-16 12:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260918', 'tblTempUsageDetail_20' ) start [2025-01-16 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260918', 'tblTempUsageDetail_20' ) end [2025-01-16 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260918', 'tblTempVendorCDR_20' ) start [2025-01-16 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260918', 'tblTempVendorCDR_20' ) end [2025-01-16 12:20:25] Production.INFO: ProcessCDR(1,14260918,1,1,2) [2025-01-16 12:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260918', 'tblTempUsageDetail_20' ) start [2025-01-16 12:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260918', 'tblTempUsageDetail_20' ) end [2025-01-16 12:20:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:20:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:20:31] Production.INFO: ==2665== Releasing lock... [2025-01-16 12:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:20:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:21:05 [end_date_ymd] => 2025-01-16 12:21:05 [RateCDR] => 1 ) [2025-01-16 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:21:05' and `end` < '2025-01-16 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:21:24] Production.INFO: count ==5331 [2025-01-16 12:21:26] Production.ERROR: pbx CDR StartTime 2025-01-16 09:21:05 - End Time 2025-01-16 12:21:05 [2025-01-16 12:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260923', 'tblTempUsageDetail_20' ) start [2025-01-16 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260923', 'tblTempUsageDetail_20' ) end [2025-01-16 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260923', 'tblTempVendorCDR_20' ) start [2025-01-16 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260923', 'tblTempVendorCDR_20' ) end [2025-01-16 12:21:27] Production.INFO: ProcessCDR(1,14260923,1,1,2) [2025-01-16 12:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260923', 'tblTempUsageDetail_20' ) start [2025-01-16 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260923', 'tblTempUsageDetail_20' ) end [2025-01-16 12:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:21:32] Production.INFO: ==2744== Releasing lock... [2025-01-16 12:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:21:32] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:22:05 [end_date_ymd] => 2025-01-16 12:22:05 [RateCDR] => 1 ) [2025-01-16 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:22:05' and `end` < '2025-01-16 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:22:24] Production.INFO: count ==5332 [2025-01-16 12:22:27] Production.ERROR: pbx CDR StartTime 2025-01-16 09:22:05 - End Time 2025-01-16 12:22:05 [2025-01-16 12:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260928', 'tblTempUsageDetail_20' ) start [2025-01-16 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260928', 'tblTempUsageDetail_20' ) end [2025-01-16 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260928', 'tblTempVendorCDR_20' ) start [2025-01-16 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260928', 'tblTempVendorCDR_20' ) end [2025-01-16 12:22:27] Production.INFO: ProcessCDR(1,14260928,1,1,2) [2025-01-16 12:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260928', 'tblTempUsageDetail_20' ) start [2025-01-16 12:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260928', 'tblTempUsageDetail_20' ) end [2025-01-16 12:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:22:32] Production.INFO: ==2819== Releasing lock... [2025-01-16 12:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:22:32] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:23:05 [end_date_ymd] => 2025-01-16 12:23:05 [RateCDR] => 1 ) [2025-01-16 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:23:05' and `end` < '2025-01-16 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:23:21] Production.INFO: count ==5332 [2025-01-16 12:23:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:23:05 - End Time 2025-01-16 12:23:05 [2025-01-16 12:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260933', 'tblTempUsageDetail_20' ) start [2025-01-16 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260933', 'tblTempUsageDetail_20' ) end [2025-01-16 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260933', 'tblTempVendorCDR_20' ) start [2025-01-16 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260933', 'tblTempVendorCDR_20' ) end [2025-01-16 12:23:24] Production.INFO: ProcessCDR(1,14260933,1,1,2) [2025-01-16 12:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260933', 'tblTempUsageDetail_20' ) start [2025-01-16 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260933', 'tblTempUsageDetail_20' ) end [2025-01-16 12:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:23:29] Production.INFO: ==2891== Releasing lock... [2025-01-16 12:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:23:29] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:24:05 [end_date_ymd] => 2025-01-16 12:24:05 [RateCDR] => 1 ) [2025-01-16 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:24:05' and `end` < '2025-01-16 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:24:19] Production.INFO: count ==5309 [2025-01-16 12:24:22] Production.ERROR: pbx CDR StartTime 2025-01-16 09:24:05 - End Time 2025-01-16 12:24:05 [2025-01-16 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260938', 'tblTempUsageDetail_20' ) start [2025-01-16 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260938', 'tblTempUsageDetail_20' ) end [2025-01-16 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260938', 'tblTempVendorCDR_20' ) start [2025-01-16 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260938', 'tblTempVendorCDR_20' ) end [2025-01-16 12:24:22] Production.INFO: ProcessCDR(1,14260938,1,1,2) [2025-01-16 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260938', 'tblTempUsageDetail_20' ) start [2025-01-16 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260938', 'tblTempUsageDetail_20' ) end [2025-01-16 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:24:25] Production.INFO: ==2961== Releasing lock... [2025-01-16 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:24:25] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:25:05 [end_date_ymd] => 2025-01-16 12:25:05 [RateCDR] => 1 ) [2025-01-16 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:25:05' and `end` < '2025-01-16 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:25:21] Production.INFO: count ==5319 [2025-01-16 12:25:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:25:05 - End Time 2025-01-16 12:25:05 [2025-01-16 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260943', 'tblTempUsageDetail_20' ) start [2025-01-16 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260943', 'tblTempUsageDetail_20' ) end [2025-01-16 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260943', 'tblTempVendorCDR_20' ) start [2025-01-16 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260943', 'tblTempVendorCDR_20' ) end [2025-01-16 12:25:23] Production.INFO: ProcessCDR(1,14260943,1,1,2) [2025-01-16 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260943', 'tblTempUsageDetail_20' ) start [2025-01-16 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260943', 'tblTempUsageDetail_20' ) end [2025-01-16 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:25:29] Production.INFO: ==3073== Releasing lock... [2025-01-16 12:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:25:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:26:04 [end_date_ymd] => 2025-01-16 12:26:04 [RateCDR] => 1 ) [2025-01-16 12:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:26:04' and `end` < '2025-01-16 12:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:26:22] Production.INFO: count ==5308 [2025-01-16 12:26:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:26:04 - End Time 2025-01-16 12:26:04 [2025-01-16 12:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260948', 'tblTempUsageDetail_20' ) start [2025-01-16 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260948', 'tblTempUsageDetail_20' ) end [2025-01-16 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260948', 'tblTempVendorCDR_20' ) start [2025-01-16 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260948', 'tblTempVendorCDR_20' ) end [2025-01-16 12:26:25] Production.INFO: ProcessCDR(1,14260948,1,1,2) [2025-01-16 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260948', 'tblTempUsageDetail_20' ) start [2025-01-16 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260948', 'tblTempUsageDetail_20' ) end [2025-01-16 12:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:26:29] Production.INFO: ==3144== Releasing lock... [2025-01-16 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:26:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:27:05 [end_date_ymd] => 2025-01-16 12:27:05 [RateCDR] => 1 ) [2025-01-16 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:27:05' and `end` < '2025-01-16 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:27:23] Production.INFO: count ==5307 [2025-01-16 12:27:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:27:05 - End Time 2025-01-16 12:27:05 [2025-01-16 12:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260953', 'tblTempUsageDetail_20' ) start [2025-01-16 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260953', 'tblTempUsageDetail_20' ) end [2025-01-16 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260953', 'tblTempVendorCDR_20' ) start [2025-01-16 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260953', 'tblTempVendorCDR_20' ) end [2025-01-16 12:27:26] Production.INFO: ProcessCDR(1,14260953,1,1,2) [2025-01-16 12:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260953', 'tblTempUsageDetail_20' ) start [2025-01-16 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260953', 'tblTempUsageDetail_20' ) end [2025-01-16 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:27:30] Production.INFO: ==3214== Releasing lock... [2025-01-16 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:27:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:28:05 [end_date_ymd] => 2025-01-16 12:28:05 [RateCDR] => 1 ) [2025-01-16 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:28:05' and `end` < '2025-01-16 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:28:23] Production.INFO: count ==5312 [2025-01-16 12:28:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:28:05 - End Time 2025-01-16 12:28:05 [2025-01-16 12:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260958', 'tblTempUsageDetail_20' ) start [2025-01-16 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260958', 'tblTempUsageDetail_20' ) end [2025-01-16 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260958', 'tblTempVendorCDR_20' ) start [2025-01-16 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260958', 'tblTempVendorCDR_20' ) end [2025-01-16 12:28:25] Production.INFO: ProcessCDR(1,14260958,1,1,2) [2025-01-16 12:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260958', 'tblTempUsageDetail_20' ) start [2025-01-16 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260958', 'tblTempUsageDetail_20' ) end [2025-01-16 12:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:28:30] Production.INFO: ==3283== Releasing lock... [2025-01-16 12:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:28:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:29:05 [end_date_ymd] => 2025-01-16 12:29:05 [RateCDR] => 1 ) [2025-01-16 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:29:05' and `end` < '2025-01-16 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:29:21] Production.INFO: count ==5301 [2025-01-16 12:29:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:29:05 - End Time 2025-01-16 12:29:05 [2025-01-16 12:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260963', 'tblTempUsageDetail_20' ) start [2025-01-16 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260963', 'tblTempUsageDetail_20' ) end [2025-01-16 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260963', 'tblTempVendorCDR_20' ) start [2025-01-16 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260963', 'tblTempVendorCDR_20' ) end [2025-01-16 12:29:23] Production.INFO: ProcessCDR(1,14260963,1,1,2) [2025-01-16 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260963', 'tblTempUsageDetail_20' ) start [2025-01-16 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260963', 'tblTempUsageDetail_20' ) end [2025-01-16 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:29:28] Production.INFO: ==3355== Releasing lock... [2025-01-16 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:29:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:30:06 [end_date_ymd] => 2025-01-16 12:30:06 [RateCDR] => 1 ) [2025-01-16 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:30:06' and `end` < '2025-01-16 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:30:24] Production.INFO: count ==5302 [2025-01-16 12:30:26] Production.ERROR: pbx CDR StartTime 2025-01-16 09:30:06 - End Time 2025-01-16 12:30:06 [2025-01-16 12:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260969', 'tblTempUsageDetail_20' ) start [2025-01-16 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260969', 'tblTempUsageDetail_20' ) end [2025-01-16 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260969', 'tblTempVendorCDR_20' ) start [2025-01-16 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260969', 'tblTempVendorCDR_20' ) end [2025-01-16 12:30:27] Production.INFO: ProcessCDR(1,14260969,1,1,2) [2025-01-16 12:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260969', 'tblTempUsageDetail_20' ) start [2025-01-16 12:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260969', 'tblTempUsageDetail_20' ) end [2025-01-16 12:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:30:31] Production.INFO: ==3427== Releasing lock... [2025-01-16 12:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:30:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:31:05 [end_date_ymd] => 2025-01-16 12:31:05 [RateCDR] => 1 ) [2025-01-16 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:31:05' and `end` < '2025-01-16 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:31:18] Production.INFO: count ==5313 [2025-01-16 12:31:21] Production.ERROR: pbx CDR StartTime 2025-01-16 09:31:05 - End Time 2025-01-16 12:31:05 [2025-01-16 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260974', 'tblTempUsageDetail_20' ) start [2025-01-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260974', 'tblTempUsageDetail_20' ) end [2025-01-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260974', 'tblTempVendorCDR_20' ) start [2025-01-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260974', 'tblTempVendorCDR_20' ) end [2025-01-16 12:31:21] Production.INFO: ProcessCDR(1,14260974,1,1,2) [2025-01-16 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260974', 'tblTempUsageDetail_20' ) start [2025-01-16 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260974', 'tblTempUsageDetail_20' ) end [2025-01-16 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:31:26] Production.INFO: ==3499== Releasing lock... [2025-01-16 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:31:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:32:05 [end_date_ymd] => 2025-01-16 12:32:05 [RateCDR] => 1 ) [2025-01-16 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:32:05' and `end` < '2025-01-16 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:32:21] Production.INFO: count ==5302 [2025-01-16 12:32:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:32:05 - End Time 2025-01-16 12:32:05 [2025-01-16 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260979', 'tblTempUsageDetail_20' ) start [2025-01-16 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260979', 'tblTempUsageDetail_20' ) end [2025-01-16 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260979', 'tblTempVendorCDR_20' ) start [2025-01-16 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260979', 'tblTempVendorCDR_20' ) end [2025-01-16 12:32:23] Production.INFO: ProcessCDR(1,14260979,1,1,2) [2025-01-16 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260979', 'tblTempUsageDetail_20' ) start [2025-01-16 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260979', 'tblTempUsageDetail_20' ) end [2025-01-16 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:32:28] Production.INFO: ==3576== Releasing lock... [2025-01-16 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:32:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:33:05 [end_date_ymd] => 2025-01-16 12:33:05 [RateCDR] => 1 ) [2025-01-16 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:33:05' and `end` < '2025-01-16 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:33:22] Production.INFO: count ==5298 [2025-01-16 12:33:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:33:05 - End Time 2025-01-16 12:33:05 [2025-01-16 12:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260984', 'tblTempUsageDetail_20' ) start [2025-01-16 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260984', 'tblTempUsageDetail_20' ) end [2025-01-16 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260984', 'tblTempVendorCDR_20' ) start [2025-01-16 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260984', 'tblTempVendorCDR_20' ) end [2025-01-16 12:33:24] Production.INFO: ProcessCDR(1,14260984,1,1,2) [2025-01-16 12:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260984', 'tblTempUsageDetail_20' ) start [2025-01-16 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260984', 'tblTempUsageDetail_20' ) end [2025-01-16 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:33:30] Production.INFO: ==3648== Releasing lock... [2025-01-16 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:33:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:34:05 [end_date_ymd] => 2025-01-16 12:34:05 [RateCDR] => 1 ) [2025-01-16 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:34:05' and `end` < '2025-01-16 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:34:26] Production.INFO: count ==5293 [2025-01-16 12:34:29] Production.ERROR: pbx CDR StartTime 2025-01-16 09:34:05 - End Time 2025-01-16 12:34:05 [2025-01-16 12:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260989', 'tblTempUsageDetail_20' ) start [2025-01-16 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260989', 'tblTempUsageDetail_20' ) end [2025-01-16 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260989', 'tblTempVendorCDR_20' ) start [2025-01-16 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260989', 'tblTempVendorCDR_20' ) end [2025-01-16 12:34:29] Production.INFO: ProcessCDR(1,14260989,1,1,2) [2025-01-16 12:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260989', 'tblTempUsageDetail_20' ) start [2025-01-16 12:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260989', 'tblTempUsageDetail_20' ) end [2025-01-16 12:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:34:34] Production.INFO: ==3717== Releasing lock... [2025-01-16 12:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:34:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:35:05 [end_date_ymd] => 2025-01-16 12:35:05 [RateCDR] => 1 ) [2025-01-16 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:35:05' and `end` < '2025-01-16 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:35:28] Production.INFO: count ==5303 [2025-01-16 12:35:30] Production.ERROR: pbx CDR StartTime 2025-01-16 09:35:05 - End Time 2025-01-16 12:35:05 [2025-01-16 12:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260994', 'tblTempUsageDetail_20' ) start [2025-01-16 12:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260994', 'tblTempUsageDetail_20' ) end [2025-01-16 12:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260994', 'tblTempVendorCDR_20' ) start [2025-01-16 12:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260994', 'tblTempVendorCDR_20' ) end [2025-01-16 12:35:31] Production.INFO: ProcessCDR(1,14260994,1,1,2) [2025-01-16 12:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260994', 'tblTempUsageDetail_20' ) start [2025-01-16 12:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260994', 'tblTempUsageDetail_20' ) end [2025-01-16 12:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:35:36] Production.INFO: ==3791== Releasing lock... [2025-01-16 12:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:35:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:36:05 [end_date_ymd] => 2025-01-16 12:36:05 [RateCDR] => 1 ) [2025-01-16 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:36:05' and `end` < '2025-01-16 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:36:24] Production.INFO: count ==5309 [2025-01-16 12:36:27] Production.ERROR: pbx CDR StartTime 2025-01-16 09:36:05 - End Time 2025-01-16 12:36:05 [2025-01-16 12:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260999', 'tblTempUsageDetail_20' ) start [2025-01-16 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14260999', 'tblTempUsageDetail_20' ) end [2025-01-16 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260999', 'tblTempVendorCDR_20' ) start [2025-01-16 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14260999', 'tblTempVendorCDR_20' ) end [2025-01-16 12:36:27] Production.INFO: ProcessCDR(1,14260999,1,1,2) [2025-01-16 12:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14260999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14260999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14260999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14260999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260999', 'tblTempUsageDetail_20' ) start [2025-01-16 12:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14260999', 'tblTempUsageDetail_20' ) end [2025-01-16 12:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:36:32] Production.INFO: ==3862== Releasing lock... [2025-01-16 12:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:36:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:37:05 [end_date_ymd] => 2025-01-16 12:37:05 [RateCDR] => 1 ) [2025-01-16 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:37:05' and `end` < '2025-01-16 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:37:19] Production.INFO: count ==5296 [2025-01-16 12:37:21] Production.ERROR: pbx CDR StartTime 2025-01-16 09:37:05 - End Time 2025-01-16 12:37:05 [2025-01-16 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261004', 'tblTempUsageDetail_20' ) start [2025-01-16 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261004', 'tblTempUsageDetail_20' ) end [2025-01-16 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261004', 'tblTempVendorCDR_20' ) start [2025-01-16 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261004', 'tblTempVendorCDR_20' ) end [2025-01-16 12:37:21] Production.INFO: ProcessCDR(1,14261004,1,1,2) [2025-01-16 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261004', 'tblTempUsageDetail_20' ) start [2025-01-16 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261004', 'tblTempUsageDetail_20' ) end [2025-01-16 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:37:26] Production.INFO: ==3933== Releasing lock... [2025-01-16 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:37:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:38:05 [end_date_ymd] => 2025-01-16 12:38:05 [RateCDR] => 1 ) [2025-01-16 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:38:05' and `end` < '2025-01-16 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:38:36] Production.INFO: count ==5277 [2025-01-16 12:38:38] Production.ERROR: pbx CDR StartTime 2025-01-16 09:38:05 - End Time 2025-01-16 12:38:05 [2025-01-16 12:38:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261009', 'tblTempUsageDetail_20' ) start [2025-01-16 12:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261009', 'tblTempUsageDetail_20' ) end [2025-01-16 12:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261009', 'tblTempVendorCDR_20' ) start [2025-01-16 12:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261009', 'tblTempVendorCDR_20' ) end [2025-01-16 12:38:38] Production.INFO: ProcessCDR(1,14261009,1,1,2) [2025-01-16 12:38:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:38:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:38:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:38:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:38:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261009', 'tblTempUsageDetail_20' ) start [2025-01-16 12:38:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261009', 'tblTempUsageDetail_20' ) end [2025-01-16 12:38:44] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:38:44] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:38:44] Production.INFO: ==4005== Releasing lock... [2025-01-16 12:38:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:38:44] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:39:05 [end_date_ymd] => 2025-01-16 12:39:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 09:39:05' and `end` < '2025-01-16 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-01-16 12:39:23] Production.INFO: count ==5277 [2025-01-16 12:39:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:39:05 - End Time 2025-01-16 12:39:05 [2025-01-16 12:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261014', 'tblTempUsageDetail_20' ) start [2025-01-16 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261014', 'tblTempUsageDetail_20' ) end [2025-01-16 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261014', 'tblTempVendorCDR_20' ) start [2025-01-16 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261014', 'tblTempVendorCDR_20' ) end [2025-01-16 12:39:25] Production.INFO: ProcessCDR(1,14261014,1,1,2) [2025-01-16 12:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261014', 'tblTempUsageDetail_20' ) start [2025-01-16 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261014', 'tblTempUsageDetail_20' ) end [2025-01-16 12:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:39:30] Production.INFO: ==4078== Releasing lock... [2025-01-16 12:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:39:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:40:06 [end_date_ymd] => 2025-01-16 12:40:06 [RateCDR] => 1 ) [2025-01-16 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:40:06' and `end` < '2025-01-16 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:40:29] Production.INFO: count ==5268 [2025-01-16 12:40:32] Production.ERROR: pbx CDR StartTime 2025-01-16 09:40:06 - End Time 2025-01-16 12:40:06 [2025-01-16 12:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261020', 'tblTempUsageDetail_20' ) start [2025-01-16 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261020', 'tblTempUsageDetail_20' ) end [2025-01-16 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261020', 'tblTempVendorCDR_20' ) start [2025-01-16 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261020', 'tblTempVendorCDR_20' ) end [2025-01-16 12:40:32] Production.INFO: ProcessCDR(1,14261020,1,1,2) [2025-01-16 12:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261020', 'tblTempUsageDetail_20' ) start [2025-01-16 12:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261020', 'tblTempUsageDetail_20' ) end [2025-01-16 12:40:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:40:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:40:37] Production.INFO: ==4190== Releasing lock... [2025-01-16 12:40:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:40:37] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:41:05 [end_date_ymd] => 2025-01-16 12:41:05 [RateCDR] => 1 ) [2025-01-16 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:41:05' and `end` < '2025-01-16 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:41:23] Production.INFO: count ==5290 [2025-01-16 12:41:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:41:05 - End Time 2025-01-16 12:41:05 [2025-01-16 12:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261025', 'tblTempUsageDetail_20' ) start [2025-01-16 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261025', 'tblTempUsageDetail_20' ) end [2025-01-16 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261025', 'tblTempVendorCDR_20' ) start [2025-01-16 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261025', 'tblTempVendorCDR_20' ) end [2025-01-16 12:41:25] Production.INFO: ProcessCDR(1,14261025,1,1,2) [2025-01-16 12:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261025', 'tblTempUsageDetail_20' ) start [2025-01-16 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261025', 'tblTempUsageDetail_20' ) end [2025-01-16 12:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:41:29] Production.INFO: ==4262== Releasing lock... [2025-01-16 12:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:41:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:42:05 [end_date_ymd] => 2025-01-16 12:42:05 [RateCDR] => 1 ) [2025-01-16 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:42:05' and `end` < '2025-01-16 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:42:22] Production.INFO: count ==5279 [2025-01-16 12:42:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:42:05 - End Time 2025-01-16 12:42:05 [2025-01-16 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261030', 'tblTempUsageDetail_20' ) start [2025-01-16 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261030', 'tblTempUsageDetail_20' ) end [2025-01-16 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261030', 'tblTempVendorCDR_20' ) start [2025-01-16 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261030', 'tblTempVendorCDR_20' ) end [2025-01-16 12:42:24] Production.INFO: ProcessCDR(1,14261030,1,1,2) [2025-01-16 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261030', 'tblTempUsageDetail_20' ) start [2025-01-16 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261030', 'tblTempUsageDetail_20' ) end [2025-01-16 12:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:42:29] Production.INFO: ==4332== Releasing lock... [2025-01-16 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:42:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:43:05 [end_date_ymd] => 2025-01-16 12:43:05 [RateCDR] => 1 ) [2025-01-16 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:43:05' and `end` < '2025-01-16 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:43:20] Production.INFO: count ==5268 [2025-01-16 12:43:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:43:05 - End Time 2025-01-16 12:43:05 [2025-01-16 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261035', 'tblTempUsageDetail_20' ) start [2025-01-16 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261035', 'tblTempUsageDetail_20' ) end [2025-01-16 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261035', 'tblTempVendorCDR_20' ) start [2025-01-16 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261035', 'tblTempVendorCDR_20' ) end [2025-01-16 12:43:23] Production.INFO: ProcessCDR(1,14261035,1,1,2) [2025-01-16 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261035', 'tblTempUsageDetail_20' ) start [2025-01-16 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261035', 'tblTempUsageDetail_20' ) end [2025-01-16 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:43:28] Production.INFO: ==4402== Releasing lock... [2025-01-16 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:43:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:44:05 [end_date_ymd] => 2025-01-16 12:44:05 [RateCDR] => 1 ) [2025-01-16 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:44:05' and `end` < '2025-01-16 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:44:22] Production.INFO: count ==5275 [2025-01-16 12:44:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:44:05 - End Time 2025-01-16 12:44:05 [2025-01-16 12:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261040', 'tblTempUsageDetail_20' ) start [2025-01-16 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261040', 'tblTempUsageDetail_20' ) end [2025-01-16 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261040', 'tblTempVendorCDR_20' ) start [2025-01-16 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261040', 'tblTempVendorCDR_20' ) end [2025-01-16 12:44:25] Production.INFO: ProcessCDR(1,14261040,1,1,2) [2025-01-16 12:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261040', 'tblTempUsageDetail_20' ) start [2025-01-16 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261040', 'tblTempUsageDetail_20' ) end [2025-01-16 12:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:44:30] Production.INFO: ==4478== Releasing lock... [2025-01-16 12:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:44:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:45:05 [end_date_ymd] => 2025-01-16 12:45:05 [RateCDR] => 1 ) [2025-01-16 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:45:05' and `end` < '2025-01-16 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:45:21] Production.INFO: count ==5280 [2025-01-16 12:45:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:45:05 - End Time 2025-01-16 12:45:05 [2025-01-16 12:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261045', 'tblTempUsageDetail_20' ) start [2025-01-16 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261045', 'tblTempUsageDetail_20' ) end [2025-01-16 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261045', 'tblTempVendorCDR_20' ) start [2025-01-16 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261045', 'tblTempVendorCDR_20' ) end [2025-01-16 12:45:23] Production.INFO: ProcessCDR(1,14261045,1,1,2) [2025-01-16 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261045', 'tblTempUsageDetail_20' ) start [2025-01-16 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261045', 'tblTempUsageDetail_20' ) end [2025-01-16 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:45:28] Production.INFO: ==4548== Releasing lock... [2025-01-16 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:45:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:46:05 [end_date_ymd] => 2025-01-16 12:46:05 [RateCDR] => 1 ) [2025-01-16 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:46:05' and `end` < '2025-01-16 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:46:22] Production.INFO: count ==5276 [2025-01-16 12:46:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:46:05 - End Time 2025-01-16 12:46:05 [2025-01-16 12:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261050', 'tblTempUsageDetail_20' ) start [2025-01-16 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261050', 'tblTempUsageDetail_20' ) end [2025-01-16 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261050', 'tblTempVendorCDR_20' ) start [2025-01-16 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261050', 'tblTempVendorCDR_20' ) end [2025-01-16 12:46:24] Production.INFO: ProcessCDR(1,14261050,1,1,2) [2025-01-16 12:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261050', 'tblTempUsageDetail_20' ) start [2025-01-16 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261050', 'tblTempUsageDetail_20' ) end [2025-01-16 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:46:29] Production.INFO: ==4626== Releasing lock... [2025-01-16 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:46:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:47:05 [end_date_ymd] => 2025-01-16 12:47:05 [RateCDR] => 1 ) [2025-01-16 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:47:05' and `end` < '2025-01-16 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:47:20] Production.INFO: count ==5260 [2025-01-16 12:47:22] Production.ERROR: pbx CDR StartTime 2025-01-16 09:47:05 - End Time 2025-01-16 12:47:05 [2025-01-16 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261055', 'tblTempUsageDetail_20' ) start [2025-01-16 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261055', 'tblTempUsageDetail_20' ) end [2025-01-16 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261055', 'tblTempVendorCDR_20' ) start [2025-01-16 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261055', 'tblTempVendorCDR_20' ) end [2025-01-16 12:47:22] Production.INFO: ProcessCDR(1,14261055,1,1,2) [2025-01-16 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261055', 'tblTempUsageDetail_20' ) start [2025-01-16 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261055', 'tblTempUsageDetail_20' ) end [2025-01-16 12:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:47:25] Production.INFO: ==4700== Releasing lock... [2025-01-16 12:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:47:25] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:48:05 [end_date_ymd] => 2025-01-16 12:48:05 [RateCDR] => 1 ) [2025-01-16 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:48:05' and `end` < '2025-01-16 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:48:18] Production.INFO: count ==5267 [2025-01-16 12:48:20] Production.ERROR: pbx CDR StartTime 2025-01-16 09:48:05 - End Time 2025-01-16 12:48:05 [2025-01-16 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261060', 'tblTempUsageDetail_20' ) start [2025-01-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261060', 'tblTempUsageDetail_20' ) end [2025-01-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261060', 'tblTempVendorCDR_20' ) start [2025-01-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261060', 'tblTempVendorCDR_20' ) end [2025-01-16 12:48:21] Production.INFO: ProcessCDR(1,14261060,1,1,2) [2025-01-16 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261060', 'tblTempUsageDetail_20' ) start [2025-01-16 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261060', 'tblTempUsageDetail_20' ) end [2025-01-16 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:48:26] Production.INFO: ==4771== Releasing lock... [2025-01-16 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:48:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:49:05 [end_date_ymd] => 2025-01-16 12:49:05 [RateCDR] => 1 ) [2025-01-16 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:49:05' and `end` < '2025-01-16 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:49:22] Production.INFO: count ==5262 [2025-01-16 12:49:24] Production.ERROR: pbx CDR StartTime 2025-01-16 09:49:05 - End Time 2025-01-16 12:49:05 [2025-01-16 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261065', 'tblTempUsageDetail_20' ) start [2025-01-16 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261065', 'tblTempUsageDetail_20' ) end [2025-01-16 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261065', 'tblTempVendorCDR_20' ) start [2025-01-16 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261065', 'tblTempVendorCDR_20' ) end [2025-01-16 12:49:24] Production.INFO: ProcessCDR(1,14261065,1,1,2) [2025-01-16 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261065', 'tblTempUsageDetail_20' ) start [2025-01-16 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261065', 'tblTempUsageDetail_20' ) end [2025-01-16 12:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:49:29] Production.INFO: ==4843== Releasing lock... [2025-01-16 12:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:49:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:50:06 [end_date_ymd] => 2025-01-16 12:50:06 [RateCDR] => 1 ) [2025-01-16 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:50:06' and `end` < '2025-01-16 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:50:23] Production.INFO: count ==5261 [2025-01-16 12:50:26] Production.ERROR: pbx CDR StartTime 2025-01-16 09:50:06 - End Time 2025-01-16 12:50:06 [2025-01-16 12:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261071', 'tblTempUsageDetail_20' ) start [2025-01-16 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261071', 'tblTempUsageDetail_20' ) end [2025-01-16 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261071', 'tblTempVendorCDR_20' ) start [2025-01-16 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261071', 'tblTempVendorCDR_20' ) end [2025-01-16 12:50:26] Production.INFO: ProcessCDR(1,14261071,1,1,2) [2025-01-16 12:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261071', 'tblTempUsageDetail_20' ) start [2025-01-16 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261071', 'tblTempUsageDetail_20' ) end [2025-01-16 12:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:50:31] Production.INFO: ==4914== Releasing lock... [2025-01-16 12:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:50:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:51:05 [end_date_ymd] => 2025-01-16 12:51:05 [RateCDR] => 1 ) [2025-01-16 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:51:05' and `end` < '2025-01-16 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:51:23] Production.INFO: count ==5319 [2025-01-16 12:51:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:51:05 - End Time 2025-01-16 12:51:05 [2025-01-16 12:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261076', 'tblTempUsageDetail_20' ) start [2025-01-16 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261076', 'tblTempUsageDetail_20' ) end [2025-01-16 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261076', 'tblTempVendorCDR_20' ) start [2025-01-16 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261076', 'tblTempVendorCDR_20' ) end [2025-01-16 12:51:25] Production.INFO: ProcessCDR(1,14261076,1,1,2) [2025-01-16 12:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261076', 'tblTempUsageDetail_20' ) start [2025-01-16 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261076', 'tblTempUsageDetail_20' ) end [2025-01-16 12:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:51:30] Production.INFO: ==4993== Releasing lock... [2025-01-16 12:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:51:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:52:05 [end_date_ymd] => 2025-01-16 12:52:05 [RateCDR] => 1 ) [2025-01-16 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:52:05' and `end` < '2025-01-16 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:52:20] Production.INFO: count ==5330 [2025-01-16 12:52:23] Production.ERROR: pbx CDR StartTime 2025-01-16 09:52:05 - End Time 2025-01-16 12:52:05 [2025-01-16 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261081', 'tblTempUsageDetail_20' ) start [2025-01-16 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261081', 'tblTempUsageDetail_20' ) end [2025-01-16 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261081', 'tblTempVendorCDR_20' ) start [2025-01-16 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261081', 'tblTempVendorCDR_20' ) end [2025-01-16 12:52:23] Production.INFO: ProcessCDR(1,14261081,1,1,2) [2025-01-16 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261081', 'tblTempUsageDetail_20' ) start [2025-01-16 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261081', 'tblTempUsageDetail_20' ) end [2025-01-16 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:52:27] Production.INFO: ==5064== Releasing lock... [2025-01-16 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:52:27] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:53:06 [end_date_ymd] => 2025-01-16 12:53:06 [RateCDR] => 1 ) [2025-01-16 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:53:06' and `end` < '2025-01-16 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:53:19] Production.INFO: count ==5324 [2025-01-16 12:53:21] Production.ERROR: pbx CDR StartTime 2025-01-16 09:53:06 - End Time 2025-01-16 12:53:06 [2025-01-16 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261086', 'tblTempUsageDetail_20' ) start [2025-01-16 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261086', 'tblTempUsageDetail_20' ) end [2025-01-16 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261086', 'tblTempVendorCDR_20' ) start [2025-01-16 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261086', 'tblTempVendorCDR_20' ) end [2025-01-16 12:53:21] Production.INFO: ProcessCDR(1,14261086,1,1,2) [2025-01-16 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261086', 'tblTempUsageDetail_20' ) start [2025-01-16 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261086', 'tblTempUsageDetail_20' ) end [2025-01-16 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:53:26] Production.INFO: ==5136== Releasing lock... [2025-01-16 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:53:26] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:54:05 [end_date_ymd] => 2025-01-16 12:54:05 [RateCDR] => 1 ) [2025-01-16 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:54:05' and `end` < '2025-01-16 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:54:18] Production.INFO: count ==5324 [2025-01-16 12:54:20] Production.ERROR: pbx CDR StartTime 2025-01-16 09:54:05 - End Time 2025-01-16 12:54:05 [2025-01-16 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261091', 'tblTempUsageDetail_20' ) start [2025-01-16 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261091', 'tblTempUsageDetail_20' ) end [2025-01-16 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261091', 'tblTempVendorCDR_20' ) start [2025-01-16 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261091', 'tblTempVendorCDR_20' ) end [2025-01-16 12:54:20] Production.INFO: ProcessCDR(1,14261091,1,1,2) [2025-01-16 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261091', 'tblTempUsageDetail_20' ) start [2025-01-16 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261091', 'tblTempUsageDetail_20' ) end [2025-01-16 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:54:25] Production.INFO: ==5226== Releasing lock... [2025-01-16 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:54:25] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:55:05 [end_date_ymd] => 2025-01-16 12:55:05 [RateCDR] => 1 ) [2025-01-16 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:55:05' and `end` < '2025-01-16 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:55:19] Production.INFO: count ==5335 [2025-01-16 12:55:21] Production.ERROR: pbx CDR StartTime 2025-01-16 09:55:05 - End Time 2025-01-16 12:55:05 [2025-01-16 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261096', 'tblTempUsageDetail_20' ) start [2025-01-16 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261096', 'tblTempUsageDetail_20' ) end [2025-01-16 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261096', 'tblTempVendorCDR_20' ) start [2025-01-16 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261096', 'tblTempVendorCDR_20' ) end [2025-01-16 12:55:21] Production.INFO: ProcessCDR(1,14261096,1,1,2) [2025-01-16 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261096', 'tblTempUsageDetail_20' ) start [2025-01-16 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261096', 'tblTempUsageDetail_20' ) end [2025-01-16 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:55:26] Production.INFO: ==5301== Releasing lock... [2025-01-16 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:55:26] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:56:04 [end_date_ymd] => 2025-01-16 12:56:04 [RateCDR] => 1 ) [2025-01-16 12:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:56:04' and `end` < '2025-01-16 12:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:56:30] Production.INFO: count ==5333 [2025-01-16 12:56:32] Production.ERROR: pbx CDR StartTime 2025-01-16 09:56:04 - End Time 2025-01-16 12:56:04 [2025-01-16 12:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261101', 'tblTempUsageDetail_20' ) start [2025-01-16 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261101', 'tblTempUsageDetail_20' ) end [2025-01-16 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261101', 'tblTempVendorCDR_20' ) start [2025-01-16 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261101', 'tblTempVendorCDR_20' ) end [2025-01-16 12:56:33] Production.INFO: ProcessCDR(1,14261101,1,1,2) [2025-01-16 12:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261101', 'tblTempUsageDetail_20' ) start [2025-01-16 12:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261101', 'tblTempUsageDetail_20' ) end [2025-01-16 12:56:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:56:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:56:37] Production.INFO: ==5413== Releasing lock... [2025-01-16 12:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:56:37] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:57:04 [end_date_ymd] => 2025-01-16 12:57:04 [RateCDR] => 1 ) [2025-01-16 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:57:04' and `end` < '2025-01-16 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:57:29] Production.INFO: count ==5322 [2025-01-16 12:57:31] Production.ERROR: pbx CDR StartTime 2025-01-16 09:57:04 - End Time 2025-01-16 12:57:04 [2025-01-16 12:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261106', 'tblTempUsageDetail_20' ) start [2025-01-16 12:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261106', 'tblTempUsageDetail_20' ) end [2025-01-16 12:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261106', 'tblTempVendorCDR_20' ) start [2025-01-16 12:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261106', 'tblTempVendorCDR_20' ) end [2025-01-16 12:57:32] Production.INFO: ProcessCDR(1,14261106,1,1,2) [2025-01-16 12:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261106', 'tblTempUsageDetail_20' ) start [2025-01-16 12:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261106', 'tblTempUsageDetail_20' ) end [2025-01-16 12:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:57:36] Production.INFO: ==5487== Releasing lock... [2025-01-16 12:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:57:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:58:04 [end_date_ymd] => 2025-01-16 12:58:04 [RateCDR] => 1 ) [2025-01-16 12:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:58:04' and `end` < '2025-01-16 12:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:58:23] Production.INFO: count ==5328 [2025-01-16 12:58:26] Production.ERROR: pbx CDR StartTime 2025-01-16 09:58:04 - End Time 2025-01-16 12:58:04 [2025-01-16 12:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261111', 'tblTempUsageDetail_20' ) start [2025-01-16 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261111', 'tblTempUsageDetail_20' ) end [2025-01-16 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261111', 'tblTempVendorCDR_20' ) start [2025-01-16 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261111', 'tblTempVendorCDR_20' ) end [2025-01-16 12:58:26] Production.INFO: ProcessCDR(1,14261111,1,1,2) [2025-01-16 12:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261111', 'tblTempUsageDetail_20' ) start [2025-01-16 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261111', 'tblTempUsageDetail_20' ) end [2025-01-16 12:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:58:30] Production.INFO: ==5557== Releasing lock... [2025-01-16 12:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:58:30] Production.INFO: 68 MB #Memory Used# [2025-01-16 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 09:59:05 [end_date_ymd] => 2025-01-16 12:59:05 [RateCDR] => 1 ) [2025-01-16 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 09:59:05' and `end` < '2025-01-16 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 12:59:23] Production.INFO: count ==5364 [2025-01-16 12:59:25] Production.ERROR: pbx CDR StartTime 2025-01-16 09:59:05 - End Time 2025-01-16 12:59:05 [2025-01-16 12:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261116', 'tblTempUsageDetail_20' ) start [2025-01-16 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261116', 'tblTempUsageDetail_20' ) end [2025-01-16 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261116', 'tblTempVendorCDR_20' ) start [2025-01-16 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261116', 'tblTempVendorCDR_20' ) end [2025-01-16 12:59:26] Production.INFO: ProcessCDR(1,14261116,1,1,2) [2025-01-16 12:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 12:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 12:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261116', 'tblTempUsageDetail_20' ) start [2025-01-16 12:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261116', 'tblTempUsageDetail_20' ) end [2025-01-16 12:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 12:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 12:59:31] Production.INFO: ==5629== Releasing lock... [2025-01-16 12:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 12:59:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:00:05 [end_date_ymd] => 2025-01-16 13:00:05 [RateCDR] => 1 ) [2025-01-16 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:00:05' and `end` < '2025-01-16 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:00:25] Production.INFO: count ==5360 [2025-01-16 13:00:27] Production.ERROR: pbx CDR StartTime 2025-01-16 10:00:05 - End Time 2025-01-16 13:00:05 [2025-01-16 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261122', 'tblTempUsageDetail_20' ) start [2025-01-16 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261122', 'tblTempUsageDetail_20' ) end [2025-01-16 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261122', 'tblTempVendorCDR_20' ) start [2025-01-16 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261122', 'tblTempVendorCDR_20' ) end [2025-01-16 13:00:27] Production.INFO: ProcessCDR(1,14261122,1,1,2) [2025-01-16 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261122', 'tblTempUsageDetail_20' ) start [2025-01-16 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261122', 'tblTempUsageDetail_20' ) end [2025-01-16 13:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:00:32] Production.INFO: ==5700== Releasing lock... [2025-01-16 13:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:00:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:01:05 [end_date_ymd] => 2025-01-16 13:01:05 [RateCDR] => 1 ) [2025-01-16 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:01:05' and `end` < '2025-01-16 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:01:24] Production.INFO: count ==5413 [2025-01-16 13:01:27] Production.ERROR: pbx CDR StartTime 2025-01-16 10:01:05 - End Time 2025-01-16 13:01:05 [2025-01-16 13:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261127', 'tblTempUsageDetail_20' ) start [2025-01-16 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261127', 'tblTempUsageDetail_20' ) end [2025-01-16 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261127', 'tblTempVendorCDR_20' ) start [2025-01-16 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261127', 'tblTempVendorCDR_20' ) end [2025-01-16 13:01:27] Production.INFO: ProcessCDR(1,14261127,1,1,2) [2025-01-16 13:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261127', 'tblTempUsageDetail_20' ) start [2025-01-16 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261127', 'tblTempUsageDetail_20' ) end [2025-01-16 13:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:01:32] Production.INFO: ==5789== Releasing lock... [2025-01-16 13:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:01:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-16 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:02:06 [end_date_ymd] => 2025-01-16 13:02:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 10:02:06' and `end` < '2025-01-16 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-01-16 13:02:27] Production.INFO: count ==5442 [2025-01-16 13:02:29] Production.ERROR: pbx CDR StartTime 2025-01-16 10:02:06 - End Time 2025-01-16 13:02:06 [2025-01-16 13:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261132', 'tblTempUsageDetail_20' ) start [2025-01-16 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261132', 'tblTempUsageDetail_20' ) end [2025-01-16 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261132', 'tblTempVendorCDR_20' ) start [2025-01-16 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261132', 'tblTempVendorCDR_20' ) end [2025-01-16 13:02:29] Production.INFO: ProcessCDR(1,14261132,1,1,2) [2025-01-16 13:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:02:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261132', 'tblTempUsageDetail_20' ) start [2025-01-16 13:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261132', 'tblTempUsageDetail_20' ) end [2025-01-16 13:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:02:35] Production.INFO: ==5861== Releasing lock... [2025-01-16 13:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:02:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-16 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:03:05 [end_date_ymd] => 2025-01-16 13:03:05 [RateCDR] => 1 ) [2025-01-16 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:03:05' and `end` < '2025-01-16 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:03:21] Production.INFO: count ==5450 [2025-01-16 13:03:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:03:05 - End Time 2025-01-16 13:03:05 [2025-01-16 13:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261137', 'tblTempUsageDetail_20' ) start [2025-01-16 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261137', 'tblTempUsageDetail_20' ) end [2025-01-16 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261137', 'tblTempVendorCDR_20' ) start [2025-01-16 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261137', 'tblTempVendorCDR_20' ) end [2025-01-16 13:03:24] Production.INFO: ProcessCDR(1,14261137,1,1,2) [2025-01-16 13:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261137', 'tblTempUsageDetail_20' ) start [2025-01-16 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261137', 'tblTempUsageDetail_20' ) end [2025-01-16 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:03:28] Production.INFO: ==5934== Releasing lock... [2025-01-16 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:03:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-16 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:04:05 [end_date_ymd] => 2025-01-16 13:04:05 [RateCDR] => 1 ) [2025-01-16 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:04:05' and `end` < '2025-01-16 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:04:22] Production.INFO: count ==5482 [2025-01-16 13:04:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:04:05 - End Time 2025-01-16 13:04:05 [2025-01-16 13:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261142', 'tblTempUsageDetail_20' ) start [2025-01-16 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261142', 'tblTempUsageDetail_20' ) end [2025-01-16 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261142', 'tblTempVendorCDR_20' ) start [2025-01-16 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261142', 'tblTempVendorCDR_20' ) end [2025-01-16 13:04:25] Production.INFO: ProcessCDR(1,14261142,1,1,2) [2025-01-16 13:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261142', 'tblTempUsageDetail_20' ) start [2025-01-16 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261142', 'tblTempUsageDetail_20' ) end [2025-01-16 13:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:04:30] Production.INFO: ==6007== Releasing lock... [2025-01-16 13:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:04:30] Production.INFO: 69 MB #Memory Used# [2025-01-16 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:05:05 [end_date_ymd] => 2025-01-16 13:05:05 [RateCDR] => 1 ) [2025-01-16 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:05:05' and `end` < '2025-01-16 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:05:28] Production.INFO: count ==5472 [2025-01-16 13:05:31] Production.ERROR: pbx CDR StartTime 2025-01-16 10:05:05 - End Time 2025-01-16 13:05:05 [2025-01-16 13:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261147', 'tblTempUsageDetail_20' ) start [2025-01-16 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261147', 'tblTempUsageDetail_20' ) end [2025-01-16 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261147', 'tblTempVendorCDR_20' ) start [2025-01-16 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261147', 'tblTempVendorCDR_20' ) end [2025-01-16 13:05:31] Production.INFO: ProcessCDR(1,14261147,1,1,2) [2025-01-16 13:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261147', 'tblTempUsageDetail_20' ) start [2025-01-16 13:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261147', 'tblTempUsageDetail_20' ) end [2025-01-16 13:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:05:36] Production.INFO: ==6078== Releasing lock... [2025-01-16 13:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:05:36] Production.INFO: 69 MB #Memory Used# [2025-01-16 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:06:05 [end_date_ymd] => 2025-01-16 13:06:05 [RateCDR] => 1 ) [2025-01-16 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:06:05' and `end` < '2025-01-16 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:06:22] Production.INFO: count ==5548 [2025-01-16 13:06:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:06:05 - End Time 2025-01-16 13:06:05 [2025-01-16 13:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261152', 'tblTempUsageDetail_20' ) start [2025-01-16 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261152', 'tblTempUsageDetail_20' ) end [2025-01-16 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261152', 'tblTempVendorCDR_20' ) start [2025-01-16 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261152', 'tblTempVendorCDR_20' ) end [2025-01-16 13:06:24] Production.INFO: ProcessCDR(1,14261152,1,1,2) [2025-01-16 13:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261152', 'tblTempUsageDetail_20' ) start [2025-01-16 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261152', 'tblTempUsageDetail_20' ) end [2025-01-16 13:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:06:29] Production.INFO: ==6148== Releasing lock... [2025-01-16 13:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:06:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:07:04 [end_date_ymd] => 2025-01-16 13:07:04 [RateCDR] => 1 ) [2025-01-16 13:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:07:04' and `end` < '2025-01-16 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:07:22] Production.INFO: count ==5565 [2025-01-16 13:07:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:07:04 - End Time 2025-01-16 13:07:04 [2025-01-16 13:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261157', 'tblTempUsageDetail_20' ) start [2025-01-16 13:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261157', 'tblTempUsageDetail_20' ) end [2025-01-16 13:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261157', 'tblTempVendorCDR_20' ) start [2025-01-16 13:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261157', 'tblTempVendorCDR_20' ) end [2025-01-16 13:07:25] Production.INFO: ProcessCDR(1,14261157,1,1,2) [2025-01-16 13:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261157', 'tblTempUsageDetail_20' ) start [2025-01-16 13:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261157', 'tblTempUsageDetail_20' ) end [2025-01-16 13:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:07:29] Production.INFO: ==6222== Releasing lock... [2025-01-16 13:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:07:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:08:05 [end_date_ymd] => 2025-01-16 13:08:05 [RateCDR] => 1 ) [2025-01-16 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:08:05' and `end` < '2025-01-16 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:08:26] Production.INFO: count ==5607 [2025-01-16 13:08:28] Production.ERROR: pbx CDR StartTime 2025-01-16 10:08:05 - End Time 2025-01-16 13:08:05 [2025-01-16 13:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261162', 'tblTempUsageDetail_20' ) start [2025-01-16 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261162', 'tblTempUsageDetail_20' ) end [2025-01-16 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261162', 'tblTempVendorCDR_20' ) start [2025-01-16 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261162', 'tblTempVendorCDR_20' ) end [2025-01-16 13:08:28] Production.INFO: ProcessCDR(1,14261162,1,1,2) [2025-01-16 13:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261162', 'tblTempUsageDetail_20' ) start [2025-01-16 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261162', 'tblTempUsageDetail_20' ) end [2025-01-16 13:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:08:33] Production.INFO: ==6294== Releasing lock... [2025-01-16 13:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:08:33] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:09:05 [end_date_ymd] => 2025-01-16 13:09:05 [RateCDR] => 1 ) [2025-01-16 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:09:05' and `end` < '2025-01-16 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:09:23] Production.INFO: count ==5622 [2025-01-16 13:09:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:09:05 - End Time 2025-01-16 13:09:05 [2025-01-16 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261167', 'tblTempUsageDetail_20' ) start [2025-01-16 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261167', 'tblTempUsageDetail_20' ) end [2025-01-16 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261167', 'tblTempVendorCDR_20' ) start [2025-01-16 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261167', 'tblTempVendorCDR_20' ) end [2025-01-16 13:09:25] Production.INFO: ProcessCDR(1,14261167,1,1,2) [2025-01-16 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261167', 'tblTempUsageDetail_20' ) start [2025-01-16 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261167', 'tblTempUsageDetail_20' ) end [2025-01-16 13:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:09:30] Production.INFO: ==6364== Releasing lock... [2025-01-16 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:09:30] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:10:06 [end_date_ymd] => 2025-01-16 13:10:06 [RateCDR] => 1 ) [2025-01-16 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:10:06' and `end` < '2025-01-16 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:10:27] Production.INFO: count ==5653 [2025-01-16 13:10:29] Production.ERROR: pbx CDR StartTime 2025-01-16 10:10:06 - End Time 2025-01-16 13:10:06 [2025-01-16 13:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261173', 'tblTempUsageDetail_20' ) start [2025-01-16 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261173', 'tblTempUsageDetail_20' ) end [2025-01-16 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261173', 'tblTempVendorCDR_20' ) start [2025-01-16 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261173', 'tblTempVendorCDR_20' ) end [2025-01-16 13:10:29] Production.INFO: ProcessCDR(1,14261173,1,1,2) [2025-01-16 13:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261173', 'tblTempUsageDetail_20' ) start [2025-01-16 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261173', 'tblTempUsageDetail_20' ) end [2025-01-16 13:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:10:34] Production.INFO: ==6437== Releasing lock... [2025-01-16 13:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:10:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:11:05 [end_date_ymd] => 2025-01-16 13:11:05 [RateCDR] => 1 ) [2025-01-16 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:11:05' and `end` < '2025-01-16 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:11:23] Production.INFO: count ==5638 [2025-01-16 13:11:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:11:05 - End Time 2025-01-16 13:11:05 [2025-01-16 13:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261178', 'tblTempUsageDetail_20' ) start [2025-01-16 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261178', 'tblTempUsageDetail_20' ) end [2025-01-16 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261178', 'tblTempVendorCDR_20' ) start [2025-01-16 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261178', 'tblTempVendorCDR_20' ) end [2025-01-16 13:11:25] Production.INFO: ProcessCDR(1,14261178,1,1,2) [2025-01-16 13:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261178', 'tblTempUsageDetail_20' ) start [2025-01-16 13:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261178', 'tblTempUsageDetail_20' ) end [2025-01-16 13:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:11:30] Production.INFO: ==6518== Releasing lock... [2025-01-16 13:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:11:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:12:05 [end_date_ymd] => 2025-01-16 13:12:05 [RateCDR] => 1 ) [2025-01-16 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:12:05' and `end` < '2025-01-16 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:12:28] Production.INFO: count ==5666 [2025-01-16 13:12:30] Production.ERROR: pbx CDR StartTime 2025-01-16 10:12:05 - End Time 2025-01-16 13:12:05 [2025-01-16 13:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261183', 'tblTempUsageDetail_20' ) start [2025-01-16 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261183', 'tblTempUsageDetail_20' ) end [2025-01-16 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261183', 'tblTempVendorCDR_20' ) start [2025-01-16 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261183', 'tblTempVendorCDR_20' ) end [2025-01-16 13:12:31] Production.INFO: ProcessCDR(1,14261183,1,1,2) [2025-01-16 13:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261183', 'tblTempUsageDetail_20' ) start [2025-01-16 13:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261183', 'tblTempUsageDetail_20' ) end [2025-01-16 13:12:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:12:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:12:36] Production.INFO: ==6640== Releasing lock... [2025-01-16 13:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:12:36] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:13:05 [end_date_ymd] => 2025-01-16 13:13:05 [RateCDR] => 1 ) [2025-01-16 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:13:05' and `end` < '2025-01-16 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:13:29] Production.INFO: count ==5686 [2025-01-16 13:13:31] Production.ERROR: pbx CDR StartTime 2025-01-16 10:13:05 - End Time 2025-01-16 13:13:05 [2025-01-16 13:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261188', 'tblTempUsageDetail_20' ) start [2025-01-16 13:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261188', 'tblTempUsageDetail_20' ) end [2025-01-16 13:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261188', 'tblTempVendorCDR_20' ) start [2025-01-16 13:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261188', 'tblTempVendorCDR_20' ) end [2025-01-16 13:13:32] Production.INFO: ProcessCDR(1,14261188,1,1,2) [2025-01-16 13:13:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261188', 'tblTempUsageDetail_20' ) start [2025-01-16 13:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261188', 'tblTempUsageDetail_20' ) end [2025-01-16 13:13:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:13:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:13:37] Production.INFO: ==6716== Releasing lock... [2025-01-16 13:13:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:13:37] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:14:05 [end_date_ymd] => 2025-01-16 13:14:05 [RateCDR] => 1 ) [2025-01-16 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:14:05' and `end` < '2025-01-16 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:14:21] Production.INFO: count ==5679 [2025-01-16 13:14:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:14:05 - End Time 2025-01-16 13:14:05 [2025-01-16 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261193', 'tblTempUsageDetail_20' ) start [2025-01-16 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261193', 'tblTempUsageDetail_20' ) end [2025-01-16 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261193', 'tblTempVendorCDR_20' ) start [2025-01-16 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261193', 'tblTempVendorCDR_20' ) end [2025-01-16 13:14:23] Production.INFO: ProcessCDR(1,14261193,1,1,2) [2025-01-16 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261193', 'tblTempUsageDetail_20' ) start [2025-01-16 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261193', 'tblTempUsageDetail_20' ) end [2025-01-16 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:14:28] Production.INFO: ==6785== Releasing lock... [2025-01-16 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:14:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:15:06 [end_date_ymd] => 2025-01-16 13:15:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 10:15:06' and `end` < '2025-01-16 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-01-16 13:15:21] Production.INFO: count ==5678 [2025-01-16 13:15:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:15:06 - End Time 2025-01-16 13:15:06 [2025-01-16 13:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261198', 'tblTempUsageDetail_20' ) start [2025-01-16 13:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261198', 'tblTempUsageDetail_20' ) end [2025-01-16 13:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261198', 'tblTempVendorCDR_20' ) start [2025-01-16 13:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261198', 'tblTempVendorCDR_20' ) end [2025-01-16 13:15:24] Production.INFO: ProcessCDR(1,14261198,1,1,2) [2025-01-16 13:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261198', 'tblTempUsageDetail_20' ) start [2025-01-16 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261198', 'tblTempUsageDetail_20' ) end [2025-01-16 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:15:28] Production.INFO: ==6859== Releasing lock... [2025-01-16 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:15:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:16:05 [end_date_ymd] => 2025-01-16 13:16:05 [RateCDR] => 1 ) [2025-01-16 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:16:05' and `end` < '2025-01-16 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:16:19] Production.INFO: count ==5688 [2025-01-16 13:16:22] Production.ERROR: pbx CDR StartTime 2025-01-16 10:16:05 - End Time 2025-01-16 13:16:05 [2025-01-16 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261203', 'tblTempUsageDetail_20' ) start [2025-01-16 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261203', 'tblTempUsageDetail_20' ) end [2025-01-16 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261203', 'tblTempVendorCDR_20' ) start [2025-01-16 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261203', 'tblTempVendorCDR_20' ) end [2025-01-16 13:16:22] Production.INFO: ProcessCDR(1,14261203,1,1,2) [2025-01-16 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261203', 'tblTempUsageDetail_20' ) start [2025-01-16 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261203', 'tblTempUsageDetail_20' ) end [2025-01-16 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:16:27] Production.INFO: ==6934== Releasing lock... [2025-01-16 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:16:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:17:05 [end_date_ymd] => 2025-01-16 13:17:05 [RateCDR] => 1 ) [2025-01-16 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:17:05' and `end` < '2025-01-16 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:17:19] Production.INFO: count ==5673 [2025-01-16 13:17:21] Production.ERROR: pbx CDR StartTime 2025-01-16 10:17:05 - End Time 2025-01-16 13:17:05 [2025-01-16 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261208', 'tblTempUsageDetail_20' ) start [2025-01-16 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261208', 'tblTempUsageDetail_20' ) end [2025-01-16 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261208', 'tblTempVendorCDR_20' ) start [2025-01-16 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261208', 'tblTempVendorCDR_20' ) end [2025-01-16 13:17:22] Production.INFO: ProcessCDR(1,14261208,1,1,2) [2025-01-16 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261208', 'tblTempUsageDetail_20' ) start [2025-01-16 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261208', 'tblTempUsageDetail_20' ) end [2025-01-16 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:17:26] Production.INFO: ==7006== Releasing lock... [2025-01-16 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:17:26] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:18:05 [end_date_ymd] => 2025-01-16 13:18:05 [RateCDR] => 1 ) [2025-01-16 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:18:05' and `end` < '2025-01-16 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:18:25] Production.INFO: count ==5667 [2025-01-16 13:18:27] Production.ERROR: pbx CDR StartTime 2025-01-16 10:18:05 - End Time 2025-01-16 13:18:05 [2025-01-16 13:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261213', 'tblTempUsageDetail_20' ) start [2025-01-16 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261213', 'tblTempUsageDetail_20' ) end [2025-01-16 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261213', 'tblTempVendorCDR_20' ) start [2025-01-16 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261213', 'tblTempVendorCDR_20' ) end [2025-01-16 13:18:28] Production.INFO: ProcessCDR(1,14261213,1,1,2) [2025-01-16 13:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261213', 'tblTempUsageDetail_20' ) start [2025-01-16 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261213', 'tblTempUsageDetail_20' ) end [2025-01-16 13:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:18:32] Production.INFO: ==7077== Releasing lock... [2025-01-16 13:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:18:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:19:05 [end_date_ymd] => 2025-01-16 13:19:05 [RateCDR] => 1 ) [2025-01-16 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:19:05' and `end` < '2025-01-16 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:19:20] Production.INFO: count ==5646 [2025-01-16 13:19:22] Production.ERROR: pbx CDR StartTime 2025-01-16 10:19:05 - End Time 2025-01-16 13:19:05 [2025-01-16 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261218', 'tblTempUsageDetail_20' ) start [2025-01-16 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261218', 'tblTempUsageDetail_20' ) end [2025-01-16 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261218', 'tblTempVendorCDR_20' ) start [2025-01-16 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261218', 'tblTempVendorCDR_20' ) end [2025-01-16 13:19:22] Production.INFO: ProcessCDR(1,14261218,1,1,2) [2025-01-16 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261218', 'tblTempUsageDetail_20' ) start [2025-01-16 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261218', 'tblTempUsageDetail_20' ) end [2025-01-16 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:19:27] Production.INFO: ==7164== Releasing lock... [2025-01-16 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:19:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:20:05 [end_date_ymd] => 2025-01-16 13:20:05 [RateCDR] => 1 ) [2025-01-16 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:20:05' and `end` < '2025-01-16 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:20:31] Production.INFO: count ==5618 [2025-01-16 13:20:34] Production.ERROR: pbx CDR StartTime 2025-01-16 10:20:05 - End Time 2025-01-16 13:20:05 [2025-01-16 13:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261224', 'tblTempUsageDetail_20' ) start [2025-01-16 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261224', 'tblTempUsageDetail_20' ) end [2025-01-16 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261224', 'tblTempVendorCDR_20' ) start [2025-01-16 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261224', 'tblTempVendorCDR_20' ) end [2025-01-16 13:20:34] Production.INFO: ProcessCDR(1,14261224,1,1,2) [2025-01-16 13:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261224', 'tblTempUsageDetail_20' ) start [2025-01-16 13:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261224', 'tblTempUsageDetail_20' ) end [2025-01-16 13:20:39] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:20:39] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:20:39] Production.INFO: ==7246== Releasing lock... [2025-01-16 13:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:20:39] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:21:04 [end_date_ymd] => 2025-01-16 13:21:04 [RateCDR] => 1 ) [2025-01-16 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:21:04' and `end` < '2025-01-16 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:21:27] Production.INFO: count ==5618 [2025-01-16 13:21:29] Production.ERROR: pbx CDR StartTime 2025-01-16 10:21:04 - End Time 2025-01-16 13:21:04 [2025-01-16 13:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261226', 'tblTempUsageDetail_20' ) start [2025-01-16 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261226', 'tblTempUsageDetail_20' ) end [2025-01-16 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261226', 'tblTempVendorCDR_20' ) start [2025-01-16 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261226', 'tblTempVendorCDR_20' ) end [2025-01-16 13:21:29] Production.INFO: ProcessCDR(1,14261226,1,1,2) [2025-01-16 13:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261226', 'tblTempUsageDetail_20' ) start [2025-01-16 13:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261226', 'tblTempUsageDetail_20' ) end [2025-01-16 13:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:21:34] Production.INFO: ==7319== Releasing lock... [2025-01-16 13:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:21:34] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:22:05 [end_date_ymd] => 2025-01-16 13:22:05 [RateCDR] => 1 ) [2025-01-16 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:22:05' and `end` < '2025-01-16 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:22:25] Production.INFO: count ==5607 [2025-01-16 13:22:27] Production.ERROR: pbx CDR StartTime 2025-01-16 10:22:05 - End Time 2025-01-16 13:22:05 [2025-01-16 13:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261234', 'tblTempUsageDetail_20' ) start [2025-01-16 13:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261234', 'tblTempUsageDetail_20' ) end [2025-01-16 13:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261234', 'tblTempVendorCDR_20' ) start [2025-01-16 13:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261234', 'tblTempVendorCDR_20' ) end [2025-01-16 13:22:27] Production.INFO: ProcessCDR(1,14261234,1,1,2) [2025-01-16 13:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261234', 'tblTempUsageDetail_20' ) start [2025-01-16 13:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261234', 'tblTempUsageDetail_20' ) end [2025-01-16 13:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:22:32] Production.INFO: ==7390== Releasing lock... [2025-01-16 13:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:22:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:23:05 [end_date_ymd] => 2025-01-16 13:23:05 [RateCDR] => 1 ) [2025-01-16 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:23:05' and `end` < '2025-01-16 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:23:25] Production.INFO: count ==5593 [2025-01-16 13:23:27] Production.ERROR: pbx CDR StartTime 2025-01-16 10:23:05 - End Time 2025-01-16 13:23:05 [2025-01-16 13:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261239', 'tblTempUsageDetail_20' ) start [2025-01-16 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261239', 'tblTempUsageDetail_20' ) end [2025-01-16 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261239', 'tblTempVendorCDR_20' ) start [2025-01-16 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261239', 'tblTempVendorCDR_20' ) end [2025-01-16 13:23:27] Production.INFO: ProcessCDR(1,14261239,1,1,2) [2025-01-16 13:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261239', 'tblTempUsageDetail_20' ) start [2025-01-16 13:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261239', 'tblTempUsageDetail_20' ) end [2025-01-16 13:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:23:32] Production.INFO: ==7464== Releasing lock... [2025-01-16 13:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:23:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:24:05 [end_date_ymd] => 2025-01-16 13:24:05 [RateCDR] => 1 ) [2025-01-16 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:24:05' and `end` < '2025-01-16 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:24:24] Production.INFO: count ==5568 [2025-01-16 13:24:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:24:05 - End Time 2025-01-16 13:24:05 [2025-01-16 13:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261244', 'tblTempUsageDetail_20' ) start [2025-01-16 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261244', 'tblTempUsageDetail_20' ) end [2025-01-16 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261244', 'tblTempVendorCDR_20' ) start [2025-01-16 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261244', 'tblTempVendorCDR_20' ) end [2025-01-16 13:24:27] Production.INFO: ProcessCDR(1,14261244,1,1,2) [2025-01-16 13:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261244', 'tblTempUsageDetail_20' ) start [2025-01-16 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261244', 'tblTempUsageDetail_20' ) end [2025-01-16 13:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:24:32] Production.INFO: ==7535== Releasing lock... [2025-01-16 13:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:24:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:25:04 [end_date_ymd] => 2025-01-16 13:25:04 [RateCDR] => 1 ) [2025-01-16 13:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:25:04' and `end` < '2025-01-16 13:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:25:23] Production.INFO: count ==5599 [2025-01-16 13:25:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:25:04 - End Time 2025-01-16 13:25:04 [2025-01-16 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261249', 'tblTempUsageDetail_20' ) start [2025-01-16 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261249', 'tblTempUsageDetail_20' ) end [2025-01-16 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261249', 'tblTempVendorCDR_20' ) start [2025-01-16 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261249', 'tblTempVendorCDR_20' ) end [2025-01-16 13:25:26] Production.INFO: ProcessCDR(1,14261249,1,1,2) [2025-01-16 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261249', 'tblTempUsageDetail_20' ) start [2025-01-16 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261249', 'tblTempUsageDetail_20' ) end [2025-01-16 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:25:31] Production.INFO: ==7605== Releasing lock... [2025-01-16 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:25:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:26:05 [end_date_ymd] => 2025-01-16 13:26:05 [RateCDR] => 1 ) [2025-01-16 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:26:05' and `end` < '2025-01-16 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:26:23] Production.INFO: count ==5596 [2025-01-16 13:26:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:26:05 - End Time 2025-01-16 13:26:05 [2025-01-16 13:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261254', 'tblTempUsageDetail_20' ) start [2025-01-16 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261254', 'tblTempUsageDetail_20' ) end [2025-01-16 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261254', 'tblTempVendorCDR_20' ) start [2025-01-16 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261254', 'tblTempVendorCDR_20' ) end [2025-01-16 13:26:26] Production.INFO: ProcessCDR(1,14261254,1,1,2) [2025-01-16 13:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261254', 'tblTempUsageDetail_20' ) start [2025-01-16 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261254', 'tblTempUsageDetail_20' ) end [2025-01-16 13:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:26:31] Production.INFO: ==7677== Releasing lock... [2025-01-16 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:26:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:27:04 [end_date_ymd] => 2025-01-16 13:27:04 [RateCDR] => 1 ) [2025-01-16 13:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:27:04' and `end` < '2025-01-16 13:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:27:23] Production.INFO: count ==5576 [2025-01-16 13:27:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:27:04 - End Time 2025-01-16 13:27:04 [2025-01-16 13:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261259', 'tblTempUsageDetail_20' ) start [2025-01-16 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261259', 'tblTempUsageDetail_20' ) end [2025-01-16 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261259', 'tblTempVendorCDR_20' ) start [2025-01-16 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261259', 'tblTempVendorCDR_20' ) end [2025-01-16 13:27:25] Production.INFO: ProcessCDR(1,14261259,1,1,2) [2025-01-16 13:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261259', 'tblTempUsageDetail_20' ) start [2025-01-16 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261259', 'tblTempUsageDetail_20' ) end [2025-01-16 13:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:27:30] Production.INFO: ==7790== Releasing lock... [2025-01-16 13:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:27:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:28:05 [end_date_ymd] => 2025-01-16 13:28:05 [RateCDR] => 1 ) [2025-01-16 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:28:05' and `end` < '2025-01-16 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:28:26] Production.INFO: count ==5573 [2025-01-16 13:28:28] Production.ERROR: pbx CDR StartTime 2025-01-16 10:28:05 - End Time 2025-01-16 13:28:05 [2025-01-16 13:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261264', 'tblTempUsageDetail_20' ) start [2025-01-16 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261264', 'tblTempUsageDetail_20' ) end [2025-01-16 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261264', 'tblTempVendorCDR_20' ) start [2025-01-16 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261264', 'tblTempVendorCDR_20' ) end [2025-01-16 13:28:28] Production.INFO: ProcessCDR(1,14261264,1,1,2) [2025-01-16 13:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261264', 'tblTempUsageDetail_20' ) start [2025-01-16 13:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261264', 'tblTempUsageDetail_20' ) end [2025-01-16 13:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:28:33] Production.INFO: ==7864== Releasing lock... [2025-01-16 13:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:28:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:29:05 [end_date_ymd] => 2025-01-16 13:29:05 [RateCDR] => 1 ) [2025-01-16 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:29:05' and `end` < '2025-01-16 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:29:23] Production.INFO: count ==5558 [2025-01-16 13:29:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:29:05 - End Time 2025-01-16 13:29:05 [2025-01-16 13:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261269', 'tblTempUsageDetail_20' ) start [2025-01-16 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261269', 'tblTempUsageDetail_20' ) end [2025-01-16 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261269', 'tblTempVendorCDR_20' ) start [2025-01-16 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261269', 'tblTempVendorCDR_20' ) end [2025-01-16 13:29:26] Production.INFO: ProcessCDR(1,14261269,1,1,2) [2025-01-16 13:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261269', 'tblTempUsageDetail_20' ) start [2025-01-16 13:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261269', 'tblTempUsageDetail_20' ) end [2025-01-16 13:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:29:31] Production.INFO: ==7937== Releasing lock... [2025-01-16 13:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:29:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:30:05 [end_date_ymd] => 2025-01-16 13:30:05 [RateCDR] => 1 ) [2025-01-16 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:30:05' and `end` < '2025-01-16 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:30:25] Production.INFO: count ==5584 [2025-01-16 13:30:28] Production.ERROR: pbx CDR StartTime 2025-01-16 10:30:05 - End Time 2025-01-16 13:30:05 [2025-01-16 13:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261275', 'tblTempUsageDetail_20' ) start [2025-01-16 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261275', 'tblTempUsageDetail_20' ) end [2025-01-16 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261275', 'tblTempVendorCDR_20' ) start [2025-01-16 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261275', 'tblTempVendorCDR_20' ) end [2025-01-16 13:30:28] Production.INFO: ProcessCDR(1,14261275,1,1,2) [2025-01-16 13:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261275', 'tblTempUsageDetail_20' ) start [2025-01-16 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261275', 'tblTempUsageDetail_20' ) end [2025-01-16 13:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:30:33] Production.INFO: ==8010== Releasing lock... [2025-01-16 13:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:30:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:31:05 [end_date_ymd] => 2025-01-16 13:31:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 10:31:05' and `end` < '2025-01-16 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-01-16 13:31:23] Production.INFO: count ==5613 [2025-01-16 13:31:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:31:05 - End Time 2025-01-16 13:31:05 [2025-01-16 13:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261280', 'tblTempUsageDetail_20' ) start [2025-01-16 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261280', 'tblTempUsageDetail_20' ) end [2025-01-16 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261280', 'tblTempVendorCDR_20' ) start [2025-01-16 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261280', 'tblTempVendorCDR_20' ) end [2025-01-16 13:31:26] Production.INFO: ProcessCDR(1,14261280,1,1,2) [2025-01-16 13:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261280', 'tblTempUsageDetail_20' ) start [2025-01-16 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261280', 'tblTempUsageDetail_20' ) end [2025-01-16 13:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:31:31] Production.INFO: ==8091== Releasing lock... [2025-01-16 13:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:31:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:32:05 [end_date_ymd] => 2025-01-16 13:32:05 [RateCDR] => 1 ) [2025-01-16 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:32:05' and `end` < '2025-01-16 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:32:27] Production.INFO: count ==5603 [2025-01-16 13:32:29] Production.ERROR: pbx CDR StartTime 2025-01-16 10:32:05 - End Time 2025-01-16 13:32:05 [2025-01-16 13:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261285', 'tblTempUsageDetail_20' ) start [2025-01-16 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261285', 'tblTempUsageDetail_20' ) end [2025-01-16 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261285', 'tblTempVendorCDR_20' ) start [2025-01-16 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261285', 'tblTempVendorCDR_20' ) end [2025-01-16 13:32:30] Production.INFO: ProcessCDR(1,14261285,1,1,2) [2025-01-16 13:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261285', 'tblTempUsageDetail_20' ) start [2025-01-16 13:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261285', 'tblTempUsageDetail_20' ) end [2025-01-16 13:32:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:32:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:32:34] Production.INFO: ==8164== Releasing lock... [2025-01-16 13:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:32:34] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:33:05 [end_date_ymd] => 2025-01-16 13:33:05 [RateCDR] => 1 ) [2025-01-16 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:33:05' and `end` < '2025-01-16 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:33:22] Production.INFO: count ==5622 [2025-01-16 13:33:25] Production.ERROR: pbx CDR StartTime 2025-01-16 10:33:05 - End Time 2025-01-16 13:33:05 [2025-01-16 13:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261290', 'tblTempUsageDetail_20' ) start [2025-01-16 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261290', 'tblTempUsageDetail_20' ) end [2025-01-16 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261290', 'tblTempVendorCDR_20' ) start [2025-01-16 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261290', 'tblTempVendorCDR_20' ) end [2025-01-16 13:33:25] Production.INFO: ProcessCDR(1,14261290,1,1,2) [2025-01-16 13:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261290', 'tblTempUsageDetail_20' ) start [2025-01-16 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261290', 'tblTempUsageDetail_20' ) end [2025-01-16 13:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:33:30] Production.INFO: ==8236== Releasing lock... [2025-01-16 13:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:33:30] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:34:04 [end_date_ymd] => 2025-01-16 13:34:04 [RateCDR] => 1 ) [2025-01-16 13:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:34:04' and `end` < '2025-01-16 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:34:21] Production.INFO: count ==5609 [2025-01-16 13:34:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:34:04 - End Time 2025-01-16 13:34:04 [2025-01-16 13:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261295', 'tblTempUsageDetail_20' ) start [2025-01-16 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261295', 'tblTempUsageDetail_20' ) end [2025-01-16 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261295', 'tblTempVendorCDR_20' ) start [2025-01-16 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261295', 'tblTempVendorCDR_20' ) end [2025-01-16 13:34:24] Production.INFO: ProcessCDR(1,14261295,1,1,2) [2025-01-16 13:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261295', 'tblTempUsageDetail_20' ) start [2025-01-16 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261295', 'tblTempUsageDetail_20' ) end [2025-01-16 13:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:34:29] Production.INFO: ==8308== Releasing lock... [2025-01-16 13:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:34:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:35:05 [end_date_ymd] => 2025-01-16 13:35:05 [RateCDR] => 1 ) [2025-01-16 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:35:05' and `end` < '2025-01-16 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:35:21] Production.INFO: count ==5596 [2025-01-16 13:35:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:35:05 - End Time 2025-01-16 13:35:05 [2025-01-16 13:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261300', 'tblTempUsageDetail_20' ) start [2025-01-16 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261300', 'tblTempUsageDetail_20' ) end [2025-01-16 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261300', 'tblTempVendorCDR_20' ) start [2025-01-16 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261300', 'tblTempVendorCDR_20' ) end [2025-01-16 13:35:23] Production.INFO: ProcessCDR(1,14261300,1,1,2) [2025-01-16 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261300', 'tblTempUsageDetail_20' ) start [2025-01-16 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261300', 'tblTempUsageDetail_20' ) end [2025-01-16 13:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:35:28] Production.INFO: ==8380== Releasing lock... [2025-01-16 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:35:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:36:05 [end_date_ymd] => 2025-01-16 13:36:05 [RateCDR] => 1 ) [2025-01-16 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:36:05' and `end` < '2025-01-16 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:36:18] Production.INFO: count ==5579 [2025-01-16 13:36:21] Production.ERROR: pbx CDR StartTime 2025-01-16 10:36:05 - End Time 2025-01-16 13:36:05 [2025-01-16 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261305', 'tblTempUsageDetail_20' ) start [2025-01-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261305', 'tblTempUsageDetail_20' ) end [2025-01-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261305', 'tblTempVendorCDR_20' ) start [2025-01-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261305', 'tblTempVendorCDR_20' ) end [2025-01-16 13:36:21] Production.INFO: ProcessCDR(1,14261305,1,1,2) [2025-01-16 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261305', 'tblTempUsageDetail_20' ) start [2025-01-16 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261305', 'tblTempUsageDetail_20' ) end [2025-01-16 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:36:26] Production.INFO: ==8449== Releasing lock... [2025-01-16 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:36:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:37:05 [end_date_ymd] => 2025-01-16 13:37:05 [RateCDR] => 1 ) [2025-01-16 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:37:05' and `end` < '2025-01-16 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:37:19] Production.INFO: count ==5577 [2025-01-16 13:37:21] Production.ERROR: pbx CDR StartTime 2025-01-16 10:37:05 - End Time 2025-01-16 13:37:05 [2025-01-16 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261310', 'tblTempUsageDetail_20' ) start [2025-01-16 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261310', 'tblTempUsageDetail_20' ) end [2025-01-16 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261310', 'tblTempVendorCDR_20' ) start [2025-01-16 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261310', 'tblTempVendorCDR_20' ) end [2025-01-16 13:37:21] Production.INFO: ProcessCDR(1,14261310,1,1,2) [2025-01-16 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261310', 'tblTempUsageDetail_20' ) start [2025-01-16 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261310', 'tblTempUsageDetail_20' ) end [2025-01-16 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:37:26] Production.INFO: ==8520== Releasing lock... [2025-01-16 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:37:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:38:05 [end_date_ymd] => 2025-01-16 13:38:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 10:38:05' and `end` < '2025-01-16 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-01-16 13:38:26] Production.INFO: count ==5608 [2025-01-16 13:38:29] Production.ERROR: pbx CDR StartTime 2025-01-16 10:38:05 - End Time 2025-01-16 13:38:05 [2025-01-16 13:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261315', 'tblTempUsageDetail_20' ) start [2025-01-16 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261315', 'tblTempUsageDetail_20' ) end [2025-01-16 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261315', 'tblTempVendorCDR_20' ) start [2025-01-16 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261315', 'tblTempVendorCDR_20' ) end [2025-01-16 13:38:29] Production.INFO: ProcessCDR(1,14261315,1,1,2) [2025-01-16 13:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261315', 'tblTempUsageDetail_20' ) start [2025-01-16 13:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261315', 'tblTempUsageDetail_20' ) end [2025-01-16 13:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:38:34] Production.INFO: ==8591== Releasing lock... [2025-01-16 13:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:38:34] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:39:05 [end_date_ymd] => 2025-01-16 13:39:05 [RateCDR] => 1 ) [2025-01-16 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:39:05' and `end` < '2025-01-16 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:39:21] Production.INFO: count ==5613 [2025-01-16 13:39:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:39:05 - End Time 2025-01-16 13:39:05 [2025-01-16 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261320', 'tblTempUsageDetail_20' ) start [2025-01-16 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261320', 'tblTempUsageDetail_20' ) end [2025-01-16 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261320', 'tblTempVendorCDR_20' ) start [2025-01-16 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261320', 'tblTempVendorCDR_20' ) end [2025-01-16 13:39:24] Production.INFO: ProcessCDR(1,14261320,1,1,2) [2025-01-16 13:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261320', 'tblTempUsageDetail_20' ) start [2025-01-16 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261320', 'tblTempUsageDetail_20' ) end [2025-01-16 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:39:28] Production.INFO: ==8667== Releasing lock... [2025-01-16 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:39:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:40:06 [end_date_ymd] => 2025-01-16 13:40:06 [RateCDR] => 1 ) [2025-01-16 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:40:06' and `end` < '2025-01-16 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:40:24] Production.INFO: count ==5640 [2025-01-16 13:40:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:40:06 - End Time 2025-01-16 13:40:06 [2025-01-16 13:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261326', 'tblTempUsageDetail_20' ) start [2025-01-16 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261326', 'tblTempUsageDetail_20' ) end [2025-01-16 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261326', 'tblTempVendorCDR_20' ) start [2025-01-16 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261326', 'tblTempVendorCDR_20' ) end [2025-01-16 13:40:26] Production.INFO: ProcessCDR(1,14261326,1,1,2) [2025-01-16 13:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261326', 'tblTempUsageDetail_20' ) start [2025-01-16 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261326', 'tblTempUsageDetail_20' ) end [2025-01-16 13:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:40:31] Production.INFO: ==8745== Releasing lock... [2025-01-16 13:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:40:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:41:04 [end_date_ymd] => 2025-01-16 13:41:04 [RateCDR] => 1 ) [2025-01-16 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:41:04' and `end` < '2025-01-16 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:41:20] Production.INFO: count ==5586 [2025-01-16 13:41:22] Production.ERROR: pbx CDR StartTime 2025-01-16 10:41:04 - End Time 2025-01-16 13:41:04 [2025-01-16 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261331', 'tblTempUsageDetail_20' ) start [2025-01-16 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261331', 'tblTempUsageDetail_20' ) end [2025-01-16 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261331', 'tblTempVendorCDR_20' ) start [2025-01-16 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261331', 'tblTempVendorCDR_20' ) end [2025-01-16 13:41:22] Production.INFO: ProcessCDR(1,14261331,1,1,2) [2025-01-16 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261331', 'tblTempUsageDetail_20' ) start [2025-01-16 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261331', 'tblTempUsageDetail_20' ) end [2025-01-16 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:41:27] Production.INFO: ==8818== Releasing lock... [2025-01-16 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:41:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:42:05 [end_date_ymd] => 2025-01-16 13:42:05 [RateCDR] => 1 ) [2025-01-16 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:42:05' and `end` < '2025-01-16 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:42:21] Production.INFO: count ==5580 [2025-01-16 13:42:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:42:05 - End Time 2025-01-16 13:42:05 [2025-01-16 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261336', 'tblTempUsageDetail_20' ) start [2025-01-16 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261336', 'tblTempUsageDetail_20' ) end [2025-01-16 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261336', 'tblTempVendorCDR_20' ) start [2025-01-16 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261336', 'tblTempVendorCDR_20' ) end [2025-01-16 13:42:24] Production.INFO: ProcessCDR(1,14261336,1,1,2) [2025-01-16 13:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261336', 'tblTempUsageDetail_20' ) start [2025-01-16 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261336', 'tblTempUsageDetail_20' ) end [2025-01-16 13:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:42:29] Production.INFO: ==8891== Releasing lock... [2025-01-16 13:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:42:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:43:05 [end_date_ymd] => 2025-01-16 13:43:05 [RateCDR] => 1 ) [2025-01-16 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:43:05' and `end` < '2025-01-16 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:43:19] Production.INFO: count ==5566 [2025-01-16 13:43:22] Production.ERROR: pbx CDR StartTime 2025-01-16 10:43:05 - End Time 2025-01-16 13:43:05 [2025-01-16 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261341', 'tblTempUsageDetail_20' ) start [2025-01-16 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261341', 'tblTempUsageDetail_20' ) end [2025-01-16 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261341', 'tblTempVendorCDR_20' ) start [2025-01-16 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261341', 'tblTempVendorCDR_20' ) end [2025-01-16 13:43:22] Production.INFO: ProcessCDR(1,14261341,1,1,2) [2025-01-16 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261341', 'tblTempUsageDetail_20' ) start [2025-01-16 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261341', 'tblTempUsageDetail_20' ) end [2025-01-16 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:43:25] Production.INFO: ==9002== Releasing lock... [2025-01-16 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:43:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:44:04 [end_date_ymd] => 2025-01-16 13:44:04 [RateCDR] => 1 ) [2025-01-16 13:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:44:04' and `end` < '2025-01-16 13:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:44:18] Production.INFO: count ==5567 [2025-01-16 13:44:21] Production.ERROR: pbx CDR StartTime 2025-01-16 10:44:04 - End Time 2025-01-16 13:44:04 [2025-01-16 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261346', 'tblTempUsageDetail_20' ) start [2025-01-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261346', 'tblTempUsageDetail_20' ) end [2025-01-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261346', 'tblTempVendorCDR_20' ) start [2025-01-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261346', 'tblTempVendorCDR_20' ) end [2025-01-16 13:44:21] Production.INFO: ProcessCDR(1,14261346,1,1,2) [2025-01-16 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261346', 'tblTempUsageDetail_20' ) start [2025-01-16 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261346', 'tblTempUsageDetail_20' ) end [2025-01-16 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:44:26] Production.INFO: ==9076== Releasing lock... [2025-01-16 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:44:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:45:05 [end_date_ymd] => 2025-01-16 13:45:05 [RateCDR] => 1 ) [2025-01-16 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:45:05' and `end` < '2025-01-16 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:45:19] Production.INFO: count ==5565 [2025-01-16 13:45:21] Production.ERROR: pbx CDR StartTime 2025-01-16 10:45:05 - End Time 2025-01-16 13:45:05 [2025-01-16 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261351', 'tblTempUsageDetail_20' ) start [2025-01-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261351', 'tblTempUsageDetail_20' ) end [2025-01-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261351', 'tblTempVendorCDR_20' ) start [2025-01-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261351', 'tblTempVendorCDR_20' ) end [2025-01-16 13:45:21] Production.INFO: ProcessCDR(1,14261351,1,1,2) [2025-01-16 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261351', 'tblTempUsageDetail_20' ) start [2025-01-16 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261351', 'tblTempUsageDetail_20' ) end [2025-01-16 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:45:26] Production.INFO: ==9154== Releasing lock... [2025-01-16 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:45:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:46:05 [end_date_ymd] => 2025-01-16 13:46:05 [RateCDR] => 1 ) [2025-01-16 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:46:05' and `end` < '2025-01-16 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:46:21] Production.INFO: count ==5592 [2025-01-16 13:46:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:46:05 - End Time 2025-01-16 13:46:05 [2025-01-16 13:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261356', 'tblTempUsageDetail_20' ) start [2025-01-16 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261356', 'tblTempUsageDetail_20' ) end [2025-01-16 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261356', 'tblTempVendorCDR_20' ) start [2025-01-16 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261356', 'tblTempVendorCDR_20' ) end [2025-01-16 13:46:24] Production.INFO: ProcessCDR(1,14261356,1,1,2) [2025-01-16 13:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261356', 'tblTempUsageDetail_20' ) start [2025-01-16 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261356', 'tblTempUsageDetail_20' ) end [2025-01-16 13:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:46:29] Production.INFO: ==9226== Releasing lock... [2025-01-16 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:46:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:47:04 [end_date_ymd] => 2025-01-16 13:47:04 [RateCDR] => 1 ) [2025-01-16 13:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:47:04' and `end` < '2025-01-16 13:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:47:21] Production.INFO: count ==5600 [2025-01-16 13:47:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:47:04 - End Time 2025-01-16 13:47:04 [2025-01-16 13:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261359', 'tblTempUsageDetail_20' ) start [2025-01-16 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261359', 'tblTempUsageDetail_20' ) end [2025-01-16 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261359', 'tblTempVendorCDR_20' ) start [2025-01-16 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261359', 'tblTempVendorCDR_20' ) end [2025-01-16 13:47:24] Production.INFO: ProcessCDR(1,14261359,1,1,2) [2025-01-16 13:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261359', 'tblTempUsageDetail_20' ) start [2025-01-16 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261359', 'tblTempUsageDetail_20' ) end [2025-01-16 13:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:47:29] Production.INFO: ==9298== Releasing lock... [2025-01-16 13:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:47:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:48:05 [end_date_ymd] => 2025-01-16 13:48:05 [RateCDR] => 1 ) [2025-01-16 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:48:05' and `end` < '2025-01-16 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:48:21] Production.INFO: count ==5622 [2025-01-16 13:48:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:48:05 - End Time 2025-01-16 13:48:05 [2025-01-16 13:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261366', 'tblTempUsageDetail_20' ) start [2025-01-16 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261366', 'tblTempUsageDetail_20' ) end [2025-01-16 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261366', 'tblTempVendorCDR_20' ) start [2025-01-16 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261366', 'tblTempVendorCDR_20' ) end [2025-01-16 13:48:23] Production.INFO: ProcessCDR(1,14261366,1,1,2) [2025-01-16 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261366', 'tblTempUsageDetail_20' ) start [2025-01-16 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261366', 'tblTempUsageDetail_20' ) end [2025-01-16 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:48:28] Production.INFO: ==9372== Releasing lock... [2025-01-16 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:48:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:49:05 [end_date_ymd] => 2025-01-16 13:49:05 [RateCDR] => 1 ) [2025-01-16 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:49:05' and `end` < '2025-01-16 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:49:22] Production.INFO: count ==5632 [2025-01-16 13:49:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:49:05 - End Time 2025-01-16 13:49:05 [2025-01-16 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261371', 'tblTempUsageDetail_20' ) start [2025-01-16 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261371', 'tblTempUsageDetail_20' ) end [2025-01-16 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261371', 'tblTempVendorCDR_20' ) start [2025-01-16 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261371', 'tblTempVendorCDR_20' ) end [2025-01-16 13:49:25] Production.INFO: ProcessCDR(1,14261371,1,1,2) [2025-01-16 13:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261371', 'tblTempUsageDetail_20' ) start [2025-01-16 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261371', 'tblTempUsageDetail_20' ) end [2025-01-16 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:49:30] Production.INFO: ==9448== Releasing lock... [2025-01-16 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:49:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:50:06 [end_date_ymd] => 2025-01-16 13:50:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 10:50:06' and `end` < '2025-01-16 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-01-16 13:50:23] Production.INFO: count ==5630 [2025-01-16 13:50:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:50:06 - End Time 2025-01-16 13:50:06 [2025-01-16 13:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261377', 'tblTempUsageDetail_20' ) start [2025-01-16 13:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261377', 'tblTempUsageDetail_20' ) end [2025-01-16 13:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261377', 'tblTempVendorCDR_20' ) start [2025-01-16 13:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261377', 'tblTempVendorCDR_20' ) end [2025-01-16 13:50:26] Production.INFO: ProcessCDR(1,14261377,1,1,2) [2025-01-16 13:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261377', 'tblTempUsageDetail_20' ) start [2025-01-16 13:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261377', 'tblTempUsageDetail_20' ) end [2025-01-16 13:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:50:31] Production.INFO: ==9524== Releasing lock... [2025-01-16 13:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:50:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:51:05 [end_date_ymd] => 2025-01-16 13:51:05 [RateCDR] => 1 ) [2025-01-16 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:51:05' and `end` < '2025-01-16 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:51:24] Production.INFO: count ==5610 [2025-01-16 13:51:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:51:05 - End Time 2025-01-16 13:51:05 [2025-01-16 13:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261382', 'tblTempUsageDetail_20' ) start [2025-01-16 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261382', 'tblTempUsageDetail_20' ) end [2025-01-16 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261382', 'tblTempVendorCDR_20' ) start [2025-01-16 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261382', 'tblTempVendorCDR_20' ) end [2025-01-16 13:51:26] Production.INFO: ProcessCDR(1,14261382,1,1,2) [2025-01-16 13:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261382', 'tblTempUsageDetail_20' ) start [2025-01-16 13:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261382', 'tblTempUsageDetail_20' ) end [2025-01-16 13:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:51:31] Production.INFO: ==9600== Releasing lock... [2025-01-16 13:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:51:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:52:05 [end_date_ymd] => 2025-01-16 13:52:05 [RateCDR] => 1 ) [2025-01-16 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:52:05' and `end` < '2025-01-16 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:52:27] Production.INFO: count ==5615 [2025-01-16 13:52:29] Production.ERROR: pbx CDR StartTime 2025-01-16 10:52:05 - End Time 2025-01-16 13:52:05 [2025-01-16 13:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261387', 'tblTempUsageDetail_20' ) start [2025-01-16 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261387', 'tblTempUsageDetail_20' ) end [2025-01-16 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261387', 'tblTempVendorCDR_20' ) start [2025-01-16 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261387', 'tblTempVendorCDR_20' ) end [2025-01-16 13:52:29] Production.INFO: ProcessCDR(1,14261387,1,1,2) [2025-01-16 13:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261387', 'tblTempUsageDetail_20' ) start [2025-01-16 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261387', 'tblTempUsageDetail_20' ) end [2025-01-16 13:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:52:34] Production.INFO: ==9673== Releasing lock... [2025-01-16 13:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:52:34] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:53:05 [end_date_ymd] => 2025-01-16 13:53:05 [RateCDR] => 1 ) [2025-01-16 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:53:05' and `end` < '2025-01-16 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:53:30] Production.INFO: count ==5615 [2025-01-16 13:53:32] Production.ERROR: pbx CDR StartTime 2025-01-16 10:53:05 - End Time 2025-01-16 13:53:05 [2025-01-16 13:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261392', 'tblTempUsageDetail_20' ) start [2025-01-16 13:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261392', 'tblTempUsageDetail_20' ) end [2025-01-16 13:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261392', 'tblTempVendorCDR_20' ) start [2025-01-16 13:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261392', 'tblTempVendorCDR_20' ) end [2025-01-16 13:53:33] Production.INFO: ProcessCDR(1,14261392,1,1,2) [2025-01-16 13:53:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:53:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:53:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:53:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261392', 'tblTempUsageDetail_20' ) start [2025-01-16 13:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261392', 'tblTempUsageDetail_20' ) end [2025-01-16 13:53:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:53:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:53:37] Production.INFO: ==9748== Releasing lock... [2025-01-16 13:53:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:53:37] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:54:05 [end_date_ymd] => 2025-01-16 13:54:05 [RateCDR] => 1 ) [2025-01-16 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:54:05' and `end` < '2025-01-16 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:54:25] Production.INFO: count ==5621 [2025-01-16 13:54:27] Production.ERROR: pbx CDR StartTime 2025-01-16 10:54:05 - End Time 2025-01-16 13:54:05 [2025-01-16 13:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261397', 'tblTempUsageDetail_20' ) start [2025-01-16 13:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261397', 'tblTempUsageDetail_20' ) end [2025-01-16 13:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261397', 'tblTempVendorCDR_20' ) start [2025-01-16 13:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261397', 'tblTempVendorCDR_20' ) end [2025-01-16 13:54:27] Production.INFO: ProcessCDR(1,14261397,1,1,2) [2025-01-16 13:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261397', 'tblTempUsageDetail_20' ) start [2025-01-16 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261397', 'tblTempUsageDetail_20' ) end [2025-01-16 13:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:54:32] Production.INFO: ==9818== Releasing lock... [2025-01-16 13:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:54:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:55:05 [end_date_ymd] => 2025-01-16 13:55:05 [RateCDR] => 1 ) [2025-01-16 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:55:05' and `end` < '2025-01-16 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:55:22] Production.INFO: count ==5603 [2025-01-16 13:55:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:55:05 - End Time 2025-01-16 13:55:05 [2025-01-16 13:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261402', 'tblTempUsageDetail_20' ) start [2025-01-16 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261402', 'tblTempUsageDetail_20' ) end [2025-01-16 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261402', 'tblTempVendorCDR_20' ) start [2025-01-16 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261402', 'tblTempVendorCDR_20' ) end [2025-01-16 13:55:25] Production.INFO: ProcessCDR(1,14261402,1,1,2) [2025-01-16 13:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261402', 'tblTempUsageDetail_20' ) start [2025-01-16 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261402', 'tblTempUsageDetail_20' ) end [2025-01-16 13:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:55:30] Production.INFO: ==9890== Releasing lock... [2025-01-16 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:55:30] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:56:05 [end_date_ymd] => 2025-01-16 13:56:05 [RateCDR] => 1 ) [2025-01-16 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:56:05' and `end` < '2025-01-16 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:56:22] Production.INFO: count ==5605 [2025-01-16 13:56:24] Production.ERROR: pbx CDR StartTime 2025-01-16 10:56:05 - End Time 2025-01-16 13:56:05 [2025-01-16 13:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261407', 'tblTempUsageDetail_20' ) start [2025-01-16 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261407', 'tblTempUsageDetail_20' ) end [2025-01-16 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261407', 'tblTempVendorCDR_20' ) start [2025-01-16 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261407', 'tblTempVendorCDR_20' ) end [2025-01-16 13:56:24] Production.INFO: ProcessCDR(1,14261407,1,1,2) [2025-01-16 13:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261407', 'tblTempUsageDetail_20' ) start [2025-01-16 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261407', 'tblTempUsageDetail_20' ) end [2025-01-16 13:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:56:29] Production.INFO: ==9961== Releasing lock... [2025-01-16 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:56:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:57:05 [end_date_ymd] => 2025-01-16 13:57:05 [RateCDR] => 1 ) [2025-01-16 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:57:05' and `end` < '2025-01-16 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:57:21] Production.INFO: count ==5583 [2025-01-16 13:57:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:57:05 - End Time 2025-01-16 13:57:05 [2025-01-16 13:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261412', 'tblTempUsageDetail_20' ) start [2025-01-16 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261412', 'tblTempUsageDetail_20' ) end [2025-01-16 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261412', 'tblTempVendorCDR_20' ) start [2025-01-16 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261412', 'tblTempVendorCDR_20' ) end [2025-01-16 13:57:23] Production.INFO: ProcessCDR(1,14261412,1,1,2) [2025-01-16 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261412', 'tblTempUsageDetail_20' ) start [2025-01-16 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261412', 'tblTempUsageDetail_20' ) end [2025-01-16 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:57:28] Production.INFO: ==10031== Releasing lock... [2025-01-16 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:57:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:58:05 [end_date_ymd] => 2025-01-16 13:58:05 [RateCDR] => 1 ) [2025-01-16 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:58:05' and `end` < '2025-01-16 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:58:23] Production.INFO: count ==5567 [2025-01-16 13:58:26] Production.ERROR: pbx CDR StartTime 2025-01-16 10:58:05 - End Time 2025-01-16 13:58:05 [2025-01-16 13:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261417', 'tblTempUsageDetail_20' ) start [2025-01-16 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261417', 'tblTempUsageDetail_20' ) end [2025-01-16 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261417', 'tblTempVendorCDR_20' ) start [2025-01-16 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261417', 'tblTempVendorCDR_20' ) end [2025-01-16 13:58:26] Production.INFO: ProcessCDR(1,14261417,1,1,2) [2025-01-16 13:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261417', 'tblTempUsageDetail_20' ) start [2025-01-16 13:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261417', 'tblTempUsageDetail_20' ) end [2025-01-16 13:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:58:31] Production.INFO: ==10140== Releasing lock... [2025-01-16 13:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:58:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 10:59:05 [end_date_ymd] => 2025-01-16 13:59:05 [RateCDR] => 1 ) [2025-01-16 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 10:59:05' and `end` < '2025-01-16 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 13:59:20] Production.INFO: count ==5597 [2025-01-16 13:59:23] Production.ERROR: pbx CDR StartTime 2025-01-16 10:59:05 - End Time 2025-01-16 13:59:05 [2025-01-16 13:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261422', 'tblTempUsageDetail_20' ) start [2025-01-16 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261422', 'tblTempUsageDetail_20' ) end [2025-01-16 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261422', 'tblTempVendorCDR_20' ) start [2025-01-16 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261422', 'tblTempVendorCDR_20' ) end [2025-01-16 13:59:23] Production.INFO: ProcessCDR(1,14261422,1,1,2) [2025-01-16 13:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261422', 'tblTempUsageDetail_20' ) start [2025-01-16 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261422', 'tblTempUsageDetail_20' ) end [2025-01-16 13:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 13:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 13:59:28] Production.INFO: ==10215== Releasing lock... [2025-01-16 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 13:59:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:00:05 [end_date_ymd] => 2025-01-16 14:00:05 [RateCDR] => 1 ) [2025-01-16 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:00:05' and `end` < '2025-01-16 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:00:21] Production.INFO: count ==5578 [2025-01-16 14:00:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:00:05 - End Time 2025-01-16 14:00:05 [2025-01-16 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261428', 'tblTempUsageDetail_20' ) start [2025-01-16 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261428', 'tblTempUsageDetail_20' ) end [2025-01-16 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261428', 'tblTempVendorCDR_20' ) start [2025-01-16 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261428', 'tblTempVendorCDR_20' ) end [2025-01-16 14:00:24] Production.INFO: ProcessCDR(1,14261428,1,1,2) [2025-01-16 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261428', 'tblTempUsageDetail_20' ) start [2025-01-16 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261428', 'tblTempUsageDetail_20' ) end [2025-01-16 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:00:29] Production.INFO: ==10295== Releasing lock... [2025-01-16 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:00:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:01:05 [end_date_ymd] => 2025-01-16 14:01:05 [RateCDR] => 1 ) [2025-01-16 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:01:05' and `end` < '2025-01-16 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:01:18] Production.INFO: count ==5571 [2025-01-16 14:01:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:01:05 - End Time 2025-01-16 14:01:05 [2025-01-16 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261433', 'tblTempUsageDetail_20' ) start [2025-01-16 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261433', 'tblTempUsageDetail_20' ) end [2025-01-16 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261433', 'tblTempVendorCDR_20' ) start [2025-01-16 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261433', 'tblTempVendorCDR_20' ) end [2025-01-16 14:01:21] Production.INFO: ProcessCDR(1,14261433,1,1,2) [2025-01-16 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261433', 'tblTempUsageDetail_20' ) start [2025-01-16 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261433', 'tblTempUsageDetail_20' ) end [2025-01-16 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:01:26] Production.INFO: ==10382== Releasing lock... [2025-01-16 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:01:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:02:04 [end_date_ymd] => 2025-01-16 14:02:04 [RateCDR] => 1 ) [2025-01-16 14:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:02:04' and `end` < '2025-01-16 14:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:02:23] Production.INFO: count ==5585 [2025-01-16 14:02:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:02:04 - End Time 2025-01-16 14:02:04 [2025-01-16 14:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261438', 'tblTempUsageDetail_20' ) start [2025-01-16 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261438', 'tblTempUsageDetail_20' ) end [2025-01-16 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261438', 'tblTempVendorCDR_20' ) start [2025-01-16 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261438', 'tblTempVendorCDR_20' ) end [2025-01-16 14:02:25] Production.INFO: ProcessCDR(1,14261438,1,1,2) [2025-01-16 14:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261438', 'tblTempUsageDetail_20' ) start [2025-01-16 14:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261438', 'tblTempUsageDetail_20' ) end [2025-01-16 14:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:02:30] Production.INFO: ==10453== Releasing lock... [2025-01-16 14:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:02:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:03:05 [end_date_ymd] => 2025-01-16 14:03:05 [RateCDR] => 1 ) [2025-01-16 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:03:05' and `end` < '2025-01-16 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:03:23] Production.INFO: count ==5568 [2025-01-16 14:03:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:03:05 - End Time 2025-01-16 14:03:05 [2025-01-16 14:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261443', 'tblTempUsageDetail_20' ) start [2025-01-16 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261443', 'tblTempUsageDetail_20' ) end [2025-01-16 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261443', 'tblTempVendorCDR_20' ) start [2025-01-16 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261443', 'tblTempVendorCDR_20' ) end [2025-01-16 14:03:25] Production.INFO: ProcessCDR(1,14261443,1,1,2) [2025-01-16 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261443', 'tblTempUsageDetail_20' ) start [2025-01-16 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261443', 'tblTempUsageDetail_20' ) end [2025-01-16 14:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:03:30] Production.INFO: ==10523== Releasing lock... [2025-01-16 14:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:03:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:04:05 [end_date_ymd] => 2025-01-16 14:04:05 [RateCDR] => 1 ) [2025-01-16 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:04:05' and `end` < '2025-01-16 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:04:23] Production.INFO: count ==5579 [2025-01-16 14:04:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:04:05 - End Time 2025-01-16 14:04:05 [2025-01-16 14:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261448', 'tblTempUsageDetail_20' ) start [2025-01-16 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261448', 'tblTempUsageDetail_20' ) end [2025-01-16 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261448', 'tblTempVendorCDR_20' ) start [2025-01-16 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261448', 'tblTempVendorCDR_20' ) end [2025-01-16 14:04:26] Production.INFO: ProcessCDR(1,14261448,1,1,2) [2025-01-16 14:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261448', 'tblTempUsageDetail_20' ) start [2025-01-16 14:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261448', 'tblTempUsageDetail_20' ) end [2025-01-16 14:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:04:31] Production.INFO: ==10596== Releasing lock... [2025-01-16 14:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:04:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:05:05 [end_date_ymd] => 2025-01-16 14:05:05 [RateCDR] => 1 ) [2025-01-16 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:05:05' and `end` < '2025-01-16 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:05:20] Production.INFO: count ==5606 [2025-01-16 14:05:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:05:05 - End Time 2025-01-16 14:05:05 [2025-01-16 14:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261453', 'tblTempUsageDetail_20' ) start [2025-01-16 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261453', 'tblTempUsageDetail_20' ) end [2025-01-16 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261453', 'tblTempVendorCDR_20' ) start [2025-01-16 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261453', 'tblTempVendorCDR_20' ) end [2025-01-16 14:05:23] Production.INFO: ProcessCDR(1,14261453,1,1,2) [2025-01-16 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261453', 'tblTempUsageDetail_20' ) start [2025-01-16 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261453', 'tblTempUsageDetail_20' ) end [2025-01-16 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:05:28] Production.INFO: ==10667== Releasing lock... [2025-01-16 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:05:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:06:05 [end_date_ymd] => 2025-01-16 14:06:05 [RateCDR] => 1 ) [2025-01-16 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:06:05' and `end` < '2025-01-16 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:06:21] Production.INFO: count ==5621 [2025-01-16 14:06:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:06:05 - End Time 2025-01-16 14:06:05 [2025-01-16 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261458', 'tblTempUsageDetail_20' ) start [2025-01-16 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261458', 'tblTempUsageDetail_20' ) end [2025-01-16 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261458', 'tblTempVendorCDR_20' ) start [2025-01-16 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261458', 'tblTempVendorCDR_20' ) end [2025-01-16 14:06:23] Production.INFO: ProcessCDR(1,14261458,1,1,2) [2025-01-16 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261458', 'tblTempUsageDetail_20' ) start [2025-01-16 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261458', 'tblTempUsageDetail_20' ) end [2025-01-16 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:06:29] Production.INFO: ==10740== Releasing lock... [2025-01-16 14:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:06:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:07:05 [end_date_ymd] => 2025-01-16 14:07:05 [RateCDR] => 1 ) [2025-01-16 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:07:05' and `end` < '2025-01-16 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:07:21] Production.INFO: count ==5610 [2025-01-16 14:07:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:07:05 - End Time 2025-01-16 14:07:05 [2025-01-16 14:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261463', 'tblTempUsageDetail_20' ) start [2025-01-16 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261463', 'tblTempUsageDetail_20' ) end [2025-01-16 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261463', 'tblTempVendorCDR_20' ) start [2025-01-16 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261463', 'tblTempVendorCDR_20' ) end [2025-01-16 14:07:24] Production.INFO: ProcessCDR(1,14261463,1,1,2) [2025-01-16 14:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261463', 'tblTempUsageDetail_20' ) start [2025-01-16 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261463', 'tblTempUsageDetail_20' ) end [2025-01-16 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:07:29] Production.INFO: ==10810== Releasing lock... [2025-01-16 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:07:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:08:05 [end_date_ymd] => 2025-01-16 14:08:05 [RateCDR] => 1 ) [2025-01-16 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:08:05' and `end` < '2025-01-16 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:08:29] Production.INFO: count ==5623 [2025-01-16 14:08:32] Production.ERROR: pbx CDR StartTime 2025-01-16 11:08:05 - End Time 2025-01-16 14:08:05 [2025-01-16 14:08:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261468', 'tblTempUsageDetail_20' ) start [2025-01-16 14:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261468', 'tblTempUsageDetail_20' ) end [2025-01-16 14:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261468', 'tblTempVendorCDR_20' ) start [2025-01-16 14:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261468', 'tblTempVendorCDR_20' ) end [2025-01-16 14:08:32] Production.INFO: ProcessCDR(1,14261468,1,1,2) [2025-01-16 14:08:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261468', 'tblTempUsageDetail_20' ) start [2025-01-16 14:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261468', 'tblTempUsageDetail_20' ) end [2025-01-16 14:08:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:08:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:08:37] Production.INFO: ==10881== Releasing lock... [2025-01-16 14:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:08:37] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:09:05 [end_date_ymd] => 2025-01-16 14:09:05 [RateCDR] => 1 ) [2025-01-16 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:09:05' and `end` < '2025-01-16 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:09:22] Production.INFO: count ==5629 [2025-01-16 14:09:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:09:05 - End Time 2025-01-16 14:09:05 [2025-01-16 14:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261473', 'tblTempUsageDetail_20' ) start [2025-01-16 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261473', 'tblTempUsageDetail_20' ) end [2025-01-16 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261473', 'tblTempVendorCDR_20' ) start [2025-01-16 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261473', 'tblTempVendorCDR_20' ) end [2025-01-16 14:09:25] Production.INFO: ProcessCDR(1,14261473,1,1,2) [2025-01-16 14:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261473', 'tblTempUsageDetail_20' ) start [2025-01-16 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261473', 'tblTempUsageDetail_20' ) end [2025-01-16 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:09:29] Production.INFO: ==10953== Releasing lock... [2025-01-16 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:09:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:10:05 [end_date_ymd] => 2025-01-16 14:10:05 [RateCDR] => 1 ) [2025-01-16 14:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:10:05' and `end` < '2025-01-16 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:10:25] Production.INFO: count ==5618 [2025-01-16 14:10:27] Production.ERROR: pbx CDR StartTime 2025-01-16 11:10:05 - End Time 2025-01-16 14:10:05 [2025-01-16 14:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261478', 'tblTempUsageDetail_20' ) start [2025-01-16 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261478', 'tblTempUsageDetail_20' ) end [2025-01-16 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261478', 'tblTempVendorCDR_20' ) start [2025-01-16 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261478', 'tblTempVendorCDR_20' ) end [2025-01-16 14:10:27] Production.INFO: ProcessCDR(1,14261478,1,1,2) [2025-01-16 14:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261478', 'tblTempUsageDetail_20' ) start [2025-01-16 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261478', 'tblTempUsageDetail_20' ) end [2025-01-16 14:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:10:32] Production.INFO: ==11025== Releasing lock... [2025-01-16 14:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:10:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:11:05 [end_date_ymd] => 2025-01-16 14:11:05 [RateCDR] => 1 ) [2025-01-16 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:11:05' and `end` < '2025-01-16 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:11:24] Production.INFO: count ==5609 [2025-01-16 14:11:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:11:05 - End Time 2025-01-16 14:11:05 [2025-01-16 14:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261484', 'tblTempUsageDetail_20' ) start [2025-01-16 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261484', 'tblTempUsageDetail_20' ) end [2025-01-16 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261484', 'tblTempVendorCDR_20' ) start [2025-01-16 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261484', 'tblTempVendorCDR_20' ) end [2025-01-16 14:11:26] Production.INFO: ProcessCDR(1,14261484,1,1,2) [2025-01-16 14:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261484', 'tblTempUsageDetail_20' ) start [2025-01-16 14:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261484', 'tblTempUsageDetail_20' ) end [2025-01-16 14:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:11:31] Production.INFO: ==11101== Releasing lock... [2025-01-16 14:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:11:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:12:05 [end_date_ymd] => 2025-01-16 14:12:05 [RateCDR] => 1 ) [2025-01-16 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:12:05' and `end` < '2025-01-16 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:12:23] Production.INFO: count ==5616 [2025-01-16 14:12:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:12:05 - End Time 2025-01-16 14:12:05 [2025-01-16 14:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261489', 'tblTempUsageDetail_20' ) start [2025-01-16 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261489', 'tblTempUsageDetail_20' ) end [2025-01-16 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261489', 'tblTempVendorCDR_20' ) start [2025-01-16 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261489', 'tblTempVendorCDR_20' ) end [2025-01-16 14:12:26] Production.INFO: ProcessCDR(1,14261489,1,1,2) [2025-01-16 14:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261489', 'tblTempUsageDetail_20' ) start [2025-01-16 14:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261489', 'tblTempUsageDetail_20' ) end [2025-01-16 14:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:12:31] Production.INFO: ==11170== Releasing lock... [2025-01-16 14:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:12:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:13:05 [end_date_ymd] => 2025-01-16 14:13:05 [RateCDR] => 1 ) [2025-01-16 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:13:05' and `end` < '2025-01-16 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:13:24] Production.INFO: count ==5614 [2025-01-16 14:13:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:13:05 - End Time 2025-01-16 14:13:05 [2025-01-16 14:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261494', 'tblTempUsageDetail_20' ) start [2025-01-16 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261494', 'tblTempUsageDetail_20' ) end [2025-01-16 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261494', 'tblTempVendorCDR_20' ) start [2025-01-16 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261494', 'tblTempVendorCDR_20' ) end [2025-01-16 14:13:27] Production.INFO: ProcessCDR(1,14261494,1,1,2) [2025-01-16 14:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261494', 'tblTempUsageDetail_20' ) start [2025-01-16 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261494', 'tblTempUsageDetail_20' ) end [2025-01-16 14:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:13:32] Production.INFO: ==11247== Releasing lock... [2025-01-16 14:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:13:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:14:05 [end_date_ymd] => 2025-01-16 14:14:05 [RateCDR] => 1 ) [2025-01-16 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:14:05' and `end` < '2025-01-16 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:14:20] Production.INFO: count ==5608 [2025-01-16 14:14:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:14:05 - End Time 2025-01-16 14:14:05 [2025-01-16 14:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261499', 'tblTempUsageDetail_20' ) start [2025-01-16 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261499', 'tblTempUsageDetail_20' ) end [2025-01-16 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261499', 'tblTempVendorCDR_20' ) start [2025-01-16 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261499', 'tblTempVendorCDR_20' ) end [2025-01-16 14:14:23] Production.INFO: ProcessCDR(1,14261499,1,1,2) [2025-01-16 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261499', 'tblTempUsageDetail_20' ) start [2025-01-16 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261499', 'tblTempUsageDetail_20' ) end [2025-01-16 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:14:28] Production.INFO: ==11357== Releasing lock... [2025-01-16 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:14:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:15:05 [end_date_ymd] => 2025-01-16 14:15:05 [RateCDR] => 1 ) [2025-01-16 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:15:05' and `end` < '2025-01-16 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:15:18] Production.INFO: count ==5606 [2025-01-16 14:15:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:15:05 - End Time 2025-01-16 14:15:05 [2025-01-16 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261504', 'tblTempUsageDetail_20' ) start [2025-01-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261504', 'tblTempUsageDetail_20' ) end [2025-01-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261504', 'tblTempVendorCDR_20' ) start [2025-01-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261504', 'tblTempVendorCDR_20' ) end [2025-01-16 14:15:21] Production.INFO: ProcessCDR(1,14261504,1,1,2) [2025-01-16 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261504', 'tblTempUsageDetail_20' ) start [2025-01-16 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261504', 'tblTempUsageDetail_20' ) end [2025-01-16 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:15:27] Production.INFO: ==11428== Releasing lock... [2025-01-16 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:15:27] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:16:04 [end_date_ymd] => 2025-01-16 14:16:04 [RateCDR] => 1 ) [2025-01-16 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:16:04' and `end` < '2025-01-16 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:16:24] Production.INFO: count ==5607 [2025-01-16 14:16:27] Production.ERROR: pbx CDR StartTime 2025-01-16 11:16:04 - End Time 2025-01-16 14:16:04 [2025-01-16 14:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261509', 'tblTempUsageDetail_20' ) start [2025-01-16 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261509', 'tblTempUsageDetail_20' ) end [2025-01-16 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261509', 'tblTempVendorCDR_20' ) start [2025-01-16 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261509', 'tblTempVendorCDR_20' ) end [2025-01-16 14:16:27] Production.INFO: ProcessCDR(1,14261509,1,1,2) [2025-01-16 14:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261509', 'tblTempUsageDetail_20' ) start [2025-01-16 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261509', 'tblTempUsageDetail_20' ) end [2025-01-16 14:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:16:32] Production.INFO: ==11501== Releasing lock... [2025-01-16 14:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:16:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:17:05 [end_date_ymd] => 2025-01-16 14:17:05 [RateCDR] => 1 ) [2025-01-16 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:17:05' and `end` < '2025-01-16 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:17:23] Production.INFO: count ==5611 [2025-01-16 14:17:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:17:05 - End Time 2025-01-16 14:17:05 [2025-01-16 14:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261514', 'tblTempUsageDetail_20' ) start [2025-01-16 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261514', 'tblTempUsageDetail_20' ) end [2025-01-16 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261514', 'tblTempVendorCDR_20' ) start [2025-01-16 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261514', 'tblTempVendorCDR_20' ) end [2025-01-16 14:17:25] Production.INFO: ProcessCDR(1,14261514,1,1,2) [2025-01-16 14:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261514', 'tblTempUsageDetail_20' ) start [2025-01-16 14:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261514', 'tblTempUsageDetail_20' ) end [2025-01-16 14:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:17:31] Production.INFO: ==11573== Releasing lock... [2025-01-16 14:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:17:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:18:05 [end_date_ymd] => 2025-01-16 14:18:05 [RateCDR] => 1 ) [2025-01-16 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:18:05' and `end` < '2025-01-16 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:18:23] Production.INFO: count ==5592 [2025-01-16 14:18:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:18:05 - End Time 2025-01-16 14:18:05 [2025-01-16 14:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261519', 'tblTempUsageDetail_20' ) start [2025-01-16 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261519', 'tblTempUsageDetail_20' ) end [2025-01-16 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261519', 'tblTempVendorCDR_20' ) start [2025-01-16 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261519', 'tblTempVendorCDR_20' ) end [2025-01-16 14:18:26] Production.INFO: ProcessCDR(1,14261519,1,1,2) [2025-01-16 14:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261519', 'tblTempUsageDetail_20' ) start [2025-01-16 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261519', 'tblTempUsageDetail_20' ) end [2025-01-16 14:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:18:31] Production.INFO: ==11643== Releasing lock... [2025-01-16 14:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:18:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:19:06 [end_date_ymd] => 2025-01-16 14:19:06 [RateCDR] => 1 ) [2025-01-16 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:19:06' and `end` < '2025-01-16 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:19:23] Production.INFO: count ==5595 [2025-01-16 14:19:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:19:06 - End Time 2025-01-16 14:19:06 [2025-01-16 14:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261524', 'tblTempUsageDetail_20' ) start [2025-01-16 14:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261524', 'tblTempUsageDetail_20' ) end [2025-01-16 14:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261524', 'tblTempVendorCDR_20' ) start [2025-01-16 14:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261524', 'tblTempVendorCDR_20' ) end [2025-01-16 14:19:26] Production.INFO: ProcessCDR(1,14261524,1,1,2) [2025-01-16 14:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261524', 'tblTempUsageDetail_20' ) start [2025-01-16 14:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261524', 'tblTempUsageDetail_20' ) end [2025-01-16 14:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:19:32] Production.INFO: ==11715== Releasing lock... [2025-01-16 14:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:19:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:20:06 [end_date_ymd] => 2025-01-16 14:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 11:20:06' and `end` < '2025-01-16 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-01-16 14:20:30] Production.INFO: count ==5607 [2025-01-16 14:20:33] Production.ERROR: pbx CDR StartTime 2025-01-16 11:20:06 - End Time 2025-01-16 14:20:06 [2025-01-16 14:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261529', 'tblTempUsageDetail_20' ) start [2025-01-16 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261529', 'tblTempUsageDetail_20' ) end [2025-01-16 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261529', 'tblTempVendorCDR_20' ) start [2025-01-16 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261529', 'tblTempVendorCDR_20' ) end [2025-01-16 14:20:33] Production.INFO: ProcessCDR(1,14261529,1,1,2) [2025-01-16 14:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261529', 'tblTempUsageDetail_20' ) start [2025-01-16 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261529', 'tblTempUsageDetail_20' ) end [2025-01-16 14:20:38] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:20:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:20:38] Production.INFO: ==11789== Releasing lock... [2025-01-16 14:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:20:38] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:21:04 [end_date_ymd] => 2025-01-16 14:21:04 [RateCDR] => 1 ) [2025-01-16 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:21:04' and `end` < '2025-01-16 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:21:20] Production.INFO: count ==5556 [2025-01-16 14:21:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:21:04 - End Time 2025-01-16 14:21:04 [2025-01-16 14:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261535', 'tblTempUsageDetail_20' ) start [2025-01-16 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261535', 'tblTempUsageDetail_20' ) end [2025-01-16 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261535', 'tblTempVendorCDR_20' ) start [2025-01-16 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261535', 'tblTempVendorCDR_20' ) end [2025-01-16 14:21:23] Production.INFO: ProcessCDR(1,14261535,1,1,2) [2025-01-16 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261535', 'tblTempUsageDetail_20' ) start [2025-01-16 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261535', 'tblTempUsageDetail_20' ) end [2025-01-16 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:21:28] Production.INFO: ==11861== Releasing lock... [2025-01-16 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:21:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:22:06 [end_date_ymd] => 2025-01-16 14:22:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 11:22:06' and `end` < '2025-01-16 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-01-16 14:22:20] Production.INFO: count ==5569 [2025-01-16 14:22:22] Production.ERROR: pbx CDR StartTime 2025-01-16 11:22:06 - End Time 2025-01-16 14:22:06 [2025-01-16 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261540', 'tblTempUsageDetail_20' ) start [2025-01-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261540', 'tblTempUsageDetail_20' ) end [2025-01-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261540', 'tblTempVendorCDR_20' ) start [2025-01-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261540', 'tblTempVendorCDR_20' ) end [2025-01-16 14:22:22] Production.INFO: ProcessCDR(1,14261540,1,1,2) [2025-01-16 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261540', 'tblTempUsageDetail_20' ) start [2025-01-16 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261540', 'tblTempUsageDetail_20' ) end [2025-01-16 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:22:27] Production.INFO: ==11934== Releasing lock... [2025-01-16 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:22:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:23:05 [end_date_ymd] => 2025-01-16 14:23:05 [RateCDR] => 1 ) [2025-01-16 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:23:05' and `end` < '2025-01-16 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:23:21] Production.INFO: count ==5588 [2025-01-16 14:23:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:23:05 - End Time 2025-01-16 14:23:05 [2025-01-16 14:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261545', 'tblTempUsageDetail_20' ) start [2025-01-16 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261545', 'tblTempUsageDetail_20' ) end [2025-01-16 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261545', 'tblTempVendorCDR_20' ) start [2025-01-16 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261545', 'tblTempVendorCDR_20' ) end [2025-01-16 14:23:23] Production.INFO: ProcessCDR(1,14261545,1,1,2) [2025-01-16 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261545', 'tblTempUsageDetail_20' ) start [2025-01-16 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261545', 'tblTempUsageDetail_20' ) end [2025-01-16 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:23:28] Production.INFO: ==12004== Releasing lock... [2025-01-16 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:23:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:24:05 [end_date_ymd] => 2025-01-16 14:24:05 [RateCDR] => 1 ) [2025-01-16 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:24:05' and `end` < '2025-01-16 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:24:20] Production.INFO: count ==5598 [2025-01-16 14:24:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:24:05 - End Time 2025-01-16 14:24:05 [2025-01-16 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261550', 'tblTempUsageDetail_20' ) start [2025-01-16 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261550', 'tblTempUsageDetail_20' ) end [2025-01-16 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261550', 'tblTempVendorCDR_20' ) start [2025-01-16 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261550', 'tblTempVendorCDR_20' ) end [2025-01-16 14:24:23] Production.INFO: ProcessCDR(1,14261550,1,1,2) [2025-01-16 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261550', 'tblTempUsageDetail_20' ) start [2025-01-16 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261550', 'tblTempUsageDetail_20' ) end [2025-01-16 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:24:28] Production.INFO: ==12077== Releasing lock... [2025-01-16 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:24:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:25:04 [end_date_ymd] => 2025-01-16 14:25:04 [RateCDR] => 1 ) [2025-01-16 14:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:25:04' and `end` < '2025-01-16 14:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:25:18] Production.INFO: count ==5562 [2025-01-16 14:25:20] Production.ERROR: pbx CDR StartTime 2025-01-16 11:25:04 - End Time 2025-01-16 14:25:04 [2025-01-16 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261555', 'tblTempUsageDetail_20' ) start [2025-01-16 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261555', 'tblTempUsageDetail_20' ) end [2025-01-16 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261555', 'tblTempVendorCDR_20' ) start [2025-01-16 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261555', 'tblTempVendorCDR_20' ) end [2025-01-16 14:25:20] Production.INFO: ProcessCDR(1,14261555,1,1,2) [2025-01-16 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261555', 'tblTempUsageDetail_20' ) start [2025-01-16 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261555', 'tblTempUsageDetail_20' ) end [2025-01-16 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:25:25] Production.INFO: ==12169== Releasing lock... [2025-01-16 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:25:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:26:05 [end_date_ymd] => 2025-01-16 14:26:05 [RateCDR] => 1 ) [2025-01-16 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:26:05' and `end` < '2025-01-16 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:26:26] Production.INFO: count ==5559 [2025-01-16 14:26:28] Production.ERROR: pbx CDR StartTime 2025-01-16 11:26:05 - End Time 2025-01-16 14:26:05 [2025-01-16 14:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261560', 'tblTempUsageDetail_20' ) start [2025-01-16 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261560', 'tblTempUsageDetail_20' ) end [2025-01-16 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261560', 'tblTempVendorCDR_20' ) start [2025-01-16 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261560', 'tblTempVendorCDR_20' ) end [2025-01-16 14:26:28] Production.INFO: ProcessCDR(1,14261560,1,1,2) [2025-01-16 14:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261560', 'tblTempUsageDetail_20' ) start [2025-01-16 14:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261560', 'tblTempUsageDetail_20' ) end [2025-01-16 14:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:26:33] Production.INFO: ==12269== Releasing lock... [2025-01-16 14:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:26:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:27:05 [end_date_ymd] => 2025-01-16 14:27:05 [RateCDR] => 1 ) [2025-01-16 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:27:05' and `end` < '2025-01-16 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:27:21] Production.INFO: count ==5544 [2025-01-16 14:27:24] Production.ERROR: pbx CDR StartTime 2025-01-16 11:27:05 - End Time 2025-01-16 14:27:05 [2025-01-16 14:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261565', 'tblTempUsageDetail_20' ) start [2025-01-16 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261565', 'tblTempUsageDetail_20' ) end [2025-01-16 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261565', 'tblTempVendorCDR_20' ) start [2025-01-16 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261565', 'tblTempVendorCDR_20' ) end [2025-01-16 14:27:24] Production.INFO: ProcessCDR(1,14261565,1,1,2) [2025-01-16 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261565', 'tblTempUsageDetail_20' ) start [2025-01-16 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261565', 'tblTempUsageDetail_20' ) end [2025-01-16 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:27:27] Production.INFO: ==12373== Releasing lock... [2025-01-16 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:27:27] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:28:05 [end_date_ymd] => 2025-01-16 14:28:05 [RateCDR] => 1 ) [2025-01-16 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:28:05' and `end` < '2025-01-16 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:28:18] Production.INFO: count ==5524 [2025-01-16 14:28:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:28:05 - End Time 2025-01-16 14:28:05 [2025-01-16 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261570', 'tblTempUsageDetail_20' ) start [2025-01-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261570', 'tblTempUsageDetail_20' ) end [2025-01-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261570', 'tblTempVendorCDR_20' ) start [2025-01-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261570', 'tblTempVendorCDR_20' ) end [2025-01-16 14:28:21] Production.INFO: ProcessCDR(1,14261570,1,1,2) [2025-01-16 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261570', 'tblTempUsageDetail_20' ) start [2025-01-16 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261570', 'tblTempUsageDetail_20' ) end [2025-01-16 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:28:26] Production.INFO: ==12471== Releasing lock... [2025-01-16 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:28:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-16 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:29:05 [end_date_ymd] => 2025-01-16 14:29:05 [RateCDR] => 1 ) [2025-01-16 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:29:05' and `end` < '2025-01-16 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:29:19] Production.INFO: count ==5515 [2025-01-16 14:29:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:29:05 - End Time 2025-01-16 14:29:05 [2025-01-16 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261575', 'tblTempUsageDetail_20' ) start [2025-01-16 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261575', 'tblTempUsageDetail_20' ) end [2025-01-16 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261575', 'tblTempVendorCDR_20' ) start [2025-01-16 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261575', 'tblTempVendorCDR_20' ) end [2025-01-16 14:29:22] Production.INFO: ProcessCDR(1,14261575,1,1,2) [2025-01-16 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261575', 'tblTempUsageDetail_20' ) start [2025-01-16 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261575', 'tblTempUsageDetail_20' ) end [2025-01-16 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:29:26] Production.INFO: ==12573== Releasing lock... [2025-01-16 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:29:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-16 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:30:05 [end_date_ymd] => 2025-01-16 14:30:05 [RateCDR] => 1 ) [2025-01-16 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:30:05' and `end` < '2025-01-16 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:30:27] Production.INFO: count ==5533 [2025-01-16 14:30:30] Production.ERROR: pbx CDR StartTime 2025-01-16 11:30:05 - End Time 2025-01-16 14:30:05 [2025-01-16 14:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261581', 'tblTempUsageDetail_20' ) start [2025-01-16 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261581', 'tblTempUsageDetail_20' ) end [2025-01-16 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261581', 'tblTempVendorCDR_20' ) start [2025-01-16 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261581', 'tblTempVendorCDR_20' ) end [2025-01-16 14:30:30] Production.INFO: ProcessCDR(1,14261581,1,1,2) [2025-01-16 14:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261581', 'tblTempUsageDetail_20' ) start [2025-01-16 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261581', 'tblTempUsageDetail_20' ) end [2025-01-16 14:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:30:35] Production.INFO: ==12718== Releasing lock... [2025-01-16 14:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:30:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:31:05 [end_date_ymd] => 2025-01-16 14:31:05 [RateCDR] => 1 ) [2025-01-16 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:31:05' and `end` < '2025-01-16 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:31:36] Production.INFO: count ==5547 [2025-01-16 14:31:39] Production.ERROR: pbx CDR StartTime 2025-01-16 11:31:05 - End Time 2025-01-16 14:31:05 [2025-01-16 14:31:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261586', 'tblTempUsageDetail_20' ) start [2025-01-16 14:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261586', 'tblTempUsageDetail_20' ) end [2025-01-16 14:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261586', 'tblTempVendorCDR_20' ) start [2025-01-16 14:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261586', 'tblTempVendorCDR_20' ) end [2025-01-16 14:31:39] Production.INFO: ProcessCDR(1,14261586,1,1,2) [2025-01-16 14:31:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:31:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:31:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:31:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261586', 'tblTempUsageDetail_20' ) start [2025-01-16 14:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261586', 'tblTempUsageDetail_20' ) end [2025-01-16 14:31:44] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:31:44] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:31:44] Production.INFO: ==12821== Releasing lock... [2025-01-16 14:31:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:31:44] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:32:04 [end_date_ymd] => 2025-01-16 14:32:04 [RateCDR] => 1 ) [2025-01-16 14:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:32:04' and `end` < '2025-01-16 14:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:32:25] Production.INFO: count ==5542 [2025-01-16 14:32:27] Production.ERROR: pbx CDR StartTime 2025-01-16 11:32:04 - End Time 2025-01-16 14:32:04 [2025-01-16 14:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261591', 'tblTempUsageDetail_20' ) start [2025-01-16 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261591', 'tblTempUsageDetail_20' ) end [2025-01-16 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261591', 'tblTempVendorCDR_20' ) start [2025-01-16 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261591', 'tblTempVendorCDR_20' ) end [2025-01-16 14:32:28] Production.INFO: ProcessCDR(1,14261591,1,1,2) [2025-01-16 14:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261591', 'tblTempUsageDetail_20' ) start [2025-01-16 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261591', 'tblTempUsageDetail_20' ) end [2025-01-16 14:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:32:33] Production.INFO: ==12918== Releasing lock... [2025-01-16 14:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:32:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:33:05 [end_date_ymd] => 2025-01-16 14:33:05 [RateCDR] => 1 ) [2025-01-16 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:33:05' and `end` < '2025-01-16 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:33:25] Production.INFO: count ==5531 [2025-01-16 14:33:28] Production.ERROR: pbx CDR StartTime 2025-01-16 11:33:05 - End Time 2025-01-16 14:33:05 [2025-01-16 14:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261596', 'tblTempUsageDetail_20' ) start [2025-01-16 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261596', 'tblTempUsageDetail_20' ) end [2025-01-16 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261596', 'tblTempVendorCDR_20' ) start [2025-01-16 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261596', 'tblTempVendorCDR_20' ) end [2025-01-16 14:33:28] Production.INFO: ProcessCDR(1,14261596,1,1,2) [2025-01-16 14:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261596', 'tblTempUsageDetail_20' ) start [2025-01-16 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261596', 'tblTempUsageDetail_20' ) end [2025-01-16 14:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:33:33] Production.INFO: ==13018== Releasing lock... [2025-01-16 14:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:33:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:34:04 [end_date_ymd] => 2025-01-16 14:34:04 [RateCDR] => 1 ) [2025-01-16 14:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:34:04' and `end` < '2025-01-16 14:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:34:20] Production.INFO: count ==5543 [2025-01-16 14:34:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:34:04 - End Time 2025-01-16 14:34:04 [2025-01-16 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261601', 'tblTempUsageDetail_20' ) start [2025-01-16 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261601', 'tblTempUsageDetail_20' ) end [2025-01-16 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261601', 'tblTempVendorCDR_20' ) start [2025-01-16 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261601', 'tblTempVendorCDR_20' ) end [2025-01-16 14:34:23] Production.INFO: ProcessCDR(1,14261601,1,1,2) [2025-01-16 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261601', 'tblTempUsageDetail_20' ) start [2025-01-16 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261601', 'tblTempUsageDetail_20' ) end [2025-01-16 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:34:28] Production.INFO: ==13117== Releasing lock... [2025-01-16 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:34:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:35:05 [end_date_ymd] => 2025-01-16 14:35:05 [RateCDR] => 1 ) [2025-01-16 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:35:05' and `end` < '2025-01-16 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:35:24] Production.INFO: count ==5583 [2025-01-16 14:35:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:35:05 - End Time 2025-01-16 14:35:05 [2025-01-16 14:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261606', 'tblTempUsageDetail_20' ) start [2025-01-16 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261606', 'tblTempUsageDetail_20' ) end [2025-01-16 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261606', 'tblTempVendorCDR_20' ) start [2025-01-16 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261606', 'tblTempVendorCDR_20' ) end [2025-01-16 14:35:27] Production.INFO: ProcessCDR(1,14261606,1,1,2) [2025-01-16 14:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261606', 'tblTempUsageDetail_20' ) start [2025-01-16 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261606', 'tblTempUsageDetail_20' ) end [2025-01-16 14:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:35:32] Production.INFO: ==13228== Releasing lock... [2025-01-16 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:35:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:36:06 [end_date_ymd] => 2025-01-16 14:36:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 11:36:06' and `end` < '2025-01-16 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-01-16 14:36:24] Production.INFO: count ==5575 [2025-01-16 14:36:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:36:06 - End Time 2025-01-16 14:36:06 [2025-01-16 14:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261611', 'tblTempUsageDetail_20' ) start [2025-01-16 14:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261611', 'tblTempUsageDetail_20' ) end [2025-01-16 14:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261611', 'tblTempVendorCDR_20' ) start [2025-01-16 14:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261611', 'tblTempVendorCDR_20' ) end [2025-01-16 14:36:26] Production.INFO: ProcessCDR(1,14261611,1,1,2) [2025-01-16 14:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261611', 'tblTempUsageDetail_20' ) start [2025-01-16 14:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261611', 'tblTempUsageDetail_20' ) end [2025-01-16 14:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:36:31] Production.INFO: ==13330== Releasing lock... [2025-01-16 14:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:36:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:37:05 [end_date_ymd] => 2025-01-16 14:37:05 [RateCDR] => 1 ) [2025-01-16 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:37:05' and `end` < '2025-01-16 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:37:18] Production.INFO: count ==5574 [2025-01-16 14:37:20] Production.ERROR: pbx CDR StartTime 2025-01-16 11:37:05 - End Time 2025-01-16 14:37:05 [2025-01-16 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261616', 'tblTempUsageDetail_20' ) start [2025-01-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261616', 'tblTempUsageDetail_20' ) end [2025-01-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261616', 'tblTempVendorCDR_20' ) start [2025-01-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261616', 'tblTempVendorCDR_20' ) end [2025-01-16 14:37:21] Production.INFO: ProcessCDR(1,14261616,1,1,2) [2025-01-16 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261616', 'tblTempUsageDetail_20' ) start [2025-01-16 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261616', 'tblTempUsageDetail_20' ) end [2025-01-16 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:37:25] Production.INFO: ==13428== Releasing lock... [2025-01-16 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:37:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:38:05 [end_date_ymd] => 2025-01-16 14:38:05 [RateCDR] => 1 ) [2025-01-16 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:38:05' and `end` < '2025-01-16 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:38:20] Production.INFO: count ==5579 [2025-01-16 14:38:22] Production.ERROR: pbx CDR StartTime 2025-01-16 11:38:05 - End Time 2025-01-16 14:38:05 [2025-01-16 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261621', 'tblTempUsageDetail_20' ) start [2025-01-16 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261621', 'tblTempUsageDetail_20' ) end [2025-01-16 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261621', 'tblTempVendorCDR_20' ) start [2025-01-16 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261621', 'tblTempVendorCDR_20' ) end [2025-01-16 14:38:23] Production.INFO: ProcessCDR(1,14261621,1,1,2) [2025-01-16 14:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261621', 'tblTempUsageDetail_20' ) start [2025-01-16 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261621', 'tblTempUsageDetail_20' ) end [2025-01-16 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:38:27] Production.INFO: ==13526== Releasing lock... [2025-01-16 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:38:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:39:04 [end_date_ymd] => 2025-01-16 14:39:04 [RateCDR] => 1 ) [2025-01-16 14:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:39:04' and `end` < '2025-01-16 14:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:39:18] Production.INFO: count ==5584 [2025-01-16 14:39:20] Production.ERROR: pbx CDR StartTime 2025-01-16 11:39:04 - End Time 2025-01-16 14:39:04 [2025-01-16 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261626', 'tblTempUsageDetail_20' ) start [2025-01-16 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261626', 'tblTempUsageDetail_20' ) end [2025-01-16 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261626', 'tblTempVendorCDR_20' ) start [2025-01-16 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261626', 'tblTempVendorCDR_20' ) end [2025-01-16 14:39:21] Production.INFO: ProcessCDR(1,14261626,1,1,2) [2025-01-16 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261626', 'tblTempUsageDetail_20' ) start [2025-01-16 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261626', 'tblTempUsageDetail_20' ) end [2025-01-16 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:39:25] Production.INFO: ==13621== Releasing lock... [2025-01-16 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:39:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:40:06 [end_date_ymd] => 2025-01-16 14:40:06 [RateCDR] => 1 ) [2025-01-16 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:40:06' and `end` < '2025-01-16 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:40:35] Production.INFO: count ==5594 [2025-01-16 14:40:37] Production.ERROR: pbx CDR StartTime 2025-01-16 11:40:06 - End Time 2025-01-16 14:40:06 [2025-01-16 14:40:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261632', 'tblTempUsageDetail_20' ) start [2025-01-16 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261632', 'tblTempUsageDetail_20' ) end [2025-01-16 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261632', 'tblTempVendorCDR_20' ) start [2025-01-16 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261632', 'tblTempVendorCDR_20' ) end [2025-01-16 14:40:38] Production.INFO: ProcessCDR(1,14261632,1,1,2) [2025-01-16 14:40:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:40:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:40:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:40:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261632', 'tblTempUsageDetail_20' ) start [2025-01-16 14:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261632', 'tblTempUsageDetail_20' ) end [2025-01-16 14:40:42] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:40:42] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:40:42] Production.INFO: ==13723== Releasing lock... [2025-01-16 14:40:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:40:42] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:41:04 [end_date_ymd] => 2025-01-16 14:41:04 [RateCDR] => 1 ) [2025-01-16 14:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:41:04' and `end` < '2025-01-16 14:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:41:24] Production.INFO: count ==5640 [2025-01-16 14:41:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:41:04 - End Time 2025-01-16 14:41:04 [2025-01-16 14:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261637', 'tblTempUsageDetail_20' ) start [2025-01-16 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261637', 'tblTempUsageDetail_20' ) end [2025-01-16 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261637', 'tblTempVendorCDR_20' ) start [2025-01-16 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261637', 'tblTempVendorCDR_20' ) end [2025-01-16 14:41:26] Production.INFO: ProcessCDR(1,14261637,1,1,2) [2025-01-16 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261637', 'tblTempUsageDetail_20' ) start [2025-01-16 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261637', 'tblTempUsageDetail_20' ) end [2025-01-16 14:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:41:31] Production.INFO: ==13829== Releasing lock... [2025-01-16 14:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:41:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:42:05 [end_date_ymd] => 2025-01-16 14:42:05 [RateCDR] => 1 ) [2025-01-16 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:42:05' and `end` < '2025-01-16 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:42:24] Production.INFO: count ==5637 [2025-01-16 14:42:27] Production.ERROR: pbx CDR StartTime 2025-01-16 11:42:05 - End Time 2025-01-16 14:42:05 [2025-01-16 14:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261642', 'tblTempUsageDetail_20' ) start [2025-01-16 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261642', 'tblTempUsageDetail_20' ) end [2025-01-16 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261642', 'tblTempVendorCDR_20' ) start [2025-01-16 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261642', 'tblTempVendorCDR_20' ) end [2025-01-16 14:42:27] Production.INFO: ProcessCDR(1,14261642,1,1,2) [2025-01-16 14:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261642', 'tblTempUsageDetail_20' ) start [2025-01-16 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261642', 'tblTempUsageDetail_20' ) end [2025-01-16 14:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:42:32] Production.INFO: ==13928== Releasing lock... [2025-01-16 14:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:42:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:43:04 [end_date_ymd] => 2025-01-16 14:43:04 [RateCDR] => 1 ) [2025-01-16 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:43:04' and `end` < '2025-01-16 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:43:20] Production.INFO: count ==5645 [2025-01-16 14:43:22] Production.ERROR: pbx CDR StartTime 2025-01-16 11:43:04 - End Time 2025-01-16 14:43:04 [2025-01-16 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261647', 'tblTempUsageDetail_20' ) start [2025-01-16 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261647', 'tblTempUsageDetail_20' ) end [2025-01-16 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261647', 'tblTempVendorCDR_20' ) start [2025-01-16 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261647', 'tblTempVendorCDR_20' ) end [2025-01-16 14:43:23] Production.INFO: ProcessCDR(1,14261647,1,1,2) [2025-01-16 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261647', 'tblTempUsageDetail_20' ) start [2025-01-16 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261647', 'tblTempUsageDetail_20' ) end [2025-01-16 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:43:28] Production.INFO: ==14025== Releasing lock... [2025-01-16 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:43:28] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:44:05 [end_date_ymd] => 2025-01-16 14:44:05 [RateCDR] => 1 ) [2025-01-16 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:44:05' and `end` < '2025-01-16 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:44:19] Production.INFO: count ==5652 [2025-01-16 14:44:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:44:05 - End Time 2025-01-16 14:44:05 [2025-01-16 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261652', 'tblTempUsageDetail_20' ) start [2025-01-16 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261652', 'tblTempUsageDetail_20' ) end [2025-01-16 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261652', 'tblTempVendorCDR_20' ) start [2025-01-16 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261652', 'tblTempVendorCDR_20' ) end [2025-01-16 14:44:21] Production.INFO: ProcessCDR(1,14261652,1,1,2) [2025-01-16 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261652', 'tblTempUsageDetail_20' ) start [2025-01-16 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261652', 'tblTempUsageDetail_20' ) end [2025-01-16 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:44:26] Production.INFO: ==14122== Releasing lock... [2025-01-16 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:44:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:45:04 [end_date_ymd] => 2025-01-16 14:45:04 [RateCDR] => 1 ) [2025-01-16 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:45:04' and `end` < '2025-01-16 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:45:23] Production.INFO: count ==5639 [2025-01-16 14:45:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:45:04 - End Time 2025-01-16 14:45:04 [2025-01-16 14:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261657', 'tblTempUsageDetail_20' ) start [2025-01-16 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261657', 'tblTempUsageDetail_20' ) end [2025-01-16 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261657', 'tblTempVendorCDR_20' ) start [2025-01-16 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261657', 'tblTempVendorCDR_20' ) end [2025-01-16 14:45:26] Production.INFO: ProcessCDR(1,14261657,1,1,2) [2025-01-16 14:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261657', 'tblTempUsageDetail_20' ) start [2025-01-16 14:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261657', 'tblTempUsageDetail_20' ) end [2025-01-16 14:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:45:30] Production.INFO: ==14256== Releasing lock... [2025-01-16 14:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:45:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:46:05 [end_date_ymd] => 2025-01-16 14:46:05 [RateCDR] => 1 ) [2025-01-16 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:46:05' and `end` < '2025-01-16 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:46:19] Production.INFO: count ==5597 [2025-01-16 14:46:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:46:05 - End Time 2025-01-16 14:46:05 [2025-01-16 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261662', 'tblTempUsageDetail_20' ) start [2025-01-16 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261662', 'tblTempUsageDetail_20' ) end [2025-01-16 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261662', 'tblTempVendorCDR_20' ) start [2025-01-16 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261662', 'tblTempVendorCDR_20' ) end [2025-01-16 14:46:22] Production.INFO: ProcessCDR(1,14261662,1,1,2) [2025-01-16 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261662', 'tblTempUsageDetail_20' ) start [2025-01-16 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261662', 'tblTempUsageDetail_20' ) end [2025-01-16 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:46:26] Production.INFO: ==14353== Releasing lock... [2025-01-16 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:46:26] Production.INFO: 70 MB #Memory Used# [2025-01-16 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:47:05 [end_date_ymd] => 2025-01-16 14:47:05 [RateCDR] => 1 ) [2025-01-16 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:47:05' and `end` < '2025-01-16 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:47:22] Production.INFO: count ==5539 [2025-01-16 14:47:24] Production.ERROR: pbx CDR StartTime 2025-01-16 11:47:05 - End Time 2025-01-16 14:47:05 [2025-01-16 14:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261667', 'tblTempUsageDetail_20' ) start [2025-01-16 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261667', 'tblTempUsageDetail_20' ) end [2025-01-16 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261667', 'tblTempVendorCDR_20' ) start [2025-01-16 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261667', 'tblTempVendorCDR_20' ) end [2025-01-16 14:47:24] Production.INFO: ProcessCDR(1,14261667,1,1,2) [2025-01-16 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261667', 'tblTempUsageDetail_20' ) start [2025-01-16 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261667', 'tblTempUsageDetail_20' ) end [2025-01-16 14:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:47:29] Production.INFO: ==14449== Releasing lock... [2025-01-16 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:47:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:48:05 [end_date_ymd] => 2025-01-16 14:48:05 [RateCDR] => 1 ) [2025-01-16 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:48:05' and `end` < '2025-01-16 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:48:19] Production.INFO: count ==5473 [2025-01-16 14:48:22] Production.ERROR: pbx CDR StartTime 2025-01-16 11:48:05 - End Time 2025-01-16 14:48:05 [2025-01-16 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261672', 'tblTempUsageDetail_20' ) start [2025-01-16 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261672', 'tblTempUsageDetail_20' ) end [2025-01-16 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261672', 'tblTempVendorCDR_20' ) start [2025-01-16 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261672', 'tblTempVendorCDR_20' ) end [2025-01-16 14:48:22] Production.INFO: ProcessCDR(1,14261672,1,1,2) [2025-01-16 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261672', 'tblTempUsageDetail_20' ) start [2025-01-16 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261672', 'tblTempUsageDetail_20' ) end [2025-01-16 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:48:26] Production.INFO: ==14548== Releasing lock... [2025-01-16 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:48:26] Production.INFO: 69 MB #Memory Used# [2025-01-16 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:49:06 [end_date_ymd] => 2025-01-16 14:49:06 [RateCDR] => 1 ) [2025-01-16 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:49:06' and `end` < '2025-01-16 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:49:20] Production.INFO: count ==5381 [2025-01-16 14:49:22] Production.ERROR: pbx CDR StartTime 2025-01-16 11:49:06 - End Time 2025-01-16 14:49:06 [2025-01-16 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261677', 'tblTempUsageDetail_20' ) start [2025-01-16 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261677', 'tblTempUsageDetail_20' ) end [2025-01-16 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261677', 'tblTempVendorCDR_20' ) start [2025-01-16 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261677', 'tblTempVendorCDR_20' ) end [2025-01-16 14:49:22] Production.INFO: ProcessCDR(1,14261677,1,1,2) [2025-01-16 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261677', 'tblTempUsageDetail_20' ) start [2025-01-16 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261677', 'tblTempUsageDetail_20' ) end [2025-01-16 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:49:27] Production.INFO: ==14650== Releasing lock... [2025-01-16 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:49:27] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:50:05 [end_date_ymd] => 2025-01-16 14:50:05 [RateCDR] => 1 ) [2025-01-16 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:50:05' and `end` < '2025-01-16 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:50:27] Production.INFO: count ==5340 [2025-01-16 14:50:30] Production.ERROR: pbx CDR StartTime 2025-01-16 11:50:05 - End Time 2025-01-16 14:50:05 [2025-01-16 14:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261683', 'tblTempUsageDetail_20' ) start [2025-01-16 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261683', 'tblTempUsageDetail_20' ) end [2025-01-16 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261683', 'tblTempVendorCDR_20' ) start [2025-01-16 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261683', 'tblTempVendorCDR_20' ) end [2025-01-16 14:50:30] Production.INFO: ProcessCDR(1,14261683,1,1,2) [2025-01-16 14:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261683', 'tblTempUsageDetail_20' ) start [2025-01-16 14:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261683', 'tblTempUsageDetail_20' ) end [2025-01-16 14:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:50:35] Production.INFO: ==14748== Releasing lock... [2025-01-16 14:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:50:35] Production.INFO: 68 MB #Memory Used# [2025-01-16 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:51:05 [end_date_ymd] => 2025-01-16 14:51:05 [RateCDR] => 1 ) [2025-01-16 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:51:05' and `end` < '2025-01-16 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:51:22] Production.INFO: count ==5264 [2025-01-16 14:51:24] Production.ERROR: pbx CDR StartTime 2025-01-16 11:51:05 - End Time 2025-01-16 14:51:05 [2025-01-16 14:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261688', 'tblTempUsageDetail_20' ) start [2025-01-16 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261688', 'tblTempUsageDetail_20' ) end [2025-01-16 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261688', 'tblTempVendorCDR_20' ) start [2025-01-16 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261688', 'tblTempVendorCDR_20' ) end [2025-01-16 14:51:24] Production.INFO: ProcessCDR(1,14261688,1,1,2) [2025-01-16 14:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261688', 'tblTempUsageDetail_20' ) start [2025-01-16 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261688', 'tblTempUsageDetail_20' ) end [2025-01-16 14:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:51:29] Production.INFO: ==14848== Releasing lock... [2025-01-16 14:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:51:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:52:05 [end_date_ymd] => 2025-01-16 14:52:05 [RateCDR] => 1 ) [2025-01-16 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:52:05' and `end` < '2025-01-16 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:52:21] Production.INFO: count ==5213 [2025-01-16 14:52:23] Production.ERROR: pbx CDR StartTime 2025-01-16 11:52:05 - End Time 2025-01-16 14:52:05 [2025-01-16 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261693', 'tblTempUsageDetail_20' ) start [2025-01-16 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261693', 'tblTempUsageDetail_20' ) end [2025-01-16 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261693', 'tblTempVendorCDR_20' ) start [2025-01-16 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261693', 'tblTempVendorCDR_20' ) end [2025-01-16 14:52:23] Production.INFO: ProcessCDR(1,14261693,1,1,2) [2025-01-16 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261693', 'tblTempUsageDetail_20' ) start [2025-01-16 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261693', 'tblTempUsageDetail_20' ) end [2025-01-16 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:52:28] Production.INFO: ==14946== Releasing lock... [2025-01-16 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:52:28] Production.INFO: 67 MB #Memory Used# [2025-01-16 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:53:06 [end_date_ymd] => 2025-01-16 14:53:06 [RateCDR] => 1 ) [2025-01-16 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:53:06' and `end` < '2025-01-16 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:53:22] Production.INFO: count ==5159 [2025-01-16 14:53:24] Production.ERROR: pbx CDR StartTime 2025-01-16 11:53:06 - End Time 2025-01-16 14:53:06 [2025-01-16 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261698', 'tblTempUsageDetail_20' ) start [2025-01-16 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261698', 'tblTempUsageDetail_20' ) end [2025-01-16 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261698', 'tblTempVendorCDR_20' ) start [2025-01-16 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261698', 'tblTempVendorCDR_20' ) end [2025-01-16 14:53:24] Production.INFO: ProcessCDR(1,14261698,1,1,2) [2025-01-16 14:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261698', 'tblTempUsageDetail_20' ) start [2025-01-16 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261698', 'tblTempUsageDetail_20' ) end [2025-01-16 14:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:53:29] Production.INFO: ==15046== Releasing lock... [2025-01-16 14:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:53:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:54:05 [end_date_ymd] => 2025-01-16 14:54:05 [RateCDR] => 1 ) [2025-01-16 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:54:05' and `end` < '2025-01-16 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:54:19] Production.INFO: count ==5129 [2025-01-16 14:54:21] Production.ERROR: pbx CDR StartTime 2025-01-16 11:54:05 - End Time 2025-01-16 14:54:05 [2025-01-16 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261703', 'tblTempUsageDetail_20' ) start [2025-01-16 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261703', 'tblTempUsageDetail_20' ) end [2025-01-16 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261703', 'tblTempVendorCDR_20' ) start [2025-01-16 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261703', 'tblTempVendorCDR_20' ) end [2025-01-16 14:54:22] Production.INFO: ProcessCDR(1,14261703,1,1,2) [2025-01-16 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261703', 'tblTempUsageDetail_20' ) start [2025-01-16 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261703', 'tblTempUsageDetail_20' ) end [2025-01-16 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:54:27] Production.INFO: ==15143== Releasing lock... [2025-01-16 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:54:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:55:06 [end_date_ymd] => 2025-01-16 14:55:06 [RateCDR] => 1 ) [2025-01-16 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:55:06' and `end` < '2025-01-16 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:55:24] Production.INFO: count ==5101 [2025-01-16 14:55:26] Production.ERROR: pbx CDR StartTime 2025-01-16 11:55:06 - End Time 2025-01-16 14:55:06 [2025-01-16 14:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261708', 'tblTempUsageDetail_20' ) start [2025-01-16 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261708', 'tblTempUsageDetail_20' ) end [2025-01-16 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261708', 'tblTempVendorCDR_20' ) start [2025-01-16 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261708', 'tblTempVendorCDR_20' ) end [2025-01-16 14:55:26] Production.INFO: ProcessCDR(1,14261708,1,1,2) [2025-01-16 14:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261708', 'tblTempUsageDetail_20' ) start [2025-01-16 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261708', 'tblTempUsageDetail_20' ) end [2025-01-16 14:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:55:32] Production.INFO: ==15243== Releasing lock... [2025-01-16 14:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:55:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-16 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:56:05 [end_date_ymd] => 2025-01-16 14:56:05 [RateCDR] => 1 ) [2025-01-16 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:56:05' and `end` < '2025-01-16 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:56:23] Production.INFO: count ==5122 [2025-01-16 14:56:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:56:05 - End Time 2025-01-16 14:56:05 [2025-01-16 14:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261713', 'tblTempUsageDetail_20' ) start [2025-01-16 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261713', 'tblTempUsageDetail_20' ) end [2025-01-16 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261713', 'tblTempVendorCDR_20' ) start [2025-01-16 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261713', 'tblTempVendorCDR_20' ) end [2025-01-16 14:56:25] Production.INFO: ProcessCDR(1,14261713,1,1,2) [2025-01-16 14:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261713', 'tblTempUsageDetail_20' ) start [2025-01-16 14:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261713', 'tblTempUsageDetail_20' ) end [2025-01-16 14:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:56:30] Production.INFO: ==15342== Releasing lock... [2025-01-16 14:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:56:30] Production.INFO: 66.25 MB #Memory Used# [2025-01-16 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:57:05 [end_date_ymd] => 2025-01-16 14:57:05 [RateCDR] => 1 ) [2025-01-16 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:57:05' and `end` < '2025-01-16 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:57:27] Production.INFO: count ==5139 [2025-01-16 14:57:29] Production.ERROR: pbx CDR StartTime 2025-01-16 11:57:05 - End Time 2025-01-16 14:57:05 [2025-01-16 14:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261718', 'tblTempUsageDetail_20' ) start [2025-01-16 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261718', 'tblTempUsageDetail_20' ) end [2025-01-16 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261718', 'tblTempVendorCDR_20' ) start [2025-01-16 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261718', 'tblTempVendorCDR_20' ) end [2025-01-16 14:57:29] Production.INFO: ProcessCDR(1,14261718,1,1,2) [2025-01-16 14:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261718', 'tblTempUsageDetail_20' ) start [2025-01-16 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261718', 'tblTempUsageDetail_20' ) end [2025-01-16 14:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:57:34] Production.INFO: ==15439== Releasing lock... [2025-01-16 14:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:57:34] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:58:05 [end_date_ymd] => 2025-01-16 14:58:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 11:58:05' and `end` < '2025-01-16 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-01-16 14:58:23] Production.INFO: count ==5162 [2025-01-16 14:58:25] Production.ERROR: pbx CDR StartTime 2025-01-16 11:58:05 - End Time 2025-01-16 14:58:05 [2025-01-16 14:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261723', 'tblTempUsageDetail_20' ) start [2025-01-16 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261723', 'tblTempUsageDetail_20' ) end [2025-01-16 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261723', 'tblTempVendorCDR_20' ) start [2025-01-16 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261723', 'tblTempVendorCDR_20' ) end [2025-01-16 14:58:25] Production.INFO: ProcessCDR(1,14261723,1,1,2) [2025-01-16 14:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261723', 'tblTempUsageDetail_20' ) start [2025-01-16 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261723', 'tblTempUsageDetail_20' ) end [2025-01-16 14:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:58:30] Production.INFO: ==15534== Releasing lock... [2025-01-16 14:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:58:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 11:59:05 [end_date_ymd] => 2025-01-16 14:59:05 [RateCDR] => 1 ) [2025-01-16 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 11:59:05' and `end` < '2025-01-16 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 14:59:30] Production.INFO: count ==5172 [2025-01-16 14:59:32] Production.ERROR: pbx CDR StartTime 2025-01-16 11:59:05 - End Time 2025-01-16 14:59:05 [2025-01-16 14:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261728', 'tblTempUsageDetail_20' ) start [2025-01-16 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261728', 'tblTempUsageDetail_20' ) end [2025-01-16 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261728', 'tblTempVendorCDR_20' ) start [2025-01-16 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261728', 'tblTempVendorCDR_20' ) end [2025-01-16 14:59:32] Production.INFO: ProcessCDR(1,14261728,1,1,2) [2025-01-16 14:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:59:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 14:59:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 14:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261728', 'tblTempUsageDetail_20' ) start [2025-01-16 14:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261728', 'tblTempUsageDetail_20' ) end [2025-01-16 14:59:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 14:59:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 14:59:37] Production.INFO: ==15633== Releasing lock... [2025-01-16 14:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 14:59:37] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:00:05 [end_date_ymd] => 2025-01-16 15:00:05 [RateCDR] => 1 ) [2025-01-16 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:00:05' and `end` < '2025-01-16 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:00:26] Production.INFO: count ==5160 [2025-01-16 15:00:28] Production.ERROR: pbx CDR StartTime 2025-01-16 12:00:05 - End Time 2025-01-16 15:00:05 [2025-01-16 15:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261733', 'tblTempUsageDetail_20' ) start [2025-01-16 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261733', 'tblTempUsageDetail_20' ) end [2025-01-16 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261733', 'tblTempVendorCDR_20' ) start [2025-01-16 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261733', 'tblTempVendorCDR_20' ) end [2025-01-16 15:00:28] Production.INFO: ProcessCDR(1,14261733,1,1,2) [2025-01-16 15:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261733', 'tblTempUsageDetail_20' ) start [2025-01-16 15:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261733', 'tblTempUsageDetail_20' ) end [2025-01-16 15:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:00:33] Production.INFO: ==15730== Releasing lock... [2025-01-16 15:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:00:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:01:05 [end_date_ymd] => 2025-01-16 15:01:05 [RateCDR] => 1 ) [2025-01-16 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:01:05' and `end` < '2025-01-16 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:01:22] Production.INFO: count ==5148 [2025-01-16 15:01:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:01:05 - End Time 2025-01-16 15:01:05 [2025-01-16 15:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261739', 'tblTempUsageDetail_20' ) start [2025-01-16 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261739', 'tblTempUsageDetail_20' ) end [2025-01-16 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261739', 'tblTempVendorCDR_20' ) start [2025-01-16 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261739', 'tblTempVendorCDR_20' ) end [2025-01-16 15:01:24] Production.INFO: ProcessCDR(1,14261739,1,1,2) [2025-01-16 15:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261739', 'tblTempUsageDetail_20' ) start [2025-01-16 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261739', 'tblTempUsageDetail_20' ) end [2025-01-16 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:01:29] Production.INFO: ==15957== Releasing lock... [2025-01-16 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:01:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:02:05 [end_date_ymd] => 2025-01-16 15:02:05 [RateCDR] => 1 ) [2025-01-16 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:02:05' and `end` < '2025-01-16 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:02:21] Production.INFO: count ==5155 [2025-01-16 15:02:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:02:05 - End Time 2025-01-16 15:02:05 [2025-01-16 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261744', 'tblTempUsageDetail_20' ) start [2025-01-16 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261744', 'tblTempUsageDetail_20' ) end [2025-01-16 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261744', 'tblTempVendorCDR_20' ) start [2025-01-16 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261744', 'tblTempVendorCDR_20' ) end [2025-01-16 15:02:23] Production.INFO: ProcessCDR(1,14261744,1,1,2) [2025-01-16 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261744', 'tblTempUsageDetail_20' ) start [2025-01-16 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261744', 'tblTempUsageDetail_20' ) end [2025-01-16 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:02:28] Production.INFO: ==16056== Releasing lock... [2025-01-16 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:02:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:03:05 [end_date_ymd] => 2025-01-16 15:03:05 [RateCDR] => 1 ) [2025-01-16 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:03:05' and `end` < '2025-01-16 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:03:21] Production.INFO: count ==5149 [2025-01-16 15:03:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:03:05 - End Time 2025-01-16 15:03:05 [2025-01-16 15:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261749', 'tblTempUsageDetail_20' ) start [2025-01-16 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261749', 'tblTempUsageDetail_20' ) end [2025-01-16 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261749', 'tblTempVendorCDR_20' ) start [2025-01-16 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261749', 'tblTempVendorCDR_20' ) end [2025-01-16 15:03:24] Production.INFO: ProcessCDR(1,14261749,1,1,2) [2025-01-16 15:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261749', 'tblTempUsageDetail_20' ) start [2025-01-16 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261749', 'tblTempUsageDetail_20' ) end [2025-01-16 15:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:03:29] Production.INFO: ==16153== Releasing lock... [2025-01-16 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:03:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:04:06 [end_date_ymd] => 2025-01-16 15:04:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 12:04:06' and `end` < '2025-01-16 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-01-16 15:04:23] Production.INFO: count ==5141 [2025-01-16 15:04:25] Production.ERROR: pbx CDR StartTime 2025-01-16 12:04:06 - End Time 2025-01-16 15:04:06 [2025-01-16 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261754', 'tblTempUsageDetail_20' ) start [2025-01-16 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261754', 'tblTempUsageDetail_20' ) end [2025-01-16 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261754', 'tblTempVendorCDR_20' ) start [2025-01-16 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261754', 'tblTempVendorCDR_20' ) end [2025-01-16 15:04:25] Production.INFO: ProcessCDR(1,14261754,1,1,2) [2025-01-16 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261754', 'tblTempUsageDetail_20' ) start [2025-01-16 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261754', 'tblTempUsageDetail_20' ) end [2025-01-16 15:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:04:31] Production.INFO: ==16253== Releasing lock... [2025-01-16 15:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:04:31] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:05:05 [end_date_ymd] => 2025-01-16 15:05:05 [RateCDR] => 1 ) [2025-01-16 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:05:05' and `end` < '2025-01-16 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:05:18] Production.INFO: count ==5148 [2025-01-16 15:05:20] Production.ERROR: pbx CDR StartTime 2025-01-16 12:05:05 - End Time 2025-01-16 15:05:05 [2025-01-16 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261759', 'tblTempUsageDetail_20' ) start [2025-01-16 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261759', 'tblTempUsageDetail_20' ) end [2025-01-16 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261759', 'tblTempVendorCDR_20' ) start [2025-01-16 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261759', 'tblTempVendorCDR_20' ) end [2025-01-16 15:05:20] Production.INFO: ProcessCDR(1,14261759,1,1,2) [2025-01-16 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261759', 'tblTempUsageDetail_20' ) start [2025-01-16 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261759', 'tblTempUsageDetail_20' ) end [2025-01-16 15:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:05:25] Production.INFO: ==16428== Releasing lock... [2025-01-16 15:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:05:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:06:05 [end_date_ymd] => 2025-01-16 15:06:05 [RateCDR] => 1 ) [2025-01-16 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:06:05' and `end` < '2025-01-16 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:06:19] Production.INFO: count ==5167 [2025-01-16 15:06:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:06:05 - End Time 2025-01-16 15:06:05 [2025-01-16 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261764', 'tblTempUsageDetail_20' ) start [2025-01-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261764', 'tblTempUsageDetail_20' ) end [2025-01-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261764', 'tblTempVendorCDR_20' ) start [2025-01-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261764', 'tblTempVendorCDR_20' ) end [2025-01-16 15:06:21] Production.INFO: ProcessCDR(1,14261764,1,1,2) [2025-01-16 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261764', 'tblTempUsageDetail_20' ) start [2025-01-16 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261764', 'tblTempUsageDetail_20' ) end [2025-01-16 15:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:06:25] Production.INFO: ==16525== Releasing lock... [2025-01-16 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:06:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:07:04 [end_date_ymd] => 2025-01-16 15:07:04 [RateCDR] => 1 ) [2025-01-16 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:07:04' and `end` < '2025-01-16 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:07:19] Production.INFO: count ==5180 [2025-01-16 15:07:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:07:04 - End Time 2025-01-16 15:07:04 [2025-01-16 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261769', 'tblTempUsageDetail_20' ) start [2025-01-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261769', 'tblTempUsageDetail_20' ) end [2025-01-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261769', 'tblTempVendorCDR_20' ) start [2025-01-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261769', 'tblTempVendorCDR_20' ) end [2025-01-16 15:07:21] Production.INFO: ProcessCDR(1,14261769,1,1,2) [2025-01-16 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261769', 'tblTempUsageDetail_20' ) start [2025-01-16 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261769', 'tblTempUsageDetail_20' ) end [2025-01-16 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:07:26] Production.INFO: ==16622== Releasing lock... [2025-01-16 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:07:26] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:08:05 [end_date_ymd] => 2025-01-16 15:08:05 [RateCDR] => 1 ) [2025-01-16 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:08:05' and `end` < '2025-01-16 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:08:19] Production.INFO: count ==5174 [2025-01-16 15:08:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:08:05 - End Time 2025-01-16 15:08:05 [2025-01-16 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261774', 'tblTempUsageDetail_20' ) start [2025-01-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261774', 'tblTempUsageDetail_20' ) end [2025-01-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261774', 'tblTempVendorCDR_20' ) start [2025-01-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261774', 'tblTempVendorCDR_20' ) end [2025-01-16 15:08:21] Production.INFO: ProcessCDR(1,14261774,1,1,2) [2025-01-16 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261774', 'tblTempUsageDetail_20' ) start [2025-01-16 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261774', 'tblTempUsageDetail_20' ) end [2025-01-16 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:08:26] Production.INFO: ==16805== Releasing lock... [2025-01-16 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:08:26] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:09:05 [end_date_ymd] => 2025-01-16 15:09:05 [RateCDR] => 1 ) [2025-01-16 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:09:05' and `end` < '2025-01-16 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:09:18] Production.INFO: count ==5144 [2025-01-16 15:09:20] Production.ERROR: pbx CDR StartTime 2025-01-16 12:09:05 - End Time 2025-01-16 15:09:05 [2025-01-16 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261779', 'tblTempUsageDetail_20' ) start [2025-01-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261779', 'tblTempUsageDetail_20' ) end [2025-01-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261779', 'tblTempVendorCDR_20' ) start [2025-01-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261779', 'tblTempVendorCDR_20' ) end [2025-01-16 15:09:20] Production.INFO: ProcessCDR(1,14261779,1,1,2) [2025-01-16 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261779', 'tblTempUsageDetail_20' ) start [2025-01-16 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261779', 'tblTempUsageDetail_20' ) end [2025-01-16 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:09:25] Production.INFO: ==16910== Releasing lock... [2025-01-16 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:09:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:10:05 [end_date_ymd] => 2025-01-16 15:10:05 [RateCDR] => 1 ) [2025-01-16 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:10:05' and `end` < '2025-01-16 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:10:19] Production.INFO: count ==5140 [2025-01-16 15:10:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:10:05 - End Time 2025-01-16 15:10:05 [2025-01-16 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261783', 'tblTempUsageDetail_20' ) start [2025-01-16 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261783', 'tblTempUsageDetail_20' ) end [2025-01-16 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261783', 'tblTempVendorCDR_20' ) start [2025-01-16 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261783', 'tblTempVendorCDR_20' ) end [2025-01-16 15:10:21] Production.INFO: ProcessCDR(1,14261783,1,1,2) [2025-01-16 15:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261783', 'tblTempUsageDetail_20' ) start [2025-01-16 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261783', 'tblTempUsageDetail_20' ) end [2025-01-16 15:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:10:25] Production.INFO: ==17012== Releasing lock... [2025-01-16 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:10:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:11:05 [end_date_ymd] => 2025-01-16 15:11:05 [RateCDR] => 1 ) [2025-01-16 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:11:05' and `end` < '2025-01-16 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:11:19] Production.INFO: count ==5134 [2025-01-16 15:11:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:11:05 - End Time 2025-01-16 15:11:05 [2025-01-16 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261790', 'tblTempUsageDetail_20' ) start [2025-01-16 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261790', 'tblTempUsageDetail_20' ) end [2025-01-16 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261790', 'tblTempVendorCDR_20' ) start [2025-01-16 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261790', 'tblTempVendorCDR_20' ) end [2025-01-16 15:11:21] Production.INFO: ProcessCDR(1,14261790,1,1,2) [2025-01-16 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261790', 'tblTempUsageDetail_20' ) start [2025-01-16 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261790', 'tblTempUsageDetail_20' ) end [2025-01-16 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:11:26] Production.INFO: ==17117== Releasing lock... [2025-01-16 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:11:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:12:05 [end_date_ymd] => 2025-01-16 15:12:05 [RateCDR] => 1 ) [2025-01-16 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:12:05' and `end` < '2025-01-16 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:12:19] Production.INFO: count ==5150 [2025-01-16 15:12:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:12:05 - End Time 2025-01-16 15:12:05 [2025-01-16 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261795', 'tblTempUsageDetail_20' ) start [2025-01-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261795', 'tblTempUsageDetail_20' ) end [2025-01-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261795', 'tblTempVendorCDR_20' ) start [2025-01-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261795', 'tblTempVendorCDR_20' ) end [2025-01-16 15:12:21] Production.INFO: ProcessCDR(1,14261795,1,1,2) [2025-01-16 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261795', 'tblTempUsageDetail_20' ) start [2025-01-16 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261795', 'tblTempUsageDetail_20' ) end [2025-01-16 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:12:26] Production.INFO: ==17295== Releasing lock... [2025-01-16 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:13:04 [end_date_ymd] => 2025-01-16 15:13:04 [RateCDR] => 1 ) [2025-01-16 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:13:04' and `end` < '2025-01-16 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:13:21] Production.INFO: count ==5163 [2025-01-16 15:13:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:13:04 - End Time 2025-01-16 15:13:04 [2025-01-16 15:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261800', 'tblTempUsageDetail_20' ) start [2025-01-16 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261800', 'tblTempUsageDetail_20' ) end [2025-01-16 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261800', 'tblTempVendorCDR_20' ) start [2025-01-16 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261800', 'tblTempVendorCDR_20' ) end [2025-01-16 15:13:23] Production.INFO: ProcessCDR(1,14261800,1,1,2) [2025-01-16 15:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261800', 'tblTempUsageDetail_20' ) start [2025-01-16 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261800', 'tblTempUsageDetail_20' ) end [2025-01-16 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:13:29] Production.INFO: ==17395== Releasing lock... [2025-01-16 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:13:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:14:05 [end_date_ymd] => 2025-01-16 15:14:05 [RateCDR] => 1 ) [2025-01-16 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:14:05' and `end` < '2025-01-16 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:14:23] Production.INFO: count ==5180 [2025-01-16 15:14:25] Production.ERROR: pbx CDR StartTime 2025-01-16 12:14:05 - End Time 2025-01-16 15:14:05 [2025-01-16 15:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261805', 'tblTempUsageDetail_20' ) start [2025-01-16 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261805', 'tblTempUsageDetail_20' ) end [2025-01-16 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261805', 'tblTempVendorCDR_20' ) start [2025-01-16 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261805', 'tblTempVendorCDR_20' ) end [2025-01-16 15:14:25] Production.INFO: ProcessCDR(1,14261805,1,1,2) [2025-01-16 15:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261805', 'tblTempUsageDetail_20' ) start [2025-01-16 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261805', 'tblTempUsageDetail_20' ) end [2025-01-16 15:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:14:30] Production.INFO: ==17491== Releasing lock... [2025-01-16 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:14:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-16 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:15:04 [end_date_ymd] => 2025-01-16 15:15:04 [RateCDR] => 1 ) [2025-01-16 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:15:04' and `end` < '2025-01-16 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:15:19] Production.INFO: count ==5237 [2025-01-16 15:15:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:15:04 - End Time 2025-01-16 15:15:04 [2025-01-16 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261810', 'tblTempUsageDetail_20' ) start [2025-01-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261810', 'tblTempUsageDetail_20' ) end [2025-01-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261810', 'tblTempVendorCDR_20' ) start [2025-01-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261810', 'tblTempVendorCDR_20' ) end [2025-01-16 15:15:21] Production.INFO: ProcessCDR(1,14261810,1,1,2) [2025-01-16 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261810', 'tblTempUsageDetail_20' ) start [2025-01-16 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261810', 'tblTempUsageDetail_20' ) end [2025-01-16 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:15:25] Production.INFO: ==17664== Releasing lock... [2025-01-16 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:15:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:16:05 [end_date_ymd] => 2025-01-16 15:16:05 [RateCDR] => 1 ) [2025-01-16 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:16:05' and `end` < '2025-01-16 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:16:19] Production.INFO: count ==5307 [2025-01-16 15:16:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:16:05 - End Time 2025-01-16 15:16:05 [2025-01-16 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261815', 'tblTempUsageDetail_20' ) start [2025-01-16 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261815', 'tblTempUsageDetail_20' ) end [2025-01-16 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261815', 'tblTempVendorCDR_20' ) start [2025-01-16 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261815', 'tblTempVendorCDR_20' ) end [2025-01-16 15:16:21] Production.INFO: ProcessCDR(1,14261815,1,1,2) [2025-01-16 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261815', 'tblTempUsageDetail_20' ) start [2025-01-16 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261815', 'tblTempUsageDetail_20' ) end [2025-01-16 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:16:26] Production.INFO: ==17801== Releasing lock... [2025-01-16 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:16:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:17:05 [end_date_ymd] => 2025-01-16 15:17:05 [RateCDR] => 1 ) [2025-01-16 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:17:05' and `end` < '2025-01-16 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:17:18] Production.INFO: count ==5338 [2025-01-16 15:17:20] Production.ERROR: pbx CDR StartTime 2025-01-16 12:17:05 - End Time 2025-01-16 15:17:05 [2025-01-16 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261820', 'tblTempUsageDetail_20' ) start [2025-01-16 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261820', 'tblTempUsageDetail_20' ) end [2025-01-16 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261820', 'tblTempVendorCDR_20' ) start [2025-01-16 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261820', 'tblTempVendorCDR_20' ) end [2025-01-16 15:17:21] Production.INFO: ProcessCDR(1,14261820,1,1,2) [2025-01-16 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261820', 'tblTempUsageDetail_20' ) start [2025-01-16 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261820', 'tblTempUsageDetail_20' ) end [2025-01-16 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:17:26] Production.INFO: ==17900== Releasing lock... [2025-01-16 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:17:26] Production.INFO: 68 MB #Memory Used# [2025-01-16 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:18:05 [end_date_ymd] => 2025-01-16 15:18:05 [RateCDR] => 1 ) [2025-01-16 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:18:05' and `end` < '2025-01-16 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:18:22] Production.INFO: count ==5367 [2025-01-16 15:18:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:18:05 - End Time 2025-01-16 15:18:05 [2025-01-16 15:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261825', 'tblTempUsageDetail_20' ) start [2025-01-16 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261825', 'tblTempUsageDetail_20' ) end [2025-01-16 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261825', 'tblTempVendorCDR_20' ) start [2025-01-16 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261825', 'tblTempVendorCDR_20' ) end [2025-01-16 15:18:25] Production.INFO: ProcessCDR(1,14261825,1,1,2) [2025-01-16 15:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261825', 'tblTempUsageDetail_20' ) start [2025-01-16 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261825', 'tblTempUsageDetail_20' ) end [2025-01-16 15:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:18:30] Production.INFO: ==17994== Releasing lock... [2025-01-16 15:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:18:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:19:05 [end_date_ymd] => 2025-01-16 15:19:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 12:19:05' and `end` < '2025-01-16 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-01-16 15:19:24] Production.INFO: count ==5383 [2025-01-16 15:19:27] Production.ERROR: pbx CDR StartTime 2025-01-16 12:19:05 - End Time 2025-01-16 15:19:05 [2025-01-16 15:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261830', 'tblTempUsageDetail_20' ) start [2025-01-16 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261830', 'tblTempUsageDetail_20' ) end [2025-01-16 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261830', 'tblTempVendorCDR_20' ) start [2025-01-16 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261830', 'tblTempVendorCDR_20' ) end [2025-01-16 15:19:27] Production.INFO: ProcessCDR(1,14261830,1,1,2) [2025-01-16 15:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261830', 'tblTempUsageDetail_20' ) start [2025-01-16 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261830', 'tblTempUsageDetail_20' ) end [2025-01-16 15:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:19:32] Production.INFO: ==18090== Releasing lock... [2025-01-16 15:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:19:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:20:05 [end_date_ymd] => 2025-01-16 15:20:05 [RateCDR] => 1 ) [2025-01-16 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:20:05' and `end` < '2025-01-16 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:20:22] Production.INFO: count ==5399 [2025-01-16 15:20:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:20:05 - End Time 2025-01-16 15:20:05 [2025-01-16 15:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261835', 'tblTempUsageDetail_20' ) start [2025-01-16 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261835', 'tblTempUsageDetail_20' ) end [2025-01-16 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261835', 'tblTempVendorCDR_20' ) start [2025-01-16 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261835', 'tblTempVendorCDR_20' ) end [2025-01-16 15:20:24] Production.INFO: ProcessCDR(1,14261835,1,1,2) [2025-01-16 15:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261835', 'tblTempUsageDetail_20' ) start [2025-01-16 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261835', 'tblTempUsageDetail_20' ) end [2025-01-16 15:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:20:30] Production.INFO: ==18188== Releasing lock... [2025-01-16 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:20:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-16 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:21:05 [end_date_ymd] => 2025-01-16 15:21:05 [RateCDR] => 1 ) [2025-01-16 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:21:05' and `end` < '2025-01-16 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:21:24] Production.INFO: count ==5476 [2025-01-16 15:21:27] Production.ERROR: pbx CDR StartTime 2025-01-16 12:21:05 - End Time 2025-01-16 15:21:05 [2025-01-16 15:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261841', 'tblTempUsageDetail_20' ) start [2025-01-16 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261841', 'tblTempUsageDetail_20' ) end [2025-01-16 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261841', 'tblTempVendorCDR_20' ) start [2025-01-16 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261841', 'tblTempVendorCDR_20' ) end [2025-01-16 15:21:27] Production.INFO: ProcessCDR(1,14261841,1,1,2) [2025-01-16 15:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261841', 'tblTempUsageDetail_20' ) start [2025-01-16 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261841', 'tblTempUsageDetail_20' ) end [2025-01-16 15:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:21:32] Production.INFO: ==18289== Releasing lock... [2025-01-16 15:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:21:32] Production.INFO: 69 MB #Memory Used# [2025-01-16 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:22:04 [end_date_ymd] => 2025-01-16 15:22:04 [RateCDR] => 1 ) [2025-01-16 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:22:04' and `end` < '2025-01-16 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:22:26] Production.INFO: count ==5558 [2025-01-16 15:22:29] Production.ERROR: pbx CDR StartTime 2025-01-16 12:22:04 - End Time 2025-01-16 15:22:04 [2025-01-16 15:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261846', 'tblTempUsageDetail_20' ) start [2025-01-16 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261846', 'tblTempUsageDetail_20' ) end [2025-01-16 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261846', 'tblTempVendorCDR_20' ) start [2025-01-16 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261846', 'tblTempVendorCDR_20' ) end [2025-01-16 15:22:29] Production.INFO: ProcessCDR(1,14261846,1,1,2) [2025-01-16 15:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261846', 'tblTempUsageDetail_20' ) start [2025-01-16 15:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261846', 'tblTempUsageDetail_20' ) end [2025-01-16 15:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:22:34] Production.INFO: ==18388== Releasing lock... [2025-01-16 15:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:22:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-16 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:23:05 [end_date_ymd] => 2025-01-16 15:23:05 [RateCDR] => 1 ) [2025-01-16 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:23:05' and `end` < '2025-01-16 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:23:24] Production.INFO: count ==5608 [2025-01-16 15:23:26] Production.ERROR: pbx CDR StartTime 2025-01-16 12:23:05 - End Time 2025-01-16 15:23:05 [2025-01-16 15:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261851', 'tblTempUsageDetail_20' ) start [2025-01-16 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261851', 'tblTempUsageDetail_20' ) end [2025-01-16 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261851', 'tblTempVendorCDR_20' ) start [2025-01-16 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261851', 'tblTempVendorCDR_20' ) end [2025-01-16 15:23:26] Production.INFO: ProcessCDR(1,14261851,1,1,2) [2025-01-16 15:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261851', 'tblTempUsageDetail_20' ) start [2025-01-16 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261851', 'tblTempUsageDetail_20' ) end [2025-01-16 15:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:23:31] Production.INFO: ==18487== Releasing lock... [2025-01-16 15:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:23:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:24:04 [end_date_ymd] => 2025-01-16 15:24:04 [RateCDR] => 1 ) [2025-01-16 15:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:24:04' and `end` < '2025-01-16 15:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:24:21] Production.INFO: count ==5680 [2025-01-16 15:24:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:24:04 - End Time 2025-01-16 15:24:04 [2025-01-16 15:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261856', 'tblTempUsageDetail_20' ) start [2025-01-16 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261856', 'tblTempUsageDetail_20' ) end [2025-01-16 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261856', 'tblTempVendorCDR_20' ) start [2025-01-16 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261856', 'tblTempVendorCDR_20' ) end [2025-01-16 15:24:24] Production.INFO: ProcessCDR(1,14261856,1,1,2) [2025-01-16 15:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261856', 'tblTempUsageDetail_20' ) start [2025-01-16 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261856', 'tblTempUsageDetail_20' ) end [2025-01-16 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:24:29] Production.INFO: ==18589== Releasing lock... [2025-01-16 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:24:29] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:25:05 [end_date_ymd] => 2025-01-16 15:25:05 [RateCDR] => 1 ) [2025-01-16 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:25:05' and `end` < '2025-01-16 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:25:24] Production.INFO: count ==5682 [2025-01-16 15:25:27] Production.ERROR: pbx CDR StartTime 2025-01-16 12:25:05 - End Time 2025-01-16 15:25:05 [2025-01-16 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261861', 'tblTempUsageDetail_20' ) start [2025-01-16 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261861', 'tblTempUsageDetail_20' ) end [2025-01-16 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261861', 'tblTempVendorCDR_20' ) start [2025-01-16 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261861', 'tblTempVendorCDR_20' ) end [2025-01-16 15:25:27] Production.INFO: ProcessCDR(1,14261861,1,1,2) [2025-01-16 15:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261861', 'tblTempUsageDetail_20' ) start [2025-01-16 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261861', 'tblTempUsageDetail_20' ) end [2025-01-16 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:25:32] Production.INFO: ==18686== Releasing lock... [2025-01-16 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:25:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:26:05 [end_date_ymd] => 2025-01-16 15:26:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 12:26:05' and `end` < '2025-01-16 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-01-16 15:26:27] Production.INFO: count ==5697 [2025-01-16 15:26:29] Production.ERROR: pbx CDR StartTime 2025-01-16 12:26:05 - End Time 2025-01-16 15:26:05 [2025-01-16 15:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261866', 'tblTempUsageDetail_20' ) start [2025-01-16 15:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261866', 'tblTempUsageDetail_20' ) end [2025-01-16 15:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261866', 'tblTempVendorCDR_20' ) start [2025-01-16 15:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261866', 'tblTempVendorCDR_20' ) end [2025-01-16 15:26:29] Production.INFO: ProcessCDR(1,14261866,1,1,2) [2025-01-16 15:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261866', 'tblTempUsageDetail_20' ) start [2025-01-16 15:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261866', 'tblTempUsageDetail_20' ) end [2025-01-16 15:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:26:34] Production.INFO: ==18783== Releasing lock... [2025-01-16 15:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:26:34] Production.INFO: 70.75 MB #Memory Used# [2025-01-16 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:27:05 [end_date_ymd] => 2025-01-16 15:27:05 [RateCDR] => 1 ) [2025-01-16 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:27:05' and `end` < '2025-01-16 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:27:32] Production.INFO: count ==5688 [2025-01-16 15:27:34] Production.ERROR: pbx CDR StartTime 2025-01-16 12:27:05 - End Time 2025-01-16 15:27:05 [2025-01-16 15:27:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261871', 'tblTempUsageDetail_20' ) start [2025-01-16 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261871', 'tblTempUsageDetail_20' ) end [2025-01-16 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261871', 'tblTempVendorCDR_20' ) start [2025-01-16 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261871', 'tblTempVendorCDR_20' ) end [2025-01-16 15:27:34] Production.INFO: ProcessCDR(1,14261871,1,1,2) [2025-01-16 15:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261871', 'tblTempUsageDetail_20' ) start [2025-01-16 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261871', 'tblTempUsageDetail_20' ) end [2025-01-16 15:27:39] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:27:39] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:27:39] Production.INFO: ==18880== Releasing lock... [2025-01-16 15:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:27:39] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:28:06 [end_date_ymd] => 2025-01-16 15:28:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 12:28:06' and `end` < '2025-01-16 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-01-16 15:28:29] Production.INFO: count ==5767 [2025-01-16 15:28:31] Production.ERROR: pbx CDR StartTime 2025-01-16 12:28:06 - End Time 2025-01-16 15:28:06 [2025-01-16 15:28:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261876', 'tblTempUsageDetail_20' ) start [2025-01-16 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261876', 'tblTempUsageDetail_20' ) end [2025-01-16 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261876', 'tblTempVendorCDR_20' ) start [2025-01-16 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261876', 'tblTempVendorCDR_20' ) end [2025-01-16 15:28:32] Production.INFO: ProcessCDR(1,14261876,1,1,2) [2025-01-16 15:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:28:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:28:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:28:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261876', 'tblTempUsageDetail_20' ) start [2025-01-16 15:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261876', 'tblTempUsageDetail_20' ) end [2025-01-16 15:28:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:28:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:28:36] Production.INFO: ==18989== Releasing lock... [2025-01-16 15:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:28:36] Production.INFO: 71.25 MB #Memory Used# [2025-01-16 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:29:05 [end_date_ymd] => 2025-01-16 15:29:05 [RateCDR] => 1 ) [2025-01-16 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:29:05' and `end` < '2025-01-16 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:29:22] Production.INFO: count ==5765 [2025-01-16 15:29:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:29:05 - End Time 2025-01-16 15:29:05 [2025-01-16 15:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261881', 'tblTempUsageDetail_20' ) start [2025-01-16 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261881', 'tblTempUsageDetail_20' ) end [2025-01-16 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261881', 'tblTempVendorCDR_20' ) start [2025-01-16 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261881', 'tblTempVendorCDR_20' ) end [2025-01-16 15:29:25] Production.INFO: ProcessCDR(1,14261881,1,1,2) [2025-01-16 15:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261881', 'tblTempUsageDetail_20' ) start [2025-01-16 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261881', 'tblTempUsageDetail_20' ) end [2025-01-16 15:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:29:29] Production.INFO: ==19084== Releasing lock... [2025-01-16 15:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:29:29] Production.INFO: 71.25 MB #Memory Used# [2025-01-16 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:30:06 [end_date_ymd] => 2025-01-16 15:30:06 [RateCDR] => 1 ) [2025-01-16 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:30:06' and `end` < '2025-01-16 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:30:25] Production.INFO: count ==5788 [2025-01-16 15:30:28] Production.ERROR: pbx CDR StartTime 2025-01-16 12:30:06 - End Time 2025-01-16 15:30:06 [2025-01-16 15:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261886', 'tblTempUsageDetail_20' ) start [2025-01-16 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261886', 'tblTempUsageDetail_20' ) end [2025-01-16 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261886', 'tblTempVendorCDR_20' ) start [2025-01-16 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261886', 'tblTempVendorCDR_20' ) end [2025-01-16 15:30:28] Production.INFO: ProcessCDR(1,14261886,1,1,2) [2025-01-16 15:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261886', 'tblTempUsageDetail_20' ) start [2025-01-16 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261886', 'tblTempUsageDetail_20' ) end [2025-01-16 15:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:30:33] Production.INFO: ==19180== Releasing lock... [2025-01-16 15:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:30:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-16 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:31:04 [end_date_ymd] => 2025-01-16 15:31:04 [RateCDR] => 1 ) [2025-01-16 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:31:04' and `end` < '2025-01-16 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:31:27] Production.INFO: count ==5810 [2025-01-16 15:31:30] Production.ERROR: pbx CDR StartTime 2025-01-16 12:31:04 - End Time 2025-01-16 15:31:04 [2025-01-16 15:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261892', 'tblTempUsageDetail_20' ) start [2025-01-16 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261892', 'tblTempUsageDetail_20' ) end [2025-01-16 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261892', 'tblTempVendorCDR_20' ) start [2025-01-16 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261892', 'tblTempVendorCDR_20' ) end [2025-01-16 15:31:30] Production.INFO: ProcessCDR(1,14261892,1,1,2) [2025-01-16 15:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261892', 'tblTempUsageDetail_20' ) start [2025-01-16 15:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261892', 'tblTempUsageDetail_20' ) end [2025-01-16 15:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:31:35] Production.INFO: ==19275== Releasing lock... [2025-01-16 15:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:31:35] Production.INFO: 71.5 MB #Memory Used# [2025-01-16 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:32:05 [end_date_ymd] => 2025-01-16 15:32:05 [RateCDR] => 1 ) [2025-01-16 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:32:05' and `end` < '2025-01-16 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:32:25] Production.INFO: count ==5834 [2025-01-16 15:32:27] Production.ERROR: pbx CDR StartTime 2025-01-16 12:32:05 - End Time 2025-01-16 15:32:05 [2025-01-16 15:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261897', 'tblTempUsageDetail_20' ) start [2025-01-16 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261897', 'tblTempUsageDetail_20' ) end [2025-01-16 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261897', 'tblTempVendorCDR_20' ) start [2025-01-16 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261897', 'tblTempVendorCDR_20' ) end [2025-01-16 15:32:27] Production.INFO: ProcessCDR(1,14261897,1,1,2) [2025-01-16 15:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261897', 'tblTempUsageDetail_20' ) start [2025-01-16 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261897', 'tblTempUsageDetail_20' ) end [2025-01-16 15:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:32:32] Production.INFO: ==19414== Releasing lock... [2025-01-16 15:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:32:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-16 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:33:05 [end_date_ymd] => 2025-01-16 15:33:05 [RateCDR] => 1 ) [2025-01-16 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:33:05' and `end` < '2025-01-16 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:33:20] Production.INFO: count ==5836 [2025-01-16 15:33:22] Production.ERROR: pbx CDR StartTime 2025-01-16 12:33:05 - End Time 2025-01-16 15:33:05 [2025-01-16 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261902', 'tblTempUsageDetail_20' ) start [2025-01-16 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261902', 'tblTempUsageDetail_20' ) end [2025-01-16 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261902', 'tblTempVendorCDR_20' ) start [2025-01-16 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261902', 'tblTempVendorCDR_20' ) end [2025-01-16 15:33:22] Production.INFO: ProcessCDR(1,14261902,1,1,2) [2025-01-16 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261902', 'tblTempUsageDetail_20' ) start [2025-01-16 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261902', 'tblTempUsageDetail_20' ) end [2025-01-16 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:33:27] Production.INFO: ==19509== Releasing lock... [2025-01-16 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:33:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-16 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:34:05 [end_date_ymd] => 2025-01-16 15:34:05 [RateCDR] => 1 ) [2025-01-16 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:34:05' and `end` < '2025-01-16 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:34:20] Production.INFO: count ==5857 [2025-01-16 15:34:22] Production.ERROR: pbx CDR StartTime 2025-01-16 12:34:05 - End Time 2025-01-16 15:34:05 [2025-01-16 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261907', 'tblTempUsageDetail_20' ) start [2025-01-16 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261907', 'tblTempUsageDetail_20' ) end [2025-01-16 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261907', 'tblTempVendorCDR_20' ) start [2025-01-16 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261907', 'tblTempVendorCDR_20' ) end [2025-01-16 15:34:22] Production.INFO: ProcessCDR(1,14261907,1,1,2) [2025-01-16 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261907', 'tblTempUsageDetail_20' ) start [2025-01-16 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261907', 'tblTempUsageDetail_20' ) end [2025-01-16 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:34:27] Production.INFO: ==19606== Releasing lock... [2025-01-16 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:34:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-16 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:35:05 [end_date_ymd] => 2025-01-16 15:35:05 [RateCDR] => 1 ) [2025-01-16 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:35:05' and `end` < '2025-01-16 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:35:19] Production.INFO: count ==5905 [2025-01-16 15:35:22] Production.ERROR: pbx CDR StartTime 2025-01-16 12:35:05 - End Time 2025-01-16 15:35:05 [2025-01-16 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261912', 'tblTempUsageDetail_20' ) start [2025-01-16 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261912', 'tblTempUsageDetail_20' ) end [2025-01-16 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261912', 'tblTempVendorCDR_20' ) start [2025-01-16 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261912', 'tblTempVendorCDR_20' ) end [2025-01-16 15:35:22] Production.INFO: ProcessCDR(1,14261912,1,1,2) [2025-01-16 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261912', 'tblTempUsageDetail_20' ) start [2025-01-16 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261912', 'tblTempUsageDetail_20' ) end [2025-01-16 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:35:27] Production.INFO: ==19704== Releasing lock... [2025-01-16 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:35:27] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:36:05 [end_date_ymd] => 2025-01-16 15:36:05 [RateCDR] => 1 ) [2025-01-16 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:36:05' and `end` < '2025-01-16 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:36:21] Production.INFO: count ==5906 [2025-01-16 15:36:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:36:05 - End Time 2025-01-16 15:36:05 [2025-01-16 15:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261917', 'tblTempUsageDetail_20' ) start [2025-01-16 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261917', 'tblTempUsageDetail_20' ) end [2025-01-16 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261917', 'tblTempVendorCDR_20' ) start [2025-01-16 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261917', 'tblTempVendorCDR_20' ) end [2025-01-16 15:36:24] Production.INFO: ProcessCDR(1,14261917,1,1,2) [2025-01-16 15:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261917', 'tblTempUsageDetail_20' ) start [2025-01-16 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261917', 'tblTempUsageDetail_20' ) end [2025-01-16 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:36:28] Production.INFO: ==19798== Releasing lock... [2025-01-16 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:36:28] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:37:05 [end_date_ymd] => 2025-01-16 15:37:05 [RateCDR] => 1 ) [2025-01-16 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:37:05' and `end` < '2025-01-16 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:37:29] Production.INFO: count ==5915 [2025-01-16 15:37:32] Production.ERROR: pbx CDR StartTime 2025-01-16 12:37:05 - End Time 2025-01-16 15:37:05 [2025-01-16 15:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261922', 'tblTempUsageDetail_20' ) start [2025-01-16 15:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261922', 'tblTempUsageDetail_20' ) end [2025-01-16 15:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261922', 'tblTempVendorCDR_20' ) start [2025-01-16 15:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261922', 'tblTempVendorCDR_20' ) end [2025-01-16 15:37:32] Production.INFO: ProcessCDR(1,14261922,1,1,2) [2025-01-16 15:37:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:37:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:37:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:37:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261922', 'tblTempUsageDetail_20' ) start [2025-01-16 15:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261922', 'tblTempUsageDetail_20' ) end [2025-01-16 15:37:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:37:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:37:37] Production.INFO: ==19898== Releasing lock... [2025-01-16 15:37:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:37:37] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:38:05 [end_date_ymd] => 2025-01-16 15:38:05 [RateCDR] => 1 ) [2025-01-16 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:38:05' and `end` < '2025-01-16 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:38:25] Production.INFO: count ==5916 [2025-01-16 15:38:28] Production.ERROR: pbx CDR StartTime 2025-01-16 12:38:05 - End Time 2025-01-16 15:38:05 [2025-01-16 15:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261927', 'tblTempUsageDetail_20' ) start [2025-01-16 15:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261927', 'tblTempUsageDetail_20' ) end [2025-01-16 15:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261927', 'tblTempVendorCDR_20' ) start [2025-01-16 15:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261927', 'tblTempVendorCDR_20' ) end [2025-01-16 15:38:28] Production.INFO: ProcessCDR(1,14261927,1,1,2) [2025-01-16 15:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261927', 'tblTempUsageDetail_20' ) start [2025-01-16 15:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261927', 'tblTempUsageDetail_20' ) end [2025-01-16 15:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:38:33] Production.INFO: ==20001== Releasing lock... [2025-01-16 15:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:38:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:39:05 [end_date_ymd] => 2025-01-16 15:39:05 [RateCDR] => 1 ) [2025-01-16 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:39:05' and `end` < '2025-01-16 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:39:22] Production.INFO: count ==5903 [2025-01-16 15:39:25] Production.ERROR: pbx CDR StartTime 2025-01-16 12:39:05 - End Time 2025-01-16 15:39:05 [2025-01-16 15:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261932', 'tblTempUsageDetail_20' ) start [2025-01-16 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261932', 'tblTempUsageDetail_20' ) end [2025-01-16 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261932', 'tblTempVendorCDR_20' ) start [2025-01-16 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261932', 'tblTempVendorCDR_20' ) end [2025-01-16 15:39:25] Production.INFO: ProcessCDR(1,14261932,1,1,2) [2025-01-16 15:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261932', 'tblTempUsageDetail_20' ) start [2025-01-16 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261932', 'tblTempUsageDetail_20' ) end [2025-01-16 15:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:39:30] Production.INFO: ==20100== Releasing lock... [2025-01-16 15:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:39:30] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:40:05 [end_date_ymd] => 2025-01-16 15:40:05 [RateCDR] => 1 ) [2025-01-16 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:40:05' and `end` < '2025-01-16 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:40:20] Production.INFO: count ==5913 [2025-01-16 15:40:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:40:05 - End Time 2025-01-16 15:40:05 [2025-01-16 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261937', 'tblTempUsageDetail_20' ) start [2025-01-16 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261937', 'tblTempUsageDetail_20' ) end [2025-01-16 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261937', 'tblTempVendorCDR_20' ) start [2025-01-16 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261937', 'tblTempVendorCDR_20' ) end [2025-01-16 15:40:23] Production.INFO: ProcessCDR(1,14261937,1,1,2) [2025-01-16 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261937', 'tblTempUsageDetail_20' ) start [2025-01-16 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261937', 'tblTempUsageDetail_20' ) end [2025-01-16 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:40:27] Production.INFO: ==20199== Releasing lock... [2025-01-16 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:40:27] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:41:05 [end_date_ymd] => 2025-01-16 15:41:05 [RateCDR] => 1 ) [2025-01-16 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:41:05' and `end` < '2025-01-16 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:41:28] Production.INFO: count ==5910 [2025-01-16 15:41:31] Production.ERROR: pbx CDR StartTime 2025-01-16 12:41:05 - End Time 2025-01-16 15:41:05 [2025-01-16 15:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261943', 'tblTempUsageDetail_20' ) start [2025-01-16 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261943', 'tblTempUsageDetail_20' ) end [2025-01-16 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261943', 'tblTempVendorCDR_20' ) start [2025-01-16 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261943', 'tblTempVendorCDR_20' ) end [2025-01-16 15:41:31] Production.INFO: ProcessCDR(1,14261943,1,1,2) [2025-01-16 15:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261943', 'tblTempUsageDetail_20' ) start [2025-01-16 15:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261943', 'tblTempUsageDetail_20' ) end [2025-01-16 15:41:36] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:41:36] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:41:36] Production.INFO: ==20298== Releasing lock... [2025-01-16 15:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:41:36] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:42:05 [end_date_ymd] => 2025-01-16 15:42:05 [RateCDR] => 1 ) [2025-01-16 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:42:05' and `end` < '2025-01-16 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:42:21] Production.INFO: count ==5911 [2025-01-16 15:42:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:42:05 - End Time 2025-01-16 15:42:05 [2025-01-16 15:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261948', 'tblTempUsageDetail_20' ) start [2025-01-16 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261948', 'tblTempUsageDetail_20' ) end [2025-01-16 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261948', 'tblTempVendorCDR_20' ) start [2025-01-16 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261948', 'tblTempVendorCDR_20' ) end [2025-01-16 15:42:24] Production.INFO: ProcessCDR(1,14261948,1,1,2) [2025-01-16 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261948', 'tblTempUsageDetail_20' ) start [2025-01-16 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261948', 'tblTempUsageDetail_20' ) end [2025-01-16 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:42:29] Production.INFO: ==20397== Releasing lock... [2025-01-16 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:42:29] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:43:05 [end_date_ymd] => 2025-01-16 15:43:05 [RateCDR] => 1 ) [2025-01-16 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:43:05' and `end` < '2025-01-16 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:43:18] Production.INFO: count ==5906 [2025-01-16 15:43:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:43:05 - End Time 2025-01-16 15:43:05 [2025-01-16 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261953', 'tblTempUsageDetail_20' ) start [2025-01-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261953', 'tblTempUsageDetail_20' ) end [2025-01-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261953', 'tblTempVendorCDR_20' ) start [2025-01-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261953', 'tblTempVendorCDR_20' ) end [2025-01-16 15:43:21] Production.INFO: ProcessCDR(1,14261953,1,1,2) [2025-01-16 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261953', 'tblTempUsageDetail_20' ) start [2025-01-16 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261953', 'tblTempUsageDetail_20' ) end [2025-01-16 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:43:26] Production.INFO: ==20495== Releasing lock... [2025-01-16 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:43:26] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:44:05 [end_date_ymd] => 2025-01-16 15:44:05 [RateCDR] => 1 ) [2025-01-16 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:44:05' and `end` < '2025-01-16 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:44:18] Production.INFO: count ==5917 [2025-01-16 15:44:21] Production.ERROR: pbx CDR StartTime 2025-01-16 12:44:05 - End Time 2025-01-16 15:44:05 [2025-01-16 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261958', 'tblTempUsageDetail_20' ) start [2025-01-16 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261958', 'tblTempUsageDetail_20' ) end [2025-01-16 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261958', 'tblTempVendorCDR_20' ) start [2025-01-16 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261958', 'tblTempVendorCDR_20' ) end [2025-01-16 15:44:21] Production.INFO: ProcessCDR(1,14261958,1,1,2) [2025-01-16 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261958', 'tblTempUsageDetail_20' ) start [2025-01-16 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261958', 'tblTempUsageDetail_20' ) end [2025-01-16 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:44:26] Production.INFO: ==20591== Releasing lock... [2025-01-16 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:44:26] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:45:04 [end_date_ymd] => 2025-01-16 15:45:04 [RateCDR] => 1 ) [2025-01-16 15:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:45:04' and `end` < '2025-01-16 15:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:45:22] Production.INFO: count ==5903 [2025-01-16 15:45:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:45:04 - End Time 2025-01-16 15:45:04 [2025-01-16 15:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261963', 'tblTempUsageDetail_20' ) start [2025-01-16 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261963', 'tblTempUsageDetail_20' ) end [2025-01-16 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261963', 'tblTempVendorCDR_20' ) start [2025-01-16 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261963', 'tblTempVendorCDR_20' ) end [2025-01-16 15:45:24] Production.INFO: ProcessCDR(1,14261963,1,1,2) [2025-01-16 15:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261963', 'tblTempUsageDetail_20' ) start [2025-01-16 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261963', 'tblTempUsageDetail_20' ) end [2025-01-16 15:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:45:29] Production.INFO: ==20687== Releasing lock... [2025-01-16 15:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:45:29] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:46:05 [end_date_ymd] => 2025-01-16 15:46:05 [RateCDR] => 1 ) [2025-01-16 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:46:05' and `end` < '2025-01-16 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:46:25] Production.INFO: count ==5932 [2025-01-16 15:46:28] Production.ERROR: pbx CDR StartTime 2025-01-16 12:46:05 - End Time 2025-01-16 15:46:05 [2025-01-16 15:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261968', 'tblTempUsageDetail_20' ) start [2025-01-16 15:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261968', 'tblTempUsageDetail_20' ) end [2025-01-16 15:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261968', 'tblTempVendorCDR_20' ) start [2025-01-16 15:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261968', 'tblTempVendorCDR_20' ) end [2025-01-16 15:46:28] Production.INFO: ProcessCDR(1,14261968,1,1,2) [2025-01-16 15:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261968', 'tblTempUsageDetail_20' ) start [2025-01-16 15:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261968', 'tblTempUsageDetail_20' ) end [2025-01-16 15:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:46:33] Production.INFO: ==20784== Releasing lock... [2025-01-16 15:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:46:33] Production.INFO: 72.5 MB #Memory Used# [2025-01-16 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:47:04 [end_date_ymd] => 2025-01-16 15:47:04 [RateCDR] => 1 ) [2025-01-16 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:47:04' and `end` < '2025-01-16 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:47:27] Production.INFO: count ==5945 [2025-01-16 15:47:30] Production.ERROR: pbx CDR StartTime 2025-01-16 12:47:04 - End Time 2025-01-16 15:47:04 [2025-01-16 15:47:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261973', 'tblTempUsageDetail_20' ) start [2025-01-16 15:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261973', 'tblTempUsageDetail_20' ) end [2025-01-16 15:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261973', 'tblTempVendorCDR_20' ) start [2025-01-16 15:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261973', 'tblTempVendorCDR_20' ) end [2025-01-16 15:47:30] Production.INFO: ProcessCDR(1,14261973,1,1,2) [2025-01-16 15:47:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:47:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:47:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:47:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261973', 'tblTempUsageDetail_20' ) start [2025-01-16 15:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261973', 'tblTempUsageDetail_20' ) end [2025-01-16 15:47:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:47:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:47:35] Production.INFO: ==20880== Releasing lock... [2025-01-16 15:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:47:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-16 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:48:05 [end_date_ymd] => 2025-01-16 15:48:05 [RateCDR] => 1 ) [2025-01-16 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:48:05' and `end` < '2025-01-16 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:48:26] Production.INFO: count ==5983 [2025-01-16 15:48:29] Production.ERROR: pbx CDR StartTime 2025-01-16 12:48:05 - End Time 2025-01-16 15:48:05 [2025-01-16 15:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261978', 'tblTempUsageDetail_20' ) start [2025-01-16 15:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261978', 'tblTempUsageDetail_20' ) end [2025-01-16 15:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261978', 'tblTempVendorCDR_20' ) start [2025-01-16 15:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261978', 'tblTempVendorCDR_20' ) end [2025-01-16 15:48:29] Production.INFO: ProcessCDR(1,14261978,1,1,2) [2025-01-16 15:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261978', 'tblTempUsageDetail_20' ) start [2025-01-16 15:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261978', 'tblTempUsageDetail_20' ) end [2025-01-16 15:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:48:34] Production.INFO: ==21018== Releasing lock... [2025-01-16 15:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:48:34] Production.INFO: 72.75 MB #Memory Used# [2025-01-16 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:49:05 [end_date_ymd] => 2025-01-16 15:49:05 [RateCDR] => 1 ) [2025-01-16 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:49:05' and `end` < '2025-01-16 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:49:23] Production.INFO: count ==6007 [2025-01-16 15:49:25] Production.ERROR: pbx CDR StartTime 2025-01-16 12:49:05 - End Time 2025-01-16 15:49:05 [2025-01-16 15:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261983', 'tblTempUsageDetail_20' ) start [2025-01-16 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261983', 'tblTempUsageDetail_20' ) end [2025-01-16 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261983', 'tblTempVendorCDR_20' ) start [2025-01-16 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261983', 'tblTempVendorCDR_20' ) end [2025-01-16 15:49:26] Production.INFO: ProcessCDR(1,14261983,1,1,2) [2025-01-16 15:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261983', 'tblTempUsageDetail_20' ) start [2025-01-16 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261983', 'tblTempUsageDetail_20' ) end [2025-01-16 15:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:49:31] Production.INFO: ==21117== Releasing lock... [2025-01-16 15:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:49:31] Production.INFO: 73 MB #Memory Used# [2025-01-16 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:50:05 [end_date_ymd] => 2025-01-16 15:50:05 [RateCDR] => 1 ) [2025-01-16 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:50:05' and `end` < '2025-01-16 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:50:25] Production.INFO: count ==6043 [2025-01-16 15:50:28] Production.ERROR: pbx CDR StartTime 2025-01-16 12:50:05 - End Time 2025-01-16 15:50:05 [2025-01-16 15:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261988', 'tblTempUsageDetail_20' ) start [2025-01-16 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261988', 'tblTempUsageDetail_20' ) end [2025-01-16 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261988', 'tblTempVendorCDR_20' ) start [2025-01-16 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261988', 'tblTempVendorCDR_20' ) end [2025-01-16 15:50:28] Production.INFO: ProcessCDR(1,14261988,1,1,2) [2025-01-16 15:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261988', 'tblTempUsageDetail_20' ) start [2025-01-16 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261988', 'tblTempUsageDetail_20' ) end [2025-01-16 15:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:50:33] Production.INFO: ==21216== Releasing lock... [2025-01-16 15:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:50:33] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:51:05 [end_date_ymd] => 2025-01-16 15:51:05 [RateCDR] => 1 ) [2025-01-16 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:51:05' and `end` < '2025-01-16 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:51:21] Production.INFO: count ==6034 [2025-01-16 15:51:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:51:05 - End Time 2025-01-16 15:51:05 [2025-01-16 15:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261994', 'tblTempUsageDetail_20' ) start [2025-01-16 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261994', 'tblTempUsageDetail_20' ) end [2025-01-16 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261994', 'tblTempVendorCDR_20' ) start [2025-01-16 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261994', 'tblTempVendorCDR_20' ) end [2025-01-16 15:51:24] Production.INFO: ProcessCDR(1,14261994,1,1,2) [2025-01-16 15:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261994', 'tblTempUsageDetail_20' ) start [2025-01-16 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261994', 'tblTempUsageDetail_20' ) end [2025-01-16 15:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:51:29] Production.INFO: ==21316== Releasing lock... [2025-01-16 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:51:29] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:52:05 [end_date_ymd] => 2025-01-16 15:52:05 [RateCDR] => 1 ) [2025-01-16 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:52:05' and `end` < '2025-01-16 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:52:26] Production.INFO: count ==6035 [2025-01-16 15:52:28] Production.ERROR: pbx CDR StartTime 2025-01-16 12:52:05 - End Time 2025-01-16 15:52:05 [2025-01-16 15:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261999', 'tblTempUsageDetail_20' ) start [2025-01-16 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14261999', 'tblTempUsageDetail_20' ) end [2025-01-16 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261999', 'tblTempVendorCDR_20' ) start [2025-01-16 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14261999', 'tblTempVendorCDR_20' ) end [2025-01-16 15:52:29] Production.INFO: ProcessCDR(1,14261999,1,1,2) [2025-01-16 15:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14261999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14261999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14261999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14261999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261999', 'tblTempUsageDetail_20' ) start [2025-01-16 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14261999', 'tblTempUsageDetail_20' ) end [2025-01-16 15:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:52:33] Production.INFO: ==21418== Releasing lock... [2025-01-16 15:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:52:33] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:53:05 [end_date_ymd] => 2025-01-16 15:53:05 [RateCDR] => 1 ) [2025-01-16 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:53:05' and `end` < '2025-01-16 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:53:22] Production.INFO: count ==6044 [2025-01-16 15:53:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:53:05 - End Time 2025-01-16 15:53:05 [2025-01-16 15:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262004', 'tblTempUsageDetail_20' ) start [2025-01-16 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262004', 'tblTempUsageDetail_20' ) end [2025-01-16 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262004', 'tblTempVendorCDR_20' ) start [2025-01-16 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262004', 'tblTempVendorCDR_20' ) end [2025-01-16 15:53:25] Production.INFO: ProcessCDR(1,14262004,1,1,2) [2025-01-16 15:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262004', 'tblTempUsageDetail_20' ) start [2025-01-16 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262004', 'tblTempUsageDetail_20' ) end [2025-01-16 15:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:53:30] Production.INFO: ==21517== Releasing lock... [2025-01-16 15:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:53:30] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:54:04 [end_date_ymd] => 2025-01-16 15:54:04 [RateCDR] => 1 ) [2025-01-16 15:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:54:04' and `end` < '2025-01-16 15:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:54:20] Production.INFO: count ==6032 [2025-01-16 15:54:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:54:04 - End Time 2025-01-16 15:54:04 [2025-01-16 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262009', 'tblTempUsageDetail_20' ) start [2025-01-16 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262009', 'tblTempUsageDetail_20' ) end [2025-01-16 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262009', 'tblTempVendorCDR_20' ) start [2025-01-16 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262009', 'tblTempVendorCDR_20' ) end [2025-01-16 15:54:23] Production.INFO: ProcessCDR(1,14262009,1,1,2) [2025-01-16 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262009', 'tblTempUsageDetail_20' ) start [2025-01-16 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262009', 'tblTempUsageDetail_20' ) end [2025-01-16 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:54:28] Production.INFO: ==21613== Releasing lock... [2025-01-16 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:54:28] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:55:05 [end_date_ymd] => 2025-01-16 15:55:05 [RateCDR] => 1 ) [2025-01-16 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:55:05' and `end` < '2025-01-16 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:55:29] Production.INFO: count ==6044 [2025-01-16 15:55:32] Production.ERROR: pbx CDR StartTime 2025-01-16 12:55:05 - End Time 2025-01-16 15:55:05 [2025-01-16 15:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262014', 'tblTempUsageDetail_20' ) start [2025-01-16 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262014', 'tblTempUsageDetail_20' ) end [2025-01-16 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262014', 'tblTempVendorCDR_20' ) start [2025-01-16 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262014', 'tblTempVendorCDR_20' ) end [2025-01-16 15:55:32] Production.INFO: ProcessCDR(1,14262014,1,1,2) [2025-01-16 15:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262014', 'tblTempUsageDetail_20' ) start [2025-01-16 15:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262014', 'tblTempUsageDetail_20' ) end [2025-01-16 15:55:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:55:38] Production.INFO: ==21713== Releasing lock... [2025-01-16 15:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:55:38] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:56:05 [end_date_ymd] => 2025-01-16 15:56:05 [RateCDR] => 1 ) [2025-01-16 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:56:05' and `end` < '2025-01-16 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:56:21] Production.INFO: count ==6036 [2025-01-16 15:56:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:56:05 - End Time 2025-01-16 15:56:05 [2025-01-16 15:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262019', 'tblTempUsageDetail_20' ) start [2025-01-16 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262019', 'tblTempUsageDetail_20' ) end [2025-01-16 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262019', 'tblTempVendorCDR_20' ) start [2025-01-16 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262019', 'tblTempVendorCDR_20' ) end [2025-01-16 15:56:24] Production.INFO: ProcessCDR(1,14262019,1,1,2) [2025-01-16 15:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262019', 'tblTempUsageDetail_20' ) start [2025-01-16 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262019', 'tblTempUsageDetail_20' ) end [2025-01-16 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:56:28] Production.INFO: ==21809== Releasing lock... [2025-01-16 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:56:28] Production.INFO: 73.25 MB #Memory Used# [2025-01-16 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:57:05 [end_date_ymd] => 2025-01-16 15:57:05 [RateCDR] => 1 ) [2025-01-16 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:57:05' and `end` < '2025-01-16 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:57:21] Production.INFO: count ==6026 [2025-01-16 15:57:24] Production.ERROR: pbx CDR StartTime 2025-01-16 12:57:05 - End Time 2025-01-16 15:57:05 [2025-01-16 15:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262024', 'tblTempUsageDetail_20' ) start [2025-01-16 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262024', 'tblTempUsageDetail_20' ) end [2025-01-16 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262024', 'tblTempVendorCDR_20' ) start [2025-01-16 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262024', 'tblTempVendorCDR_20' ) end [2025-01-16 15:57:24] Production.INFO: ProcessCDR(1,14262024,1,1,2) [2025-01-16 15:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262024', 'tblTempUsageDetail_20' ) start [2025-01-16 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262024', 'tblTempUsageDetail_20' ) end [2025-01-16 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:57:29] Production.INFO: ==21906== Releasing lock... [2025-01-16 15:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:57:29] Production.INFO: 73 MB #Memory Used# [2025-01-16 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:58:04 [end_date_ymd] => 2025-01-16 15:58:04 [RateCDR] => 1 ) [2025-01-16 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:58:04' and `end` < '2025-01-16 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:58:21] Production.INFO: count ==6000 [2025-01-16 15:58:23] Production.ERROR: pbx CDR StartTime 2025-01-16 12:58:04 - End Time 2025-01-16 15:58:04 [2025-01-16 15:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262029', 'tblTempUsageDetail_20' ) start [2025-01-16 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262029', 'tblTempUsageDetail_20' ) end [2025-01-16 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262029', 'tblTempVendorCDR_20' ) start [2025-01-16 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262029', 'tblTempVendorCDR_20' ) end [2025-01-16 15:58:24] Production.INFO: ProcessCDR(1,14262029,1,1,2) [2025-01-16 15:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262029', 'tblTempUsageDetail_20' ) start [2025-01-16 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262029', 'tblTempUsageDetail_20' ) end [2025-01-16 15:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:58:29] Production.INFO: ==22002== Releasing lock... [2025-01-16 15:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:58:29] Production.INFO: 73 MB #Memory Used# [2025-01-16 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 12:59:05 [end_date_ymd] => 2025-01-16 15:59:05 [RateCDR] => 1 ) [2025-01-16 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 12:59:05' and `end` < '2025-01-16 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 15:59:19] Production.INFO: count ==6008 [2025-01-16 15:59:22] Production.ERROR: pbx CDR StartTime 2025-01-16 12:59:05 - End Time 2025-01-16 15:59:05 [2025-01-16 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262034', 'tblTempUsageDetail_20' ) start [2025-01-16 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262034', 'tblTempUsageDetail_20' ) end [2025-01-16 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262034', 'tblTempVendorCDR_20' ) start [2025-01-16 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262034', 'tblTempVendorCDR_20' ) end [2025-01-16 15:59:22] Production.INFO: ProcessCDR(1,14262034,1,1,2) [2025-01-16 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262034', 'tblTempUsageDetail_20' ) start [2025-01-16 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262034', 'tblTempUsageDetail_20' ) end [2025-01-16 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 15:59:27] Production.INFO: ==22100== Releasing lock... [2025-01-16 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 15:59:27] Production.INFO: 73 MB #Memory Used# [2025-01-16 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:00:06 [end_date_ymd] => 2025-01-16 16:00:06 [RateCDR] => 1 ) [2025-01-16 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:00:06' and `end` < '2025-01-16 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:00:26] Production.INFO: count ==6010 [2025-01-16 16:00:29] Production.ERROR: pbx CDR StartTime 2025-01-16 13:00:06 - End Time 2025-01-16 16:00:06 [2025-01-16 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262039', 'tblTempUsageDetail_20' ) start [2025-01-16 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262039', 'tblTempUsageDetail_20' ) end [2025-01-16 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262039', 'tblTempVendorCDR_20' ) start [2025-01-16 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262039', 'tblTempVendorCDR_20' ) end [2025-01-16 16:00:29] Production.INFO: ProcessCDR(1,14262039,1,1,2) [2025-01-16 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262039', 'tblTempUsageDetail_20' ) start [2025-01-16 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262039', 'tblTempUsageDetail_20' ) end [2025-01-16 16:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:00:34] Production.INFO: ==22199== Releasing lock... [2025-01-16 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:00:34] Production.INFO: 73 MB #Memory Used# [2025-01-16 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:01:05 [end_date_ymd] => 2025-01-16 16:01:05 [RateCDR] => 1 ) [2025-01-16 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:01:05' and `end` < '2025-01-16 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:01:24] Production.INFO: count ==5927 [2025-01-16 16:01:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:01:05 - End Time 2025-01-16 16:01:05 [2025-01-16 16:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262045', 'tblTempUsageDetail_20' ) start [2025-01-16 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262045', 'tblTempUsageDetail_20' ) end [2025-01-16 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262045', 'tblTempVendorCDR_20' ) start [2025-01-16 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262045', 'tblTempVendorCDR_20' ) end [2025-01-16 16:01:27] Production.INFO: ProcessCDR(1,14262045,1,1,2) [2025-01-16 16:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262045', 'tblTempUsageDetail_20' ) start [2025-01-16 16:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262045', 'tblTempUsageDetail_20' ) end [2025-01-16 16:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:01:32] Production.INFO: ==22310== Releasing lock... [2025-01-16 16:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:01:32] Production.INFO: 72.5 MB #Memory Used# [2025-01-16 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:02:05 [end_date_ymd] => 2025-01-16 16:02:05 [RateCDR] => 1 ) [2025-01-16 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:02:05' and `end` < '2025-01-16 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:02:22] Production.INFO: count ==5899 [2025-01-16 16:02:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:02:05 - End Time 2025-01-16 16:02:05 [2025-01-16 16:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262050', 'tblTempUsageDetail_20' ) start [2025-01-16 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262050', 'tblTempUsageDetail_20' ) end [2025-01-16 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262050', 'tblTempVendorCDR_20' ) start [2025-01-16 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262050', 'tblTempVendorCDR_20' ) end [2025-01-16 16:02:25] Production.INFO: ProcessCDR(1,14262050,1,1,2) [2025-01-16 16:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262050', 'tblTempUsageDetail_20' ) start [2025-01-16 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262050', 'tblTempUsageDetail_20' ) end [2025-01-16 16:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:02:31] Production.INFO: ==22403== Releasing lock... [2025-01-16 16:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:02:31] Production.INFO: 72.25 MB #Memory Used# [2025-01-16 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:03:05 [end_date_ymd] => 2025-01-16 16:03:05 [RateCDR] => 1 ) [2025-01-16 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:03:05' and `end` < '2025-01-16 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:03:22] Production.INFO: count ==5870 [2025-01-16 16:03:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:03:05 - End Time 2025-01-16 16:03:05 [2025-01-16 16:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262055', 'tblTempUsageDetail_20' ) start [2025-01-16 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262055', 'tblTempUsageDetail_20' ) end [2025-01-16 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262055', 'tblTempVendorCDR_20' ) start [2025-01-16 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262055', 'tblTempVendorCDR_20' ) end [2025-01-16 16:03:25] Production.INFO: ProcessCDR(1,14262055,1,1,2) [2025-01-16 16:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262055', 'tblTempUsageDetail_20' ) start [2025-01-16 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262055', 'tblTempUsageDetail_20' ) end [2025-01-16 16:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:03:29] Production.INFO: ==22539== Releasing lock... [2025-01-16 16:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:03:29] Production.INFO: 72 MB #Memory Used# [2025-01-16 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:04:04 [end_date_ymd] => 2025-01-16 16:04:04 [RateCDR] => 1 ) [2025-01-16 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:04:04' and `end` < '2025-01-16 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:04:33] Production.INFO: count ==5859 [2025-01-16 16:04:36] Production.ERROR: pbx CDR StartTime 2025-01-16 13:04:04 - End Time 2025-01-16 16:04:04 [2025-01-16 16:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262060', 'tblTempUsageDetail_20' ) start [2025-01-16 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262060', 'tblTempUsageDetail_20' ) end [2025-01-16 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262060', 'tblTempVendorCDR_20' ) start [2025-01-16 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262060', 'tblTempVendorCDR_20' ) end [2025-01-16 16:04:36] Production.INFO: ProcessCDR(1,14262060,1,1,2) [2025-01-16 16:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:04:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:04:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:04:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262060', 'tblTempUsageDetail_20' ) start [2025-01-16 16:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262060', 'tblTempUsageDetail_20' ) end [2025-01-16 16:04:41] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:04:41] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:04:41] Production.INFO: ==22639== Releasing lock... [2025-01-16 16:04:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:04:41] Production.INFO: 71.75 MB #Memory Used# [2025-01-16 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:05:05 [end_date_ymd] => 2025-01-16 16:05:05 [RateCDR] => 1 ) [2025-01-16 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:05:05' and `end` < '2025-01-16 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:05:23] Production.INFO: count ==5815 [2025-01-16 16:05:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:05:05 - End Time 2025-01-16 16:05:05 [2025-01-16 16:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262065', 'tblTempUsageDetail_20' ) start [2025-01-16 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262065', 'tblTempUsageDetail_20' ) end [2025-01-16 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262065', 'tblTempVendorCDR_20' ) start [2025-01-16 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262065', 'tblTempVendorCDR_20' ) end [2025-01-16 16:05:26] Production.INFO: ProcessCDR(1,14262065,1,1,2) [2025-01-16 16:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262065', 'tblTempUsageDetail_20' ) start [2025-01-16 16:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262065', 'tblTempUsageDetail_20' ) end [2025-01-16 16:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:05:31] Production.INFO: ==22743== Releasing lock... [2025-01-16 16:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:05:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-16 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:06:06 [end_date_ymd] => 2025-01-16 16:06:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 13:06:06' and `end` < '2025-01-16 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-01-16 16:06:19] Production.INFO: count ==5809 [2025-01-16 16:06:21] Production.ERROR: pbx CDR StartTime 2025-01-16 13:06:06 - End Time 2025-01-16 16:06:06 [2025-01-16 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262070', 'tblTempUsageDetail_20' ) start [2025-01-16 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262070', 'tblTempUsageDetail_20' ) end [2025-01-16 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262070', 'tblTempVendorCDR_20' ) start [2025-01-16 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262070', 'tblTempVendorCDR_20' ) end [2025-01-16 16:06:22] Production.INFO: ProcessCDR(1,14262070,1,1,2) [2025-01-16 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262070', 'tblTempUsageDetail_20' ) start [2025-01-16 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262070', 'tblTempUsageDetail_20' ) end [2025-01-16 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:06:26] Production.INFO: ==22845== Releasing lock... [2025-01-16 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:06:26] Production.INFO: 71.5 MB #Memory Used# [2025-01-16 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:07:05 [end_date_ymd] => 2025-01-16 16:07:05 [RateCDR] => 1 ) [2025-01-16 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:07:05' and `end` < '2025-01-16 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:07:19] Production.INFO: count ==5785 [2025-01-16 16:07:21] Production.ERROR: pbx CDR StartTime 2025-01-16 13:07:05 - End Time 2025-01-16 16:07:05 [2025-01-16 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262075', 'tblTempUsageDetail_20' ) start [2025-01-16 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262075', 'tblTempUsageDetail_20' ) end [2025-01-16 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262075', 'tblTempVendorCDR_20' ) start [2025-01-16 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262075', 'tblTempVendorCDR_20' ) end [2025-01-16 16:07:22] Production.INFO: ProcessCDR(1,14262075,1,1,2) [2025-01-16 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262075', 'tblTempUsageDetail_20' ) start [2025-01-16 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262075', 'tblTempUsageDetail_20' ) end [2025-01-16 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:07:26] Production.INFO: ==22942== Releasing lock... [2025-01-16 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:07:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-16 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:08:05 [end_date_ymd] => 2025-01-16 16:08:05 [RateCDR] => 1 ) [2025-01-16 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:08:05' and `end` < '2025-01-16 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:08:19] Production.INFO: count ==5746 [2025-01-16 16:08:22] Production.ERROR: pbx CDR StartTime 2025-01-16 13:08:05 - End Time 2025-01-16 16:08:05 [2025-01-16 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262080', 'tblTempUsageDetail_20' ) start [2025-01-16 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262080', 'tblTempUsageDetail_20' ) end [2025-01-16 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262080', 'tblTempVendorCDR_20' ) start [2025-01-16 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262080', 'tblTempVendorCDR_20' ) end [2025-01-16 16:08:22] Production.INFO: ProcessCDR(1,14262080,1,1,2) [2025-01-16 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262080', 'tblTempUsageDetail_20' ) start [2025-01-16 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262080', 'tblTempUsageDetail_20' ) end [2025-01-16 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:08:25] Production.INFO: ==23040== Releasing lock... [2025-01-16 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:08:25] Production.INFO: 71 MB #Memory Used# [2025-01-16 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:09:05 [end_date_ymd] => 2025-01-16 16:09:05 [RateCDR] => 1 ) [2025-01-16 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:09:05' and `end` < '2025-01-16 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:09:19] Production.INFO: count ==5712 [2025-01-16 16:09:21] Production.ERROR: pbx CDR StartTime 2025-01-16 13:09:05 - End Time 2025-01-16 16:09:05 [2025-01-16 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262085', 'tblTempUsageDetail_20' ) start [2025-01-16 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262085', 'tblTempUsageDetail_20' ) end [2025-01-16 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262085', 'tblTempVendorCDR_20' ) start [2025-01-16 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262085', 'tblTempVendorCDR_20' ) end [2025-01-16 16:09:22] Production.INFO: ProcessCDR(1,14262085,1,1,2) [2025-01-16 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262085', 'tblTempUsageDetail_20' ) start [2025-01-16 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262085', 'tblTempUsageDetail_20' ) end [2025-01-16 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:09:27] Production.INFO: ==23139== Releasing lock... [2025-01-16 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:09:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-16 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:10:06 [end_date_ymd] => 2025-01-16 16:10:06 [RateCDR] => 1 ) [2025-01-16 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:10:06' and `end` < '2025-01-16 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:10:19] Production.INFO: count ==5693 [2025-01-16 16:10:22] Production.ERROR: pbx CDR StartTime 2025-01-16 13:10:06 - End Time 2025-01-16 16:10:06 [2025-01-16 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262090', 'tblTempUsageDetail_20' ) start [2025-01-16 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262090', 'tblTempUsageDetail_20' ) end [2025-01-16 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262090', 'tblTempVendorCDR_20' ) start [2025-01-16 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262090', 'tblTempVendorCDR_20' ) end [2025-01-16 16:10:22] Production.INFO: ProcessCDR(1,14262090,1,1,2) [2025-01-16 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262090', 'tblTempUsageDetail_20' ) start [2025-01-16 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262090', 'tblTempUsageDetail_20' ) end [2025-01-16 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:10:27] Production.INFO: ==23238== Releasing lock... [2025-01-16 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:10:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-16 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:11:05 [end_date_ymd] => 2025-01-16 16:11:05 [RateCDR] => 1 ) [2025-01-16 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:11:05' and `end` < '2025-01-16 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:11:20] Production.INFO: count ==5689 [2025-01-16 16:11:23] Production.ERROR: pbx CDR StartTime 2025-01-16 13:11:05 - End Time 2025-01-16 16:11:05 [2025-01-16 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262096', 'tblTempUsageDetail_20' ) start [2025-01-16 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262096', 'tblTempUsageDetail_20' ) end [2025-01-16 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262096', 'tblTempVendorCDR_20' ) start [2025-01-16 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262096', 'tblTempVendorCDR_20' ) end [2025-01-16 16:11:23] Production.INFO: ProcessCDR(1,14262096,1,1,2) [2025-01-16 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262096', 'tblTempUsageDetail_20' ) start [2025-01-16 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262096', 'tblTempUsageDetail_20' ) end [2025-01-16 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:11:28] Production.INFO: ==23336== Releasing lock... [2025-01-16 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:11:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:12:05 [end_date_ymd] => 2025-01-16 16:12:05 [RateCDR] => 1 ) [2025-01-16 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:12:05' and `end` < '2025-01-16 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:12:18] Production.INFO: count ==5685 [2025-01-16 16:12:21] Production.ERROR: pbx CDR StartTime 2025-01-16 13:12:05 - End Time 2025-01-16 16:12:05 [2025-01-16 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262101', 'tblTempUsageDetail_20' ) start [2025-01-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262101', 'tblTempUsageDetail_20' ) end [2025-01-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262101', 'tblTempVendorCDR_20' ) start [2025-01-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262101', 'tblTempVendorCDR_20' ) end [2025-01-16 16:12:21] Production.INFO: ProcessCDR(1,14262101,1,1,2) [2025-01-16 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262101', 'tblTempUsageDetail_20' ) start [2025-01-16 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262101', 'tblTempUsageDetail_20' ) end [2025-01-16 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:12:26] Production.INFO: ==23434== Releasing lock... [2025-01-16 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:12:26] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:13:05 [end_date_ymd] => 2025-01-16 16:13:05 [RateCDR] => 1 ) [2025-01-16 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:13:05' and `end` < '2025-01-16 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:13:19] Production.INFO: count ==5658 [2025-01-16 16:13:22] Production.ERROR: pbx CDR StartTime 2025-01-16 13:13:05 - End Time 2025-01-16 16:13:05 [2025-01-16 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262106', 'tblTempUsageDetail_20' ) start [2025-01-16 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262106', 'tblTempUsageDetail_20' ) end [2025-01-16 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262106', 'tblTempVendorCDR_20' ) start [2025-01-16 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262106', 'tblTempVendorCDR_20' ) end [2025-01-16 16:13:22] Production.INFO: ProcessCDR(1,14262106,1,1,2) [2025-01-16 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262106', 'tblTempUsageDetail_20' ) start [2025-01-16 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262106', 'tblTempUsageDetail_20' ) end [2025-01-16 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:13:27] Production.INFO: ==23530== Releasing lock... [2025-01-16 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:13:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:14:06 [end_date_ymd] => 2025-01-16 16:14:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 13:14:06' and `end` < '2025-01-16 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-01-16 16:14:20] Production.INFO: count ==5659 [2025-01-16 16:14:22] Production.ERROR: pbx CDR StartTime 2025-01-16 13:14:06 - End Time 2025-01-16 16:14:06 [2025-01-16 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262111', 'tblTempUsageDetail_20' ) start [2025-01-16 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262111', 'tblTempUsageDetail_20' ) end [2025-01-16 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262111', 'tblTempVendorCDR_20' ) start [2025-01-16 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262111', 'tblTempVendorCDR_20' ) end [2025-01-16 16:14:22] Production.INFO: ProcessCDR(1,14262111,1,1,2) [2025-01-16 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262111', 'tblTempUsageDetail_20' ) start [2025-01-16 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262111', 'tblTempUsageDetail_20' ) end [2025-01-16 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:14:27] Production.INFO: ==23630== Releasing lock... [2025-01-16 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:14:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:15:04 [end_date_ymd] => 2025-01-16 16:15:04 [RateCDR] => 1 ) [2025-01-16 16:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:15:04' and `end` < '2025-01-16 16:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:15:23] Production.INFO: count ==5672 [2025-01-16 16:15:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:15:04 - End Time 2025-01-16 16:15:04 [2025-01-16 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262115', 'tblTempUsageDetail_20' ) start [2025-01-16 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262115', 'tblTempUsageDetail_20' ) end [2025-01-16 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262115', 'tblTempVendorCDR_20' ) start [2025-01-16 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262115', 'tblTempVendorCDR_20' ) end [2025-01-16 16:15:26] Production.INFO: ProcessCDR(1,14262115,1,1,2) [2025-01-16 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262115', 'tblTempUsageDetail_20' ) start [2025-01-16 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262115', 'tblTempUsageDetail_20' ) end [2025-01-16 16:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:15:31] Production.INFO: ==23725== Releasing lock... [2025-01-16 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:15:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:16:05 [end_date_ymd] => 2025-01-16 16:16:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 13:16:05' and `end` < '2025-01-16 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-01-16 16:16:20] Production.INFO: count ==5673 [2025-01-16 16:16:23] Production.ERROR: pbx CDR StartTime 2025-01-16 13:16:05 - End Time 2025-01-16 16:16:05 [2025-01-16 16:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262121', 'tblTempUsageDetail_20' ) start [2025-01-16 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262121', 'tblTempUsageDetail_20' ) end [2025-01-16 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262121', 'tblTempVendorCDR_20' ) start [2025-01-16 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262121', 'tblTempVendorCDR_20' ) end [2025-01-16 16:16:23] Production.INFO: ProcessCDR(1,14262121,1,1,2) [2025-01-16 16:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262121', 'tblTempUsageDetail_20' ) start [2025-01-16 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262121', 'tblTempUsageDetail_20' ) end [2025-01-16 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:16:28] Production.INFO: ==23825== Releasing lock... [2025-01-16 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:16:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:17:05 [end_date_ymd] => 2025-01-16 16:17:05 [RateCDR] => 1 ) [2025-01-16 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:17:05' and `end` < '2025-01-16 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:17:25] Production.INFO: count ==5660 [2025-01-16 16:17:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:17:05 - End Time 2025-01-16 16:17:05 [2025-01-16 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262126', 'tblTempUsageDetail_20' ) start [2025-01-16 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262126', 'tblTempUsageDetail_20' ) end [2025-01-16 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262126', 'tblTempVendorCDR_20' ) start [2025-01-16 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262126', 'tblTempVendorCDR_20' ) end [2025-01-16 16:17:27] Production.INFO: ProcessCDR(1,14262126,1,1,2) [2025-01-16 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262126', 'tblTempUsageDetail_20' ) start [2025-01-16 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262126', 'tblTempUsageDetail_20' ) end [2025-01-16 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:17:32] Production.INFO: ==23918== Releasing lock... [2025-01-16 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:17:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:18:05 [end_date_ymd] => 2025-01-16 16:18:05 [RateCDR] => 1 ) [2025-01-16 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:18:05' and `end` < '2025-01-16 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:18:24] Production.INFO: count ==5668 [2025-01-16 16:18:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:18:05 - End Time 2025-01-16 16:18:05 [2025-01-16 16:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262131', 'tblTempUsageDetail_20' ) start [2025-01-16 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262131', 'tblTempUsageDetail_20' ) end [2025-01-16 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262131', 'tblTempVendorCDR_20' ) start [2025-01-16 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262131', 'tblTempVendorCDR_20' ) end [2025-01-16 16:18:27] Production.INFO: ProcessCDR(1,14262131,1,1,2) [2025-01-16 16:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262131', 'tblTempUsageDetail_20' ) start [2025-01-16 16:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262131', 'tblTempUsageDetail_20' ) end [2025-01-16 16:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:18:32] Production.INFO: ==24029== Releasing lock... [2025-01-16 16:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:18:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:19:06 [end_date_ymd] => 2025-01-16 16:19:06 [RateCDR] => 1 ) [2025-01-16 16:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:19:06' and `end` < '2025-01-16 16:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:19:23] Production.INFO: count ==5669 [2025-01-16 16:19:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:19:06 - End Time 2025-01-16 16:19:06 [2025-01-16 16:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262136', 'tblTempUsageDetail_20' ) start [2025-01-16 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262136', 'tblTempUsageDetail_20' ) end [2025-01-16 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262136', 'tblTempVendorCDR_20' ) start [2025-01-16 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262136', 'tblTempVendorCDR_20' ) end [2025-01-16 16:19:26] Production.INFO: ProcessCDR(1,14262136,1,1,2) [2025-01-16 16:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262136', 'tblTempUsageDetail_20' ) start [2025-01-16 16:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262136', 'tblTempUsageDetail_20' ) end [2025-01-16 16:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:19:31] Production.INFO: ==24170== Releasing lock... [2025-01-16 16:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:19:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:20:06 [end_date_ymd] => 2025-01-16 16:20:06 [RateCDR] => 1 ) [2025-01-16 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:20:06' and `end` < '2025-01-16 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:20:24] Production.INFO: count ==5675 [2025-01-16 16:20:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:20:06 - End Time 2025-01-16 16:20:06 [2025-01-16 16:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262142', 'tblTempUsageDetail_20' ) start [2025-01-16 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262142', 'tblTempUsageDetail_20' ) end [2025-01-16 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262142', 'tblTempVendorCDR_20' ) start [2025-01-16 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262142', 'tblTempVendorCDR_20' ) end [2025-01-16 16:20:27] Production.INFO: ProcessCDR(1,14262142,1,1,2) [2025-01-16 16:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262142', 'tblTempUsageDetail_20' ) start [2025-01-16 16:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262142', 'tblTempUsageDetail_20' ) end [2025-01-16 16:20:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:20:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:20:31] Production.INFO: ==24273== Releasing lock... [2025-01-16 16:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:20:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:21:05 [end_date_ymd] => 2025-01-16 16:21:05 [RateCDR] => 1 ) [2025-01-16 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:21:05' and `end` < '2025-01-16 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:21:26] Production.INFO: count ==5670 [2025-01-16 16:21:28] Production.ERROR: pbx CDR StartTime 2025-01-16 13:21:05 - End Time 2025-01-16 16:21:05 [2025-01-16 16:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262147', 'tblTempUsageDetail_20' ) start [2025-01-16 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262147', 'tblTempUsageDetail_20' ) end [2025-01-16 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262147', 'tblTempVendorCDR_20' ) start [2025-01-16 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262147', 'tblTempVendorCDR_20' ) end [2025-01-16 16:21:28] Production.INFO: ProcessCDR(1,14262147,1,1,2) [2025-01-16 16:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262147', 'tblTempUsageDetail_20' ) start [2025-01-16 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262147', 'tblTempUsageDetail_20' ) end [2025-01-16 16:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:21:33] Production.INFO: ==24372== Releasing lock... [2025-01-16 16:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:21:33] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:22:05 [end_date_ymd] => 2025-01-16 16:22:05 [RateCDR] => 1 ) [2025-01-16 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:22:05' and `end` < '2025-01-16 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:22:23] Production.INFO: count ==5669 [2025-01-16 16:22:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:22:05 - End Time 2025-01-16 16:22:05 [2025-01-16 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262152', 'tblTempUsageDetail_20' ) start [2025-01-16 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262152', 'tblTempUsageDetail_20' ) end [2025-01-16 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262152', 'tblTempVendorCDR_20' ) start [2025-01-16 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262152', 'tblTempVendorCDR_20' ) end [2025-01-16 16:22:25] Production.INFO: ProcessCDR(1,14262152,1,1,2) [2025-01-16 16:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262152', 'tblTempUsageDetail_20' ) start [2025-01-16 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262152', 'tblTempUsageDetail_20' ) end [2025-01-16 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:22:30] Production.INFO: ==24467== Releasing lock... [2025-01-16 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:22:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-16 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:23:05 [end_date_ymd] => 2025-01-16 16:23:05 [RateCDR] => 1 ) [2025-01-16 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:23:05' and `end` < '2025-01-16 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:23:24] Production.INFO: count ==5657 [2025-01-16 16:23:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:23:05 - End Time 2025-01-16 16:23:05 [2025-01-16 16:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262157', 'tblTempUsageDetail_20' ) start [2025-01-16 16:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262157', 'tblTempUsageDetail_20' ) end [2025-01-16 16:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262157', 'tblTempVendorCDR_20' ) start [2025-01-16 16:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262157', 'tblTempVendorCDR_20' ) end [2025-01-16 16:23:27] Production.INFO: ProcessCDR(1,14262157,1,1,2) [2025-01-16 16:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262157', 'tblTempUsageDetail_20' ) start [2025-01-16 16:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262157', 'tblTempUsageDetail_20' ) end [2025-01-16 16:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:23:32] Production.INFO: ==24564== Releasing lock... [2025-01-16 16:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:23:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:24:05 [end_date_ymd] => 2025-01-16 16:24:05 [RateCDR] => 1 ) [2025-01-16 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:24:05' and `end` < '2025-01-16 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:24:23] Production.INFO: count ==5640 [2025-01-16 16:24:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:24:05 - End Time 2025-01-16 16:24:05 [2025-01-16 16:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262162', 'tblTempUsageDetail_20' ) start [2025-01-16 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262162', 'tblTempUsageDetail_20' ) end [2025-01-16 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262162', 'tblTempVendorCDR_20' ) start [2025-01-16 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262162', 'tblTempVendorCDR_20' ) end [2025-01-16 16:24:26] Production.INFO: ProcessCDR(1,14262162,1,1,2) [2025-01-16 16:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262162', 'tblTempUsageDetail_20' ) start [2025-01-16 16:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262162', 'tblTempUsageDetail_20' ) end [2025-01-16 16:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:24:31] Production.INFO: ==24662== Releasing lock... [2025-01-16 16:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:24:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:25:05 [end_date_ymd] => 2025-01-16 16:25:05 [RateCDR] => 1 ) [2025-01-16 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:25:05' and `end` < '2025-01-16 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:25:24] Production.INFO: count ==5626 [2025-01-16 16:25:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:25:05 - End Time 2025-01-16 16:25:05 [2025-01-16 16:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262167', 'tblTempUsageDetail_20' ) start [2025-01-16 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262167', 'tblTempUsageDetail_20' ) end [2025-01-16 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262167', 'tblTempVendorCDR_20' ) start [2025-01-16 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262167', 'tblTempVendorCDR_20' ) end [2025-01-16 16:25:26] Production.INFO: ProcessCDR(1,14262167,1,1,2) [2025-01-16 16:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262167', 'tblTempUsageDetail_20' ) start [2025-01-16 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262167', 'tblTempUsageDetail_20' ) end [2025-01-16 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:25:31] Production.INFO: ==24760== Releasing lock... [2025-01-16 16:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:25:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:26:05 [end_date_ymd] => 2025-01-16 16:26:05 [RateCDR] => 1 ) [2025-01-16 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:26:05' and `end` < '2025-01-16 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:26:22] Production.INFO: count ==5632 [2025-01-16 16:26:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:26:05 - End Time 2025-01-16 16:26:05 [2025-01-16 16:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262172', 'tblTempUsageDetail_20' ) start [2025-01-16 16:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262172', 'tblTempUsageDetail_20' ) end [2025-01-16 16:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262172', 'tblTempVendorCDR_20' ) start [2025-01-16 16:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262172', 'tblTempVendorCDR_20' ) end [2025-01-16 16:26:24] Production.INFO: ProcessCDR(1,14262172,1,1,2) [2025-01-16 16:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262172', 'tblTempUsageDetail_20' ) start [2025-01-16 16:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262172', 'tblTempUsageDetail_20' ) end [2025-01-16 16:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:26:29] Production.INFO: ==24859== Releasing lock... [2025-01-16 16:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:26:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:27:05 [end_date_ymd] => 2025-01-16 16:27:05 [RateCDR] => 1 ) [2025-01-16 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:27:05' and `end` < '2025-01-16 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:27:22] Production.INFO: count ==5630 [2025-01-16 16:27:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:27:05 - End Time 2025-01-16 16:27:05 [2025-01-16 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262177', 'tblTempUsageDetail_20' ) start [2025-01-16 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262177', 'tblTempUsageDetail_20' ) end [2025-01-16 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262177', 'tblTempVendorCDR_20' ) start [2025-01-16 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262177', 'tblTempVendorCDR_20' ) end [2025-01-16 16:27:25] Production.INFO: ProcessCDR(1,14262177,1,1,2) [2025-01-16 16:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262177', 'tblTempUsageDetail_20' ) start [2025-01-16 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262177', 'tblTempUsageDetail_20' ) end [2025-01-16 16:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:27:29] Production.INFO: ==24955== Releasing lock... [2025-01-16 16:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:27:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:28:05 [end_date_ymd] => 2025-01-16 16:28:05 [RateCDR] => 1 ) [2025-01-16 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:28:05' and `end` < '2025-01-16 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:28:33] Production.INFO: count ==5614 [2025-01-16 16:28:35] Production.ERROR: pbx CDR StartTime 2025-01-16 13:28:05 - End Time 2025-01-16 16:28:05 [2025-01-16 16:28:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262182', 'tblTempUsageDetail_20' ) start [2025-01-16 16:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262182', 'tblTempUsageDetail_20' ) end [2025-01-16 16:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262182', 'tblTempVendorCDR_20' ) start [2025-01-16 16:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262182', 'tblTempVendorCDR_20' ) end [2025-01-16 16:28:35] Production.INFO: ProcessCDR(1,14262182,1,1,2) [2025-01-16 16:28:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:28:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:28:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:28:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:28:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262182', 'tblTempUsageDetail_20' ) start [2025-01-16 16:28:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262182', 'tblTempUsageDetail_20' ) end [2025-01-16 16:28:40] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:28:40] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:28:40] Production.INFO: ==25054== Releasing lock... [2025-01-16 16:28:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:28:40] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:29:05 [end_date_ymd] => 2025-01-16 16:29:05 [RateCDR] => 1 ) [2025-01-16 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:29:05' and `end` < '2025-01-16 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:29:27] Production.INFO: count ==5629 [2025-01-16 16:29:30] Production.ERROR: pbx CDR StartTime 2025-01-16 13:29:05 - End Time 2025-01-16 16:29:05 [2025-01-16 16:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262187', 'tblTempUsageDetail_20' ) start [2025-01-16 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262187', 'tblTempUsageDetail_20' ) end [2025-01-16 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262187', 'tblTempVendorCDR_20' ) start [2025-01-16 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262187', 'tblTempVendorCDR_20' ) end [2025-01-16 16:29:30] Production.INFO: ProcessCDR(1,14262187,1,1,2) [2025-01-16 16:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262187', 'tblTempUsageDetail_20' ) start [2025-01-16 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262187', 'tblTempUsageDetail_20' ) end [2025-01-16 16:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:29:35] Production.INFO: ==25155== Releasing lock... [2025-01-16 16:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:29:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:30:06 [end_date_ymd] => 2025-01-16 16:30:06 [RateCDR] => 1 ) [2025-01-16 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:30:06' and `end` < '2025-01-16 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:30:25] Production.INFO: count ==5601 [2025-01-16 16:30:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:30:06 - End Time 2025-01-16 16:30:06 [2025-01-16 16:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262193', 'tblTempUsageDetail_20' ) start [2025-01-16 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262193', 'tblTempUsageDetail_20' ) end [2025-01-16 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262193', 'tblTempVendorCDR_20' ) start [2025-01-16 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262193', 'tblTempVendorCDR_20' ) end [2025-01-16 16:30:28] Production.INFO: ProcessCDR(1,14262193,1,1,2) [2025-01-16 16:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262193', 'tblTempUsageDetail_20' ) start [2025-01-16 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262193', 'tblTempUsageDetail_20' ) end [2025-01-16 16:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:30:32] Production.INFO: ==25258== Releasing lock... [2025-01-16 16:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:30:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:31:05 [end_date_ymd] => 2025-01-16 16:31:05 [RateCDR] => 1 ) [2025-01-16 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:31:05' and `end` < '2025-01-16 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:31:21] Production.INFO: count ==5627 [2025-01-16 16:31:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:31:05 - End Time 2025-01-16 16:31:05 [2025-01-16 16:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262198', 'tblTempUsageDetail_20' ) start [2025-01-16 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262198', 'tblTempUsageDetail_20' ) end [2025-01-16 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262198', 'tblTempVendorCDR_20' ) start [2025-01-16 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262198', 'tblTempVendorCDR_20' ) end [2025-01-16 16:31:24] Production.INFO: ProcessCDR(1,14262198,1,1,2) [2025-01-16 16:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262198', 'tblTempUsageDetail_20' ) start [2025-01-16 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262198', 'tblTempUsageDetail_20' ) end [2025-01-16 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:31:29] Production.INFO: ==25357== Releasing lock... [2025-01-16 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:31:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:32:05 [end_date_ymd] => 2025-01-16 16:32:05 [RateCDR] => 1 ) [2025-01-16 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:32:05' and `end` < '2025-01-16 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:32:25] Production.INFO: count ==5631 [2025-01-16 16:32:28] Production.ERROR: pbx CDR StartTime 2025-01-16 13:32:05 - End Time 2025-01-16 16:32:05 [2025-01-16 16:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262203', 'tblTempUsageDetail_20' ) start [2025-01-16 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262203', 'tblTempUsageDetail_20' ) end [2025-01-16 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262203', 'tblTempVendorCDR_20' ) start [2025-01-16 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262203', 'tblTempVendorCDR_20' ) end [2025-01-16 16:32:28] Production.INFO: ProcessCDR(1,14262203,1,1,2) [2025-01-16 16:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262203', 'tblTempUsageDetail_20' ) start [2025-01-16 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262203', 'tblTempUsageDetail_20' ) end [2025-01-16 16:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:32:33] Production.INFO: ==25456== Releasing lock... [2025-01-16 16:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:32:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:33:04 [end_date_ymd] => 2025-01-16 16:33:04 [RateCDR] => 1 ) [2025-01-16 16:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:33:04' and `end` < '2025-01-16 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:33:21] Production.INFO: count ==5617 [2025-01-16 16:33:23] Production.ERROR: pbx CDR StartTime 2025-01-16 13:33:04 - End Time 2025-01-16 16:33:04 [2025-01-16 16:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262208', 'tblTempUsageDetail_20' ) start [2025-01-16 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262208', 'tblTempUsageDetail_20' ) end [2025-01-16 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262208', 'tblTempVendorCDR_20' ) start [2025-01-16 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262208', 'tblTempVendorCDR_20' ) end [2025-01-16 16:33:24] Production.INFO: ProcessCDR(1,14262208,1,1,2) [2025-01-16 16:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262208', 'tblTempUsageDetail_20' ) start [2025-01-16 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262208', 'tblTempUsageDetail_20' ) end [2025-01-16 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:33:28] Production.INFO: ==25553== Releasing lock... [2025-01-16 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:33:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:34:05 [end_date_ymd] => 2025-01-16 16:34:05 [RateCDR] => 1 ) [2025-01-16 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:34:05' and `end` < '2025-01-16 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:34:20] Production.INFO: count ==5621 [2025-01-16 16:34:22] Production.ERROR: pbx CDR StartTime 2025-01-16 13:34:05 - End Time 2025-01-16 16:34:05 [2025-01-16 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262213', 'tblTempUsageDetail_20' ) start [2025-01-16 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262213', 'tblTempUsageDetail_20' ) end [2025-01-16 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262213', 'tblTempVendorCDR_20' ) start [2025-01-16 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262213', 'tblTempVendorCDR_20' ) end [2025-01-16 16:34:23] Production.INFO: ProcessCDR(1,14262213,1,1,2) [2025-01-16 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262213', 'tblTempUsageDetail_20' ) start [2025-01-16 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262213', 'tblTempUsageDetail_20' ) end [2025-01-16 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:34:28] Production.INFO: ==25657== Releasing lock... [2025-01-16 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:34:28] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:35:05 [end_date_ymd] => 2025-01-16 16:35:05 [RateCDR] => 1 ) [2025-01-16 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:35:05' and `end` < '2025-01-16 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:35:23] Production.INFO: count ==5629 [2025-01-16 16:35:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:35:05 - End Time 2025-01-16 16:35:05 [2025-01-16 16:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262218', 'tblTempUsageDetail_20' ) start [2025-01-16 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262218', 'tblTempUsageDetail_20' ) end [2025-01-16 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262218', 'tblTempVendorCDR_20' ) start [2025-01-16 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262218', 'tblTempVendorCDR_20' ) end [2025-01-16 16:35:25] Production.INFO: ProcessCDR(1,14262218,1,1,2) [2025-01-16 16:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262218', 'tblTempUsageDetail_20' ) start [2025-01-16 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262218', 'tblTempUsageDetail_20' ) end [2025-01-16 16:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:35:31] Production.INFO: ==25795== Releasing lock... [2025-01-16 16:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:35:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:36:05 [end_date_ymd] => 2025-01-16 16:36:05 [RateCDR] => 1 ) [2025-01-16 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:36:05' and `end` < '2025-01-16 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:36:24] Production.INFO: count ==5603 [2025-01-16 16:36:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:36:05 - End Time 2025-01-16 16:36:05 [2025-01-16 16:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262223', 'tblTempUsageDetail_20' ) start [2025-01-16 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262223', 'tblTempUsageDetail_20' ) end [2025-01-16 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262223', 'tblTempVendorCDR_20' ) start [2025-01-16 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262223', 'tblTempVendorCDR_20' ) end [2025-01-16 16:36:27] Production.INFO: ProcessCDR(1,14262223,1,1,2) [2025-01-16 16:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262223', 'tblTempUsageDetail_20' ) start [2025-01-16 16:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262223', 'tblTempUsageDetail_20' ) end [2025-01-16 16:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:36:32] Production.INFO: ==25893== Releasing lock... [2025-01-16 16:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:36:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:37:05 [end_date_ymd] => 2025-01-16 16:37:05 [RateCDR] => 1 ) [2025-01-16 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:37:05' and `end` < '2025-01-16 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:37:25] Production.INFO: count ==5617 [2025-01-16 16:37:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:37:05 - End Time 2025-01-16 16:37:05 [2025-01-16 16:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262228', 'tblTempUsageDetail_20' ) start [2025-01-16 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262228', 'tblTempUsageDetail_20' ) end [2025-01-16 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262228', 'tblTempVendorCDR_20' ) start [2025-01-16 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262228', 'tblTempVendorCDR_20' ) end [2025-01-16 16:37:27] Production.INFO: ProcessCDR(1,14262228,1,1,2) [2025-01-16 16:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262228', 'tblTempUsageDetail_20' ) start [2025-01-16 16:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262228', 'tblTempUsageDetail_20' ) end [2025-01-16 16:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:37:32] Production.INFO: ==25991== Releasing lock... [2025-01-16 16:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:37:32] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:38:05 [end_date_ymd] => 2025-01-16 16:38:05 [RateCDR] => 1 ) [2025-01-16 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:38:05' and `end` < '2025-01-16 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:38:26] Production.INFO: count ==5619 [2025-01-16 16:38:29] Production.ERROR: pbx CDR StartTime 2025-01-16 13:38:05 - End Time 2025-01-16 16:38:05 [2025-01-16 16:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262233', 'tblTempUsageDetail_20' ) start [2025-01-16 16:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262233', 'tblTempUsageDetail_20' ) end [2025-01-16 16:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262233', 'tblTempVendorCDR_20' ) start [2025-01-16 16:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262233', 'tblTempVendorCDR_20' ) end [2025-01-16 16:38:29] Production.INFO: ProcessCDR(1,14262233,1,1,2) [2025-01-16 16:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262233', 'tblTempUsageDetail_20' ) start [2025-01-16 16:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262233', 'tblTempUsageDetail_20' ) end [2025-01-16 16:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:38:34] Production.INFO: ==26091== Releasing lock... [2025-01-16 16:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:38:34] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:39:05 [end_date_ymd] => 2025-01-16 16:39:05 [RateCDR] => 1 ) [2025-01-16 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:39:05' and `end` < '2025-01-16 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:39:21] Production.INFO: count ==5615 [2025-01-16 16:39:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:39:05 - End Time 2025-01-16 16:39:05 [2025-01-16 16:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262238', 'tblTempUsageDetail_20' ) start [2025-01-16 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262238', 'tblTempUsageDetail_20' ) end [2025-01-16 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262238', 'tblTempVendorCDR_20' ) start [2025-01-16 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262238', 'tblTempVendorCDR_20' ) end [2025-01-16 16:39:24] Production.INFO: ProcessCDR(1,14262238,1,1,2) [2025-01-16 16:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262238', 'tblTempUsageDetail_20' ) start [2025-01-16 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262238', 'tblTempUsageDetail_20' ) end [2025-01-16 16:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:39:29] Production.INFO: ==26186== Releasing lock... [2025-01-16 16:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:39:29] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:40:05 [end_date_ymd] => 2025-01-16 16:40:05 [RateCDR] => 1 ) [2025-01-16 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:40:05' and `end` < '2025-01-16 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:40:23] Production.INFO: count ==5619 [2025-01-16 16:40:26] Production.ERROR: pbx CDR StartTime 2025-01-16 13:40:05 - End Time 2025-01-16 16:40:05 [2025-01-16 16:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262244', 'tblTempUsageDetail_20' ) start [2025-01-16 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262244', 'tblTempUsageDetail_20' ) end [2025-01-16 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262244', 'tblTempVendorCDR_20' ) start [2025-01-16 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262244', 'tblTempVendorCDR_20' ) end [2025-01-16 16:40:26] Production.INFO: ProcessCDR(1,14262244,1,1,2) [2025-01-16 16:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262244', 'tblTempUsageDetail_20' ) start [2025-01-16 16:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262244', 'tblTempUsageDetail_20' ) end [2025-01-16 16:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:40:31] Production.INFO: ==26288== Releasing lock... [2025-01-16 16:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:40:31] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:41:05 [end_date_ymd] => 2025-01-16 16:41:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 13:41:05' and `end` < '2025-01-16 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-01-16 16:41:22] Production.INFO: count ==5630 [2025-01-16 16:41:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:41:05 - End Time 2025-01-16 16:41:05 [2025-01-16 16:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262249', 'tblTempUsageDetail_20' ) start [2025-01-16 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262249', 'tblTempUsageDetail_20' ) end [2025-01-16 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262249', 'tblTempVendorCDR_20' ) start [2025-01-16 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262249', 'tblTempVendorCDR_20' ) end [2025-01-16 16:41:25] Production.INFO: ProcessCDR(1,14262249,1,1,2) [2025-01-16 16:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262249', 'tblTempUsageDetail_20' ) start [2025-01-16 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262249', 'tblTempUsageDetail_20' ) end [2025-01-16 16:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:41:30] Production.INFO: ==26387== Releasing lock... [2025-01-16 16:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:41:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-16 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:42:05 [end_date_ymd] => 2025-01-16 16:42:05 [RateCDR] => 1 ) [2025-01-16 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:42:05' and `end` < '2025-01-16 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:42:29] Production.INFO: count ==5604 [2025-01-16 16:42:32] Production.ERROR: pbx CDR StartTime 2025-01-16 13:42:05 - End Time 2025-01-16 16:42:05 [2025-01-16 16:42:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262254', 'tblTempUsageDetail_20' ) start [2025-01-16 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262254', 'tblTempUsageDetail_20' ) end [2025-01-16 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262254', 'tblTempVendorCDR_20' ) start [2025-01-16 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262254', 'tblTempVendorCDR_20' ) end [2025-01-16 16:42:32] Production.INFO: ProcessCDR(1,14262254,1,1,2) [2025-01-16 16:42:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:42:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:42:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262254', 'tblTempUsageDetail_20' ) start [2025-01-16 16:42:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262254', 'tblTempUsageDetail_20' ) end [2025-01-16 16:42:37] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:42:37] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:42:37] Production.INFO: ==26488== Releasing lock... [2025-01-16 16:42:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:42:37] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:43:05 [end_date_ymd] => 2025-01-16 16:43:05 [RateCDR] => 1 ) [2025-01-16 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:43:05' and `end` < '2025-01-16 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:43:27] Production.INFO: count ==5605 [2025-01-16 16:43:29] Production.ERROR: pbx CDR StartTime 2025-01-16 13:43:05 - End Time 2025-01-16 16:43:05 [2025-01-16 16:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262259', 'tblTempUsageDetail_20' ) start [2025-01-16 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262259', 'tblTempUsageDetail_20' ) end [2025-01-16 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262259', 'tblTempVendorCDR_20' ) start [2025-01-16 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262259', 'tblTempVendorCDR_20' ) end [2025-01-16 16:43:29] Production.INFO: ProcessCDR(1,14262259,1,1,2) [2025-01-16 16:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262259', 'tblTempUsageDetail_20' ) start [2025-01-16 16:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262259', 'tblTempUsageDetail_20' ) end [2025-01-16 16:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:43:35] Production.INFO: ==26591== Releasing lock... [2025-01-16 16:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:43:35] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:44:04 [end_date_ymd] => 2025-01-16 16:44:04 [RateCDR] => 1 ) [2025-01-16 16:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:44:04' and `end` < '2025-01-16 16:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:44:23] Production.INFO: count ==5610 [2025-01-16 16:44:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:44:04 - End Time 2025-01-16 16:44:04 [2025-01-16 16:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262264', 'tblTempUsageDetail_20' ) start [2025-01-16 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262264', 'tblTempUsageDetail_20' ) end [2025-01-16 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262264', 'tblTempVendorCDR_20' ) start [2025-01-16 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262264', 'tblTempVendorCDR_20' ) end [2025-01-16 16:44:25] Production.INFO: ProcessCDR(1,14262264,1,1,2) [2025-01-16 16:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262264', 'tblTempUsageDetail_20' ) start [2025-01-16 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262264', 'tblTempUsageDetail_20' ) end [2025-01-16 16:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:44:30] Production.INFO: ==26691== Releasing lock... [2025-01-16 16:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:44:30] Production.INFO: 70 MB #Memory Used# [2025-01-16 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:45:05 [end_date_ymd] => 2025-01-16 16:45:05 [RateCDR] => 1 ) [2025-01-16 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:45:05' and `end` < '2025-01-16 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:45:19] Production.INFO: count ==5580 [2025-01-16 16:45:21] Production.ERROR: pbx CDR StartTime 2025-01-16 13:45:05 - End Time 2025-01-16 16:45:05 [2025-01-16 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262269', 'tblTempUsageDetail_20' ) start [2025-01-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262269', 'tblTempUsageDetail_20' ) end [2025-01-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262269', 'tblTempVendorCDR_20' ) start [2025-01-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262269', 'tblTempVendorCDR_20' ) end [2025-01-16 16:45:21] Production.INFO: ProcessCDR(1,14262269,1,1,2) [2025-01-16 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262269', 'tblTempUsageDetail_20' ) start [2025-01-16 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262269', 'tblTempUsageDetail_20' ) end [2025-01-16 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:45:26] Production.INFO: ==26795== Releasing lock... [2025-01-16 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:45:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:46:05 [end_date_ymd] => 2025-01-16 16:46:05 [RateCDR] => 1 ) [2025-01-16 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:46:05' and `end` < '2025-01-16 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:46:22] Production.INFO: count ==5564 [2025-01-16 16:46:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:46:05 - End Time 2025-01-16 16:46:05 [2025-01-16 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262274', 'tblTempUsageDetail_20' ) start [2025-01-16 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262274', 'tblTempUsageDetail_20' ) end [2025-01-16 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262274', 'tblTempVendorCDR_20' ) start [2025-01-16 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262274', 'tblTempVendorCDR_20' ) end [2025-01-16 16:46:25] Production.INFO: ProcessCDR(1,14262274,1,1,2) [2025-01-16 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262274', 'tblTempUsageDetail_20' ) start [2025-01-16 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262274', 'tblTempUsageDetail_20' ) end [2025-01-16 16:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:46:30] Production.INFO: ==26913== Releasing lock... [2025-01-16 16:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:46:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-16 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:47:05 [end_date_ymd] => 2025-01-16 16:47:05 [RateCDR] => 1 ) [2025-01-16 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:47:05' and `end` < '2025-01-16 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:47:30] Production.INFO: count ==5517 [2025-01-16 16:47:33] Production.ERROR: pbx CDR StartTime 2025-01-16 13:47:05 - End Time 2025-01-16 16:47:05 [2025-01-16 16:47:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262279', 'tblTempUsageDetail_20' ) start [2025-01-16 16:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262279', 'tblTempUsageDetail_20' ) end [2025-01-16 16:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262279', 'tblTempVendorCDR_20' ) start [2025-01-16 16:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262279', 'tblTempVendorCDR_20' ) end [2025-01-16 16:47:33] Production.INFO: ProcessCDR(1,14262279,1,1,2) [2025-01-16 16:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:47:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262279', 'tblTempUsageDetail_20' ) start [2025-01-16 16:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262279', 'tblTempUsageDetail_20' ) end [2025-01-16 16:47:38] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:47:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:47:38] Production.INFO: ==27019== Releasing lock... [2025-01-16 16:47:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:47:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-16 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:48:05 [end_date_ymd] => 2025-01-16 16:48:05 [RateCDR] => 1 ) [2025-01-16 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:48:05' and `end` < '2025-01-16 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:48:24] Production.INFO: count ==5510 [2025-01-16 16:48:27] Production.ERROR: pbx CDR StartTime 2025-01-16 13:48:05 - End Time 2025-01-16 16:48:05 [2025-01-16 16:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262284', 'tblTempUsageDetail_20' ) start [2025-01-16 16:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262284', 'tblTempUsageDetail_20' ) end [2025-01-16 16:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262284', 'tblTempVendorCDR_20' ) start [2025-01-16 16:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262284', 'tblTempVendorCDR_20' ) end [2025-01-16 16:48:27] Production.INFO: ProcessCDR(1,14262284,1,1,2) [2025-01-16 16:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262284', 'tblTempUsageDetail_20' ) start [2025-01-16 16:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262284', 'tblTempUsageDetail_20' ) end [2025-01-16 16:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:48:32] Production.INFO: ==27131== Releasing lock... [2025-01-16 16:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:48:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-16 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:49:05 [end_date_ymd] => 2025-01-16 16:49:05 [RateCDR] => 1 ) [2025-01-16 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:49:05' and `end` < '2025-01-16 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:49:22] Production.INFO: count ==5497 [2025-01-16 16:49:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:49:05 - End Time 2025-01-16 16:49:05 [2025-01-16 16:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262289', 'tblTempUsageDetail_20' ) start [2025-01-16 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262289', 'tblTempUsageDetail_20' ) end [2025-01-16 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262289', 'tblTempVendorCDR_20' ) start [2025-01-16 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262289', 'tblTempVendorCDR_20' ) end [2025-01-16 16:49:24] Production.INFO: ProcessCDR(1,14262289,1,1,2) [2025-01-16 16:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262289', 'tblTempUsageDetail_20' ) start [2025-01-16 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262289', 'tblTempUsageDetail_20' ) end [2025-01-16 16:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:49:29] Production.INFO: ==27237== Releasing lock... [2025-01-16 16:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:49:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-16 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:50:06 [end_date_ymd] => 2025-01-16 16:50:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 13:50:06' and `end` < '2025-01-16 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-01-16 16:50:27] Production.INFO: count ==5499 [2025-01-16 16:50:30] Production.ERROR: pbx CDR StartTime 2025-01-16 13:50:06 - End Time 2025-01-16 16:50:06 [2025-01-16 16:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262295', 'tblTempUsageDetail_20' ) start [2025-01-16 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262295', 'tblTempUsageDetail_20' ) end [2025-01-16 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262295', 'tblTempVendorCDR_20' ) start [2025-01-16 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262295', 'tblTempVendorCDR_20' ) end [2025-01-16 16:50:30] Production.INFO: ProcessCDR(1,14262295,1,1,2) [2025-01-16 16:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262295', 'tblTempUsageDetail_20' ) start [2025-01-16 16:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262295', 'tblTempUsageDetail_20' ) end [2025-01-16 16:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:50:34] Production.INFO: ==27385== Releasing lock... [2025-01-16 16:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:50:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-16 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:51:04 [end_date_ymd] => 2025-01-16 16:51:04 [RateCDR] => 1 ) [2025-01-16 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:51:04' and `end` < '2025-01-16 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:51:21] Production.INFO: count ==5464 [2025-01-16 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:51:04 - End Time 2025-01-16 16:51:04 [2025-01-16 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262300', 'tblTempUsageDetail_20' ) start [2025-01-16 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262300', 'tblTempUsageDetail_20' ) end [2025-01-16 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262300', 'tblTempVendorCDR_20' ) start [2025-01-16 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262300', 'tblTempVendorCDR_20' ) end [2025-01-16 16:51:24] Production.INFO: ProcessCDR(1,14262300,1,1,2) [2025-01-16 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262300', 'tblTempUsageDetail_20' ) start [2025-01-16 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262300', 'tblTempUsageDetail_20' ) end [2025-01-16 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:51:28] Production.INFO: ==27492== Releasing lock... [2025-01-16 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:51:28] Production.INFO: 69 MB #Memory Used# [2025-01-16 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:52:05 [end_date_ymd] => 2025-01-16 16:52:05 [RateCDR] => 1 ) [2025-01-16 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:52:05' and `end` < '2025-01-16 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:52:23] Production.INFO: count ==5465 [2025-01-16 16:52:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:52:05 - End Time 2025-01-16 16:52:05 [2025-01-16 16:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262305', 'tblTempUsageDetail_20' ) start [2025-01-16 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262305', 'tblTempUsageDetail_20' ) end [2025-01-16 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262305', 'tblTempVendorCDR_20' ) start [2025-01-16 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262305', 'tblTempVendorCDR_20' ) end [2025-01-16 16:52:25] Production.INFO: ProcessCDR(1,14262305,1,1,2) [2025-01-16 16:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262305', 'tblTempUsageDetail_20' ) start [2025-01-16 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262305', 'tblTempUsageDetail_20' ) end [2025-01-16 16:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:52:30] Production.INFO: ==27600== Releasing lock... [2025-01-16 16:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:52:30] Production.INFO: 69 MB #Memory Used# [2025-01-16 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:53:05 [end_date_ymd] => 2025-01-16 16:53:05 [RateCDR] => 1 ) [2025-01-16 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:53:05' and `end` < '2025-01-16 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:53:21] Production.INFO: count ==5460 [2025-01-16 16:53:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:53:05 - End Time 2025-01-16 16:53:05 [2025-01-16 16:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262310', 'tblTempUsageDetail_20' ) start [2025-01-16 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262310', 'tblTempUsageDetail_20' ) end [2025-01-16 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262310', 'tblTempVendorCDR_20' ) start [2025-01-16 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262310', 'tblTempVendorCDR_20' ) end [2025-01-16 16:53:24] Production.INFO: ProcessCDR(1,14262310,1,1,2) [2025-01-16 16:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262310', 'tblTempUsageDetail_20' ) start [2025-01-16 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262310', 'tblTempUsageDetail_20' ) end [2025-01-16 16:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:53:29] Production.INFO: ==27703== Releasing lock... [2025-01-16 16:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:53:29] Production.INFO: 69 MB #Memory Used# [2025-01-16 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:54:05 [end_date_ymd] => 2025-01-16 16:54:05 [RateCDR] => 1 ) [2025-01-16 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:54:05' and `end` < '2025-01-16 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:54:22] Production.INFO: count ==5428 [2025-01-16 16:54:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:54:05 - End Time 2025-01-16 16:54:05 [2025-01-16 16:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262315', 'tblTempUsageDetail_20' ) start [2025-01-16 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262315', 'tblTempUsageDetail_20' ) end [2025-01-16 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262315', 'tblTempVendorCDR_20' ) start [2025-01-16 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262315', 'tblTempVendorCDR_20' ) end [2025-01-16 16:54:25] Production.INFO: ProcessCDR(1,14262315,1,1,2) [2025-01-16 16:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262315', 'tblTempUsageDetail_20' ) start [2025-01-16 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262315', 'tblTempUsageDetail_20' ) end [2025-01-16 16:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:54:29] Production.INFO: ==27828== Releasing lock... [2025-01-16 16:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:54:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-16 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:55:05 [end_date_ymd] => 2025-01-16 16:55:05 [RateCDR] => 1 ) [2025-01-16 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:55:05' and `end` < '2025-01-16 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:55:30] Production.INFO: count ==5408 [2025-01-16 16:55:33] Production.ERROR: pbx CDR StartTime 2025-01-16 13:55:05 - End Time 2025-01-16 16:55:05 [2025-01-16 16:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262320', 'tblTempUsageDetail_20' ) start [2025-01-16 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262320', 'tblTempUsageDetail_20' ) end [2025-01-16 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262320', 'tblTempVendorCDR_20' ) start [2025-01-16 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262320', 'tblTempVendorCDR_20' ) end [2025-01-16 16:55:33] Production.INFO: ProcessCDR(1,14262320,1,1,2) [2025-01-16 16:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262320', 'tblTempUsageDetail_20' ) start [2025-01-16 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262320', 'tblTempUsageDetail_20' ) end [2025-01-16 16:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:55:38] Production.INFO: ==27962== Releasing lock... [2025-01-16 16:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:55:38] Production.INFO: 68.5 MB #Memory Used# [2025-01-16 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:56:05 [end_date_ymd] => 2025-01-16 16:56:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 13:56:05' and `end` < '2025-01-16 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-01-16 16:56:21] Production.INFO: count ==5389 [2025-01-16 16:56:24] Production.ERROR: pbx CDR StartTime 2025-01-16 13:56:05 - End Time 2025-01-16 16:56:05 [2025-01-16 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262325', 'tblTempUsageDetail_20' ) start [2025-01-16 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262325', 'tblTempUsageDetail_20' ) end [2025-01-16 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262325', 'tblTempVendorCDR_20' ) start [2025-01-16 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262325', 'tblTempVendorCDR_20' ) end [2025-01-16 16:56:24] Production.INFO: ProcessCDR(1,14262325,1,1,2) [2025-01-16 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262325', 'tblTempUsageDetail_20' ) start [2025-01-16 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262325', 'tblTempUsageDetail_20' ) end [2025-01-16 16:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:56:29] Production.INFO: ==28082== Releasing lock... [2025-01-16 16:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:56:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:57:05 [end_date_ymd] => 2025-01-16 16:57:05 [RateCDR] => 1 ) [2025-01-16 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:57:05' and `end` < '2025-01-16 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:57:23] Production.INFO: count ==5385 [2025-01-16 16:57:25] Production.ERROR: pbx CDR StartTime 2025-01-16 13:57:05 - End Time 2025-01-16 16:57:05 [2025-01-16 16:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262330', 'tblTempUsageDetail_20' ) start [2025-01-16 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262330', 'tblTempUsageDetail_20' ) end [2025-01-16 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262330', 'tblTempVendorCDR_20' ) start [2025-01-16 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262330', 'tblTempVendorCDR_20' ) end [2025-01-16 16:57:26] Production.INFO: ProcessCDR(1,14262330,1,1,2) [2025-01-16 16:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262330', 'tblTempUsageDetail_20' ) start [2025-01-16 16:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262330', 'tblTempUsageDetail_20' ) end [2025-01-16 16:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:57:30] Production.INFO: ==28179== Releasing lock... [2025-01-16 16:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:57:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:58:06 [end_date_ymd] => 2025-01-16 16:58:06 [RateCDR] => 1 ) [2025-01-16 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:58:06' and `end` < '2025-01-16 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:58:26] Production.INFO: count ==5377 [2025-01-16 16:58:28] Production.ERROR: pbx CDR StartTime 2025-01-16 13:58:06 - End Time 2025-01-16 16:58:06 [2025-01-16 16:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262335', 'tblTempUsageDetail_20' ) start [2025-01-16 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262335', 'tblTempUsageDetail_20' ) end [2025-01-16 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262335', 'tblTempVendorCDR_20' ) start [2025-01-16 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262335', 'tblTempVendorCDR_20' ) end [2025-01-16 16:58:28] Production.INFO: ProcessCDR(1,14262335,1,1,2) [2025-01-16 16:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262335', 'tblTempUsageDetail_20' ) start [2025-01-16 16:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262335', 'tblTempUsageDetail_20' ) end [2025-01-16 16:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:58:33] Production.INFO: ==28279== Releasing lock... [2025-01-16 16:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:58:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 13:59:04 [end_date_ymd] => 2025-01-16 16:59:04 [RateCDR] => 1 ) [2025-01-16 16:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 13:59:04' and `end` < '2025-01-16 16:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 16:59:31] Production.INFO: count ==5369 [2025-01-16 16:59:33] Production.ERROR: pbx CDR StartTime 2025-01-16 13:59:04 - End Time 2025-01-16 16:59:04 [2025-01-16 16:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 16:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262340', 'tblTempUsageDetail_20' ) start [2025-01-16 16:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262340', 'tblTempUsageDetail_20' ) end [2025-01-16 16:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262340', 'tblTempVendorCDR_20' ) start [2025-01-16 16:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262340', 'tblTempVendorCDR_20' ) end [2025-01-16 16:59:33] Production.INFO: ProcessCDR(1,14262340,1,1,2) [2025-01-16 16:59:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:59:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 16:59:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:59:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 16:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262340', 'tblTempUsageDetail_20' ) start [2025-01-16 16:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262340', 'tblTempUsageDetail_20' ) end [2025-01-16 16:59:38] Production.ERROR: pbx prc_insertCDR start [2025-01-16 16:59:38] Production.ERROR: pbx prc_insertCDR end [2025-01-16 16:59:38] Production.INFO: ==28374== Releasing lock... [2025-01-16 16:59:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 16:59:38] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:00:06 [end_date_ymd] => 2025-01-16 17:00:06 [RateCDR] => 1 ) [2025-01-16 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:00:06' and `end` < '2025-01-16 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:00:24] Production.INFO: count ==5383 [2025-01-16 17:00:27] Production.ERROR: pbx CDR StartTime 2025-01-16 14:00:06 - End Time 2025-01-16 17:00:06 [2025-01-16 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262346', 'tblTempUsageDetail_20' ) start [2025-01-16 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262346', 'tblTempUsageDetail_20' ) end [2025-01-16 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262346', 'tblTempVendorCDR_20' ) start [2025-01-16 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262346', 'tblTempVendorCDR_20' ) end [2025-01-16 17:00:27] Production.INFO: ProcessCDR(1,14262346,1,1,2) [2025-01-16 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262346', 'tblTempUsageDetail_20' ) start [2025-01-16 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262346', 'tblTempUsageDetail_20' ) end [2025-01-16 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:00:32] Production.INFO: ==28475== Releasing lock... [2025-01-16 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:00:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:01:05 [end_date_ymd] => 2025-01-16 17:01:05 [RateCDR] => 1 ) [2025-01-16 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:01:05' and `end` < '2025-01-16 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-01-16 17:01:18] Production.INFO: count ==5378 [2025-01-16 17:01:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:01:05 - End Time 2025-01-16 17:01:05 [2025-01-16 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262351', 'tblTempUsageDetail_20' ) start [2025-01-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262351', 'tblTempUsageDetail_20' ) end [2025-01-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262351', 'tblTempVendorCDR_20' ) start [2025-01-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262351', 'tblTempVendorCDR_20' ) end [2025-01-16 17:01:21] Production.INFO: ProcessCDR(1,14262351,1,1,2) [2025-01-16 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262351', 'tblTempUsageDetail_20' ) start [2025-01-16 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262351', 'tblTempUsageDetail_20' ) end [2025-01-16 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:01:26] Production.INFO: ==28589== Releasing lock... [2025-01-16 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:01:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:02:05 [end_date_ymd] => 2025-01-16 17:02:05 [RateCDR] => 1 ) [2025-01-16 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:02:05' and `end` < '2025-01-16 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:02:19] Production.INFO: count ==5376 [2025-01-16 17:02:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:02:05 - End Time 2025-01-16 17:02:05 [2025-01-16 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262356', 'tblTempUsageDetail_20' ) start [2025-01-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262356', 'tblTempUsageDetail_20' ) end [2025-01-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262356', 'tblTempVendorCDR_20' ) start [2025-01-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262356', 'tblTempVendorCDR_20' ) end [2025-01-16 17:02:21] Production.INFO: ProcessCDR(1,14262356,1,1,2) [2025-01-16 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262356', 'tblTempUsageDetail_20' ) start [2025-01-16 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262356', 'tblTempUsageDetail_20' ) end [2025-01-16 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:02:24] Production.INFO: ==28693== Releasing lock... [2025-01-16 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:02:24] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:03:04 [end_date_ymd] => 2025-01-16 17:03:04 [RateCDR] => 1 ) [2025-01-16 17:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:03:04' and `end` < '2025-01-16 17:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:03:19] Production.INFO: count ==5384 [2025-01-16 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:03:04 - End Time 2025-01-16 17:03:04 [2025-01-16 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262361', 'tblTempUsageDetail_20' ) start [2025-01-16 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262361', 'tblTempUsageDetail_20' ) end [2025-01-16 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262361', 'tblTempVendorCDR_20' ) start [2025-01-16 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262361', 'tblTempVendorCDR_20' ) end [2025-01-16 17:03:22] Production.INFO: ProcessCDR(1,14262361,1,1,2) [2025-01-16 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262361', 'tblTempUsageDetail_20' ) start [2025-01-16 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262361', 'tblTempUsageDetail_20' ) end [2025-01-16 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:03:27] Production.INFO: ==28796== Releasing lock... [2025-01-16 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:03:27] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:04:05 [end_date_ymd] => 2025-01-16 17:04:05 [RateCDR] => 1 ) [2025-01-16 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:04:05' and `end` < '2025-01-16 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:04:18] Production.INFO: count ==5370 [2025-01-16 17:04:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:04:05 - End Time 2025-01-16 17:04:05 [2025-01-16 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262366', 'tblTempUsageDetail_20' ) start [2025-01-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262366', 'tblTempUsageDetail_20' ) end [2025-01-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262366', 'tblTempVendorCDR_20' ) start [2025-01-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262366', 'tblTempVendorCDR_20' ) end [2025-01-16 17:04:20] Production.INFO: ProcessCDR(1,14262366,1,1,2) [2025-01-16 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262366', 'tblTempUsageDetail_20' ) start [2025-01-16 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262366', 'tblTempUsageDetail_20' ) end [2025-01-16 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:04:25] Production.INFO: ==28898== Releasing lock... [2025-01-16 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:04:25] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:05:05 [end_date_ymd] => 2025-01-16 17:05:05 [RateCDR] => 1 ) [2025-01-16 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:05:05' and `end` < '2025-01-16 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:05:19] Production.INFO: count ==5365 [2025-01-16 17:05:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:05:05 - End Time 2025-01-16 17:05:05 [2025-01-16 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262371', 'tblTempUsageDetail_20' ) start [2025-01-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262371', 'tblTempUsageDetail_20' ) end [2025-01-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262371', 'tblTempVendorCDR_20' ) start [2025-01-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262371', 'tblTempVendorCDR_20' ) end [2025-01-16 17:05:21] Production.INFO: ProcessCDR(1,14262371,1,1,2) [2025-01-16 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262371', 'tblTempUsageDetail_20' ) start [2025-01-16 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262371', 'tblTempUsageDetail_20' ) end [2025-01-16 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:05:26] Production.INFO: ==29001== Releasing lock... [2025-01-16 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:05:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:06:05 [end_date_ymd] => 2025-01-16 17:06:05 [RateCDR] => 1 ) [2025-01-16 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:06:05' and `end` < '2025-01-16 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:06:18] Production.INFO: count ==5359 [2025-01-16 17:06:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:06:05 - End Time 2025-01-16 17:06:05 [2025-01-16 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262376', 'tblTempUsageDetail_20' ) start [2025-01-16 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262376', 'tblTempUsageDetail_20' ) end [2025-01-16 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262376', 'tblTempVendorCDR_20' ) start [2025-01-16 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262376', 'tblTempVendorCDR_20' ) end [2025-01-16 17:06:20] Production.INFO: ProcessCDR(1,14262376,1,1,2) [2025-01-16 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262376', 'tblTempUsageDetail_20' ) start [2025-01-16 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262376', 'tblTempUsageDetail_20' ) end [2025-01-16 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:06:25] Production.INFO: ==29139== Releasing lock... [2025-01-16 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:06:25] Production.INFO: 68 MB #Memory Used# [2025-01-16 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:07:05 [end_date_ymd] => 2025-01-16 17:07:05 [RateCDR] => 1 ) [2025-01-16 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:07:05' and `end` < '2025-01-16 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:07:19] Production.INFO: count ==5368 [2025-01-16 17:07:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:07:05 - End Time 2025-01-16 17:07:05 [2025-01-16 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262381', 'tblTempUsageDetail_20' ) start [2025-01-16 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262381', 'tblTempUsageDetail_20' ) end [2025-01-16 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262381', 'tblTempVendorCDR_20' ) start [2025-01-16 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262381', 'tblTempVendorCDR_20' ) end [2025-01-16 17:07:22] Production.INFO: ProcessCDR(1,14262381,1,1,2) [2025-01-16 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262381', 'tblTempUsageDetail_20' ) start [2025-01-16 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262381', 'tblTempUsageDetail_20' ) end [2025-01-16 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:07:27] Production.INFO: ==29238== Releasing lock... [2025-01-16 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:07:27] Production.INFO: 68.25 MB #Memory Used# [2025-01-16 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:08:04 [end_date_ymd] => 2025-01-16 17:08:04 [RateCDR] => 1 ) [2025-01-16 17:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:08:04' and `end` < '2025-01-16 17:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:08:18] Production.INFO: count ==5353 [2025-01-16 17:08:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:08:04 - End Time 2025-01-16 17:08:04 [2025-01-16 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262385', 'tblTempUsageDetail_20' ) start [2025-01-16 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262385', 'tblTempUsageDetail_20' ) end [2025-01-16 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262385', 'tblTempVendorCDR_20' ) start [2025-01-16 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262385', 'tblTempVendorCDR_20' ) end [2025-01-16 17:08:20] Production.INFO: ProcessCDR(1,14262385,1,1,2) [2025-01-16 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262385', 'tblTempUsageDetail_20' ) start [2025-01-16 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262385', 'tblTempUsageDetail_20' ) end [2025-01-16 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:08:25] Production.INFO: ==29341== Releasing lock... [2025-01-16 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:08:25] Production.INFO: 68 MB #Memory Used# [2025-01-16 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:09:04 [end_date_ymd] => 2025-01-16 17:09:04 [RateCDR] => 1 ) [2025-01-16 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:09:04' and `end` < '2025-01-16 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:09:18] Production.INFO: count ==5322 [2025-01-16 17:09:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:09:04 - End Time 2025-01-16 17:09:04 [2025-01-16 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262391', 'tblTempUsageDetail_20' ) start [2025-01-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262391', 'tblTempUsageDetail_20' ) end [2025-01-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262391', 'tblTempVendorCDR_20' ) start [2025-01-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262391', 'tblTempVendorCDR_20' ) end [2025-01-16 17:09:21] Production.INFO: ProcessCDR(1,14262391,1,1,2) [2025-01-16 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262391', 'tblTempUsageDetail_20' ) start [2025-01-16 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262391', 'tblTempUsageDetail_20' ) end [2025-01-16 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:09:25] Production.INFO: ==29445== Releasing lock... [2025-01-16 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:09:25] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:10:05 [end_date_ymd] => 2025-01-16 17:10:05 [RateCDR] => 1 ) [2025-01-16 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:10:05' and `end` < '2025-01-16 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:10:18] Production.INFO: count ==5319 [2025-01-16 17:10:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:10:05 - End Time 2025-01-16 17:10:05 [2025-01-16 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262397', 'tblTempUsageDetail_20' ) start [2025-01-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262397', 'tblTempUsageDetail_20' ) end [2025-01-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262397', 'tblTempVendorCDR_20' ) start [2025-01-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262397', 'tblTempVendorCDR_20' ) end [2025-01-16 17:10:21] Production.INFO: ProcessCDR(1,14262397,1,1,2) [2025-01-16 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262397', 'tblTempUsageDetail_20' ) start [2025-01-16 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262397', 'tblTempUsageDetail_20' ) end [2025-01-16 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:10:26] Production.INFO: ==29547== Releasing lock... [2025-01-16 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:10:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-16 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:11:05 [end_date_ymd] => 2025-01-16 17:11:05 [RateCDR] => 1 ) [2025-01-16 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:11:05' and `end` < '2025-01-16 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:11:18] Production.INFO: count ==5275 [2025-01-16 17:11:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:11:05 - End Time 2025-01-16 17:11:05 [2025-01-16 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262402', 'tblTempUsageDetail_20' ) start [2025-01-16 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262402', 'tblTempUsageDetail_20' ) end [2025-01-16 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262402', 'tblTempVendorCDR_20' ) start [2025-01-16 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262402', 'tblTempVendorCDR_20' ) end [2025-01-16 17:11:21] Production.INFO: ProcessCDR(1,14262402,1,1,2) [2025-01-16 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262402', 'tblTempUsageDetail_20' ) start [2025-01-16 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262402', 'tblTempUsageDetail_20' ) end [2025-01-16 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:11:26] Production.INFO: ==29650== Releasing lock... [2025-01-16 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:11:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:12:06 [end_date_ymd] => 2025-01-16 17:12:06 [RateCDR] => 1 ) [2025-01-16 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:12:06' and `end` < '2025-01-16 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:12:19] Production.INFO: count ==5270 [2025-01-16 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:12:06 - End Time 2025-01-16 17:12:06 [2025-01-16 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262407', 'tblTempUsageDetail_20' ) start [2025-01-16 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262407', 'tblTempUsageDetail_20' ) end [2025-01-16 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262407', 'tblTempVendorCDR_20' ) start [2025-01-16 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262407', 'tblTempVendorCDR_20' ) end [2025-01-16 17:12:22] Production.INFO: ProcessCDR(1,14262407,1,1,2) [2025-01-16 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262407', 'tblTempUsageDetail_20' ) start [2025-01-16 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262407', 'tblTempUsageDetail_20' ) end [2025-01-16 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:12:25] Production.INFO: ==29755== Releasing lock... [2025-01-16 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:12:25] Production.INFO: 67.5 MB #Memory Used# [2025-01-16 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:13:04 [end_date_ymd] => 2025-01-16 17:13:04 [RateCDR] => 1 ) [2025-01-16 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:13:04' and `end` < '2025-01-16 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:13:18] Production.INFO: count ==5255 [2025-01-16 17:13:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:13:04 - End Time 2025-01-16 17:13:04 [2025-01-16 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262412', 'tblTempUsageDetail_20' ) start [2025-01-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262412', 'tblTempUsageDetail_20' ) end [2025-01-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262412', 'tblTempVendorCDR_20' ) start [2025-01-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262412', 'tblTempVendorCDR_20' ) end [2025-01-16 17:13:20] Production.INFO: ProcessCDR(1,14262412,1,1,2) [2025-01-16 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262412', 'tblTempUsageDetail_20' ) start [2025-01-16 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262412', 'tblTempUsageDetail_20' ) end [2025-01-16 17:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:13:23] Production.INFO: ==29849== Releasing lock... [2025-01-16 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:13:23] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:14:05 [end_date_ymd] => 2025-01-16 17:14:05 [RateCDR] => 1 ) [2025-01-16 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:14:05' and `end` < '2025-01-16 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:14:21] Production.INFO: count ==5247 [2025-01-16 17:14:23] Production.ERROR: pbx CDR StartTime 2025-01-16 14:14:05 - End Time 2025-01-16 17:14:05 [2025-01-16 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262417', 'tblTempUsageDetail_20' ) start [2025-01-16 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262417', 'tblTempUsageDetail_20' ) end [2025-01-16 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262417', 'tblTempVendorCDR_20' ) start [2025-01-16 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262417', 'tblTempVendorCDR_20' ) end [2025-01-16 17:14:23] Production.INFO: ProcessCDR(1,14262417,1,1,2) [2025-01-16 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262417', 'tblTempUsageDetail_20' ) start [2025-01-16 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262417', 'tblTempUsageDetail_20' ) end [2025-01-16 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:14:28] Production.INFO: ==29969== Releasing lock... [2025-01-16 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:14:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:15:05 [end_date_ymd] => 2025-01-16 17:15:05 [RateCDR] => 1 ) [2025-01-16 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:15:05' and `end` < '2025-01-16 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:15:18] Production.INFO: count ==5240 [2025-01-16 17:15:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:15:05 - End Time 2025-01-16 17:15:05 [2025-01-16 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262422', 'tblTempUsageDetail_20' ) start [2025-01-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262422', 'tblTempUsageDetail_20' ) end [2025-01-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262422', 'tblTempVendorCDR_20' ) start [2025-01-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262422', 'tblTempVendorCDR_20' ) end [2025-01-16 17:15:21] Production.INFO: ProcessCDR(1,14262422,1,1,2) [2025-01-16 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262422', 'tblTempUsageDetail_20' ) start [2025-01-16 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262422', 'tblTempUsageDetail_20' ) end [2025-01-16 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:15:24] Production.INFO: ==30066== Releasing lock... [2025-01-16 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:15:24] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:16:05 [end_date_ymd] => 2025-01-16 17:16:05 [RateCDR] => 1 ) [2025-01-16 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:16:05' and `end` < '2025-01-16 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:16:20] Production.INFO: count ==5232 [2025-01-16 17:16:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:16:05 - End Time 2025-01-16 17:16:05 [2025-01-16 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262427', 'tblTempUsageDetail_20' ) start [2025-01-16 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262427', 'tblTempUsageDetail_20' ) end [2025-01-16 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262427', 'tblTempVendorCDR_20' ) start [2025-01-16 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262427', 'tblTempVendorCDR_20' ) end [2025-01-16 17:16:22] Production.INFO: ProcessCDR(1,14262427,1,1,2) [2025-01-16 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262427', 'tblTempUsageDetail_20' ) start [2025-01-16 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262427', 'tblTempUsageDetail_20' ) end [2025-01-16 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:16:26] Production.INFO: ==30168== Releasing lock... [2025-01-16 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:16:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:17:05 [end_date_ymd] => 2025-01-16 17:17:05 [RateCDR] => 1 ) [2025-01-16 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:17:05' and `end` < '2025-01-16 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:17:19] Production.INFO: count ==5237 [2025-01-16 17:17:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:17:05 - End Time 2025-01-16 17:17:05 [2025-01-16 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262432', 'tblTempUsageDetail_20' ) start [2025-01-16 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262432', 'tblTempUsageDetail_20' ) end [2025-01-16 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262432', 'tblTempVendorCDR_20' ) start [2025-01-16 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262432', 'tblTempVendorCDR_20' ) end [2025-01-16 17:17:21] Production.INFO: ProcessCDR(1,14262432,1,1,2) [2025-01-16 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262432', 'tblTempUsageDetail_20' ) start [2025-01-16 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262432', 'tblTempUsageDetail_20' ) end [2025-01-16 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:17:26] Production.INFO: ==30268== Releasing lock... [2025-01-16 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:17:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:18:05 [end_date_ymd] => 2025-01-16 17:18:05 [RateCDR] => 1 ) [2025-01-16 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:18:05' and `end` < '2025-01-16 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:18:18] Production.INFO: count ==5248 [2025-01-16 17:18:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:18:05 - End Time 2025-01-16 17:18:05 [2025-01-16 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262437', 'tblTempUsageDetail_20' ) start [2025-01-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262437', 'tblTempUsageDetail_20' ) end [2025-01-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262437', 'tblTempVendorCDR_20' ) start [2025-01-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262437', 'tblTempVendorCDR_20' ) end [2025-01-16 17:18:20] Production.INFO: ProcessCDR(1,14262437,1,1,2) [2025-01-16 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262437', 'tblTempUsageDetail_20' ) start [2025-01-16 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262437', 'tblTempUsageDetail_20' ) end [2025-01-16 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:18:25] Production.INFO: ==30365== Releasing lock... [2025-01-16 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:18:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:19:05 [end_date_ymd] => 2025-01-16 17:19:05 [RateCDR] => 1 ) [2025-01-16 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:19:05' and `end` < '2025-01-16 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:19:19] Production.INFO: count ==5226 [2025-01-16 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:19:05 - End Time 2025-01-16 17:19:05 [2025-01-16 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262442', 'tblTempUsageDetail_20' ) start [2025-01-16 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262442', 'tblTempUsageDetail_20' ) end [2025-01-16 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262442', 'tblTempVendorCDR_20' ) start [2025-01-16 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262442', 'tblTempVendorCDR_20' ) end [2025-01-16 17:19:22] Production.INFO: ProcessCDR(1,14262442,1,1,2) [2025-01-16 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262442', 'tblTempUsageDetail_20' ) start [2025-01-16 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262442', 'tblTempUsageDetail_20' ) end [2025-01-16 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:19:26] Production.INFO: ==30467== Releasing lock... [2025-01-16 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:19:26] Production.INFO: 67 MB #Memory Used# [2025-01-16 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:20:06 [end_date_ymd] => 2025-01-16 17:20:06 [RateCDR] => 1 ) [2025-01-16 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:20:06' and `end` < '2025-01-16 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:20:19] Production.INFO: count ==5218 [2025-01-16 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:20:06 - End Time 2025-01-16 17:20:06 [2025-01-16 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262448', 'tblTempUsageDetail_20' ) start [2025-01-16 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262448', 'tblTempUsageDetail_20' ) end [2025-01-16 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262448', 'tblTempVendorCDR_20' ) start [2025-01-16 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262448', 'tblTempVendorCDR_20' ) end [2025-01-16 17:20:22] Production.INFO: ProcessCDR(1,14262448,1,1,2) [2025-01-16 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262448', 'tblTempUsageDetail_20' ) start [2025-01-16 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262448', 'tblTempUsageDetail_20' ) end [2025-01-16 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:20:26] Production.INFO: ==30569== Releasing lock... [2025-01-16 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:20:26] Production.INFO: 67 MB #Memory Used# [2025-01-16 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:21:05 [end_date_ymd] => 2025-01-16 17:21:05 [RateCDR] => 1 ) [2025-01-16 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:21:05' and `end` < '2025-01-16 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:21:19] Production.INFO: count ==5251 [2025-01-16 17:21:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:21:05 - End Time 2025-01-16 17:21:05 [2025-01-16 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262453', 'tblTempUsageDetail_20' ) start [2025-01-16 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262453', 'tblTempUsageDetail_20' ) end [2025-01-16 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262453', 'tblTempVendorCDR_20' ) start [2025-01-16 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262453', 'tblTempVendorCDR_20' ) end [2025-01-16 17:21:21] Production.INFO: ProcessCDR(1,14262453,1,1,2) [2025-01-16 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262453', 'tblTempUsageDetail_20' ) start [2025-01-16 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262453', 'tblTempUsageDetail_20' ) end [2025-01-16 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:21:26] Production.INFO: ==30710== Releasing lock... [2025-01-16 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:21:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:22:05 [end_date_ymd] => 2025-01-16 17:22:05 [RateCDR] => 1 ) [2025-01-16 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:22:05' and `end` < '2025-01-16 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:22:18] Production.INFO: count ==5236 [2025-01-16 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:22:05 - End Time 2025-01-16 17:22:05 [2025-01-16 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262458', 'tblTempUsageDetail_20' ) start [2025-01-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262458', 'tblTempUsageDetail_20' ) end [2025-01-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262458', 'tblTempVendorCDR_20' ) start [2025-01-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262458', 'tblTempVendorCDR_20' ) end [2025-01-16 17:22:21] Production.INFO: ProcessCDR(1,14262458,1,1,2) [2025-01-16 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262458', 'tblTempUsageDetail_20' ) start [2025-01-16 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262458', 'tblTempUsageDetail_20' ) end [2025-01-16 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:22:26] Production.INFO: ==30811== Releasing lock... [2025-01-16 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:22:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:23:04 [end_date_ymd] => 2025-01-16 17:23:04 [RateCDR] => 1 ) [2025-01-16 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:23:04' and `end` < '2025-01-16 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:23:21] Production.INFO: count ==5250 [2025-01-16 17:23:23] Production.ERROR: pbx CDR StartTime 2025-01-16 14:23:04 - End Time 2025-01-16 17:23:04 [2025-01-16 17:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262463', 'tblTempUsageDetail_20' ) start [2025-01-16 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262463', 'tblTempUsageDetail_20' ) end [2025-01-16 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262463', 'tblTempVendorCDR_20' ) start [2025-01-16 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262463', 'tblTempVendorCDR_20' ) end [2025-01-16 17:23:23] Production.INFO: ProcessCDR(1,14262463,1,1,2) [2025-01-16 17:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262463', 'tblTempUsageDetail_20' ) start [2025-01-16 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262463', 'tblTempUsageDetail_20' ) end [2025-01-16 17:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:23:28] Production.INFO: ==30906== Releasing lock... [2025-01-16 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:23:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:24:05 [end_date_ymd] => 2025-01-16 17:24:05 [RateCDR] => 1 ) [2025-01-16 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:24:05' and `end` < '2025-01-16 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:24:18] Production.INFO: count ==5251 [2025-01-16 17:24:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:24:05 - End Time 2025-01-16 17:24:05 [2025-01-16 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262468', 'tblTempUsageDetail_20' ) start [2025-01-16 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262468', 'tblTempUsageDetail_20' ) end [2025-01-16 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262468', 'tblTempVendorCDR_20' ) start [2025-01-16 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262468', 'tblTempVendorCDR_20' ) end [2025-01-16 17:24:21] Production.INFO: ProcessCDR(1,14262468,1,1,2) [2025-01-16 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262468', 'tblTempUsageDetail_20' ) start [2025-01-16 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262468', 'tblTempUsageDetail_20' ) end [2025-01-16 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:24:24] Production.INFO: ==31005== Releasing lock... [2025-01-16 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:24:24] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:25:06 [end_date_ymd] => 2025-01-16 17:25:06 [RateCDR] => 1 ) [2025-01-16 17: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-01-16 14:25:06' and `end` < '2025-01-16 17: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-01-16 17:25:20] Production.INFO: count ==5249 [2025-01-16 17:25:23] Production.ERROR: pbx CDR StartTime 2025-01-16 14:25:06 - End Time 2025-01-16 17:25:06 [2025-01-16 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262473', 'tblTempUsageDetail_20' ) start [2025-01-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262473', 'tblTempUsageDetail_20' ) end [2025-01-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262473', 'tblTempVendorCDR_20' ) start [2025-01-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262473', 'tblTempVendorCDR_20' ) end [2025-01-16 17:25:23] Production.INFO: ProcessCDR(1,14262473,1,1,2) [2025-01-16 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262473', 'tblTempUsageDetail_20' ) start [2025-01-16 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262473', 'tblTempUsageDetail_20' ) end [2025-01-16 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:25:26] Production.INFO: ==31104== Releasing lock... [2025-01-16 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:25:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:26:15 [end_date_ymd] => 2025-01-16 17:26:15 [RateCDR] => 1 ) [2025-01-16 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:26:15' and `end` < '2025-01-16 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:26:28] Production.INFO: count ==5240 [2025-01-16 17:27:32] Production.ERROR: pbx CDR StartTime 2025-01-16 14:26:15 - End Time 2025-01-16 17:26:15 [2025-01-16 17:27:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262478', 'tblTempUsageDetail_20' ) start [2025-01-16 17:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262478', 'tblTempUsageDetail_20' ) end [2025-01-16 17:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262478', 'tblTempVendorCDR_20' ) start [2025-01-16 17:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262478', 'tblTempVendorCDR_20' ) end [2025-01-16 17:27:37] Production.INFO: ProcessCDR(1,14262478,1,1,2) [2025-01-16 17:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:27:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:27:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:28:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:28:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262478', 'tblTempUsageDetail_20' ) start [2025-01-16 17:28:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262478', 'tblTempUsageDetail_20' ) end [2025-01-16 17:28:10] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:28:10] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:28:15] Production.INFO: ==31203== Releasing lock... [2025-01-16 17:28:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:28:15] Production.INFO: 67.25 MB #Memory Used# [2025-01-16 17:29:17] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:29:17 [end_date_ymd] => 2025-01-16 17:29:17 [RateCDR] => 1 ) [2025-01-16 17:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:29:17' and `end` < '2025-01-16 17:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:29:30] Production.INFO: count ==5224 [2025-01-16 17:30:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:29:17 - End Time 2025-01-16 17:29:17 [2025-01-16 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262489', 'tblTempUsageDetail_20' ) start [2025-01-16 17:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262489', 'tblTempUsageDetail_20' ) end [2025-01-16 17:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262489', 'tblTempVendorCDR_20' ) start [2025-01-16 17:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262489', 'tblTempVendorCDR_20' ) end [2025-01-16 17:30:27] Production.INFO: ProcessCDR(1,14262489,1,1,2) [2025-01-16 17:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:30:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:30:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262489', 'tblTempUsageDetail_20' ) start [2025-01-16 17:31:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262489', 'tblTempUsageDetail_20' ) end [2025-01-16 17:31:04] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:31:04] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:31:07] Production.INFO: ==31480== Releasing lock... [2025-01-16 17:31:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:31:07] Production.INFO: 67 MB #Memory Used# [2025-01-16 17:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:32:04 [end_date_ymd] => 2025-01-16 17:32:04 [RateCDR] => 1 ) [2025-01-16 17:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:32:04' and `end` < '2025-01-16 17:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:32:18] Production.INFO: count ==5134 [2025-01-16 17:32:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:32:04 - End Time 2025-01-16 17:32:04 [2025-01-16 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262502', 'tblTempUsageDetail_20' ) start [2025-01-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262502', 'tblTempUsageDetail_20' ) end [2025-01-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262502', 'tblTempVendorCDR_20' ) start [2025-01-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262502', 'tblTempVendorCDR_20' ) end [2025-01-16 17:32:20] Production.INFO: ProcessCDR(1,14262502,1,1,2) [2025-01-16 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262502', 'tblTempUsageDetail_20' ) start [2025-01-16 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262502', 'tblTempUsageDetail_20' ) end [2025-01-16 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:32:25] Production.INFO: ==31776== Releasing lock... [2025-01-16 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:32:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-16 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:33:05 [end_date_ymd] => 2025-01-16 17:33:05 [RateCDR] => 1 ) [2025-01-16 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:33:05' and `end` < '2025-01-16 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:33:18] Production.INFO: count ==5125 [2025-01-16 17:33:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:33:05 - End Time 2025-01-16 17:33:05 [2025-01-16 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262507', 'tblTempUsageDetail_20' ) start [2025-01-16 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262507', 'tblTempUsageDetail_20' ) end [2025-01-16 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262507', 'tblTempVendorCDR_20' ) start [2025-01-16 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262507', 'tblTempVendorCDR_20' ) end [2025-01-16 17:33:21] Production.INFO: ProcessCDR(1,14262507,1,1,2) [2025-01-16 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262507', 'tblTempUsageDetail_20' ) start [2025-01-16 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262507', 'tblTempUsageDetail_20' ) end [2025-01-16 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:33:26] Production.INFO: ==31876== Releasing lock... [2025-01-16 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:33:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-16 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:34:06 [end_date_ymd] => 2025-01-16 17:34:06 [RateCDR] => 1 ) [2025-01-16 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:34:06' and `end` < '2025-01-16 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:34:20] Production.INFO: count ==5109 [2025-01-16 17:34:23] Production.ERROR: pbx CDR StartTime 2025-01-16 14:34:06 - End Time 2025-01-16 17:34:06 [2025-01-16 17:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262512', 'tblTempUsageDetail_20' ) start [2025-01-16 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262512', 'tblTempUsageDetail_20' ) end [2025-01-16 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262512', 'tblTempVendorCDR_20' ) start [2025-01-16 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262512', 'tblTempVendorCDR_20' ) end [2025-01-16 17:34:23] Production.INFO: ProcessCDR(1,14262512,1,1,2) [2025-01-16 17:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262512', 'tblTempUsageDetail_20' ) start [2025-01-16 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262512', 'tblTempUsageDetail_20' ) end [2025-01-16 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:34:26] Production.INFO: ==31973== Releasing lock... [2025-01-16 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:34:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-16 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:35:05 [end_date_ymd] => 2025-01-16 17:35:05 [RateCDR] => 1 ) [2025-01-16 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:35:05' and `end` < '2025-01-16 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:35:18] Production.INFO: count ==5078 [2025-01-16 17:35:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:35:05 - End Time 2025-01-16 17:35:05 [2025-01-16 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262516', 'tblTempUsageDetail_20' ) start [2025-01-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262516', 'tblTempUsageDetail_20' ) end [2025-01-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262516', 'tblTempVendorCDR_20' ) start [2025-01-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262516', 'tblTempVendorCDR_20' ) end [2025-01-16 17:35:20] Production.INFO: ProcessCDR(1,14262516,1,1,2) [2025-01-16 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262516', 'tblTempUsageDetail_20' ) start [2025-01-16 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262516', 'tblTempUsageDetail_20' ) end [2025-01-16 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:35:24] Production.INFO: ==32074== Releasing lock... [2025-01-16 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:35:24] Production.INFO: 66 MB #Memory Used# [2025-01-16 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:36:06 [end_date_ymd] => 2025-01-16 17:36:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 14:36:06' and `end` < '2025-01-16 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-01-16 17:36:20] Production.INFO: count ==5074 [2025-01-16 17:36:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:36:06 - End Time 2025-01-16 17:36:06 [2025-01-16 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262522', 'tblTempUsageDetail_20' ) start [2025-01-16 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262522', 'tblTempUsageDetail_20' ) end [2025-01-16 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262522', 'tblTempVendorCDR_20' ) start [2025-01-16 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262522', 'tblTempVendorCDR_20' ) end [2025-01-16 17:36:22] Production.INFO: ProcessCDR(1,14262522,1,1,2) [2025-01-16 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262522', 'tblTempUsageDetail_20' ) start [2025-01-16 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262522', 'tblTempUsageDetail_20' ) end [2025-01-16 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:36:27] Production.INFO: ==32171== Releasing lock... [2025-01-16 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:36:27] Production.INFO: 66 MB #Memory Used# [2025-01-16 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:37:05 [end_date_ymd] => 2025-01-16 17:37:05 [RateCDR] => 1 ) [2025-01-16 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:37:05' and `end` < '2025-01-16 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:37:23] Production.INFO: count ==5060 [2025-01-16 17:37:25] Production.ERROR: pbx CDR StartTime 2025-01-16 14:37:05 - End Time 2025-01-16 17:37:05 [2025-01-16 17:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262527', 'tblTempUsageDetail_20' ) start [2025-01-16 17:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262527', 'tblTempUsageDetail_20' ) end [2025-01-16 17:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262527', 'tblTempVendorCDR_20' ) start [2025-01-16 17:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262527', 'tblTempVendorCDR_20' ) end [2025-01-16 17:37:26] Production.INFO: ProcessCDR(1,14262527,1,1,2) [2025-01-16 17:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262527', 'tblTempUsageDetail_20' ) start [2025-01-16 17:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262527', 'tblTempUsageDetail_20' ) end [2025-01-16 17:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:37:31] Production.INFO: ==32310== Releasing lock... [2025-01-16 17:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:37:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:38:06 [end_date_ymd] => 2025-01-16 17:38:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 14:38:06' and `end` < '2025-01-16 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-01-16 17:38:23] Production.INFO: count ==5058 [2025-01-16 17:38:25] Production.ERROR: pbx CDR StartTime 2025-01-16 14:38:06 - End Time 2025-01-16 17:38:06 [2025-01-16 17:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262532', 'tblTempUsageDetail_20' ) start [2025-01-16 17:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262532', 'tblTempUsageDetail_20' ) end [2025-01-16 17:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262532', 'tblTempVendorCDR_20' ) start [2025-01-16 17:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262532', 'tblTempVendorCDR_20' ) end [2025-01-16 17:38:26] Production.INFO: ProcessCDR(1,14262532,1,1,2) [2025-01-16 17:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262532', 'tblTempUsageDetail_20' ) start [2025-01-16 17:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262532', 'tblTempUsageDetail_20' ) end [2025-01-16 17:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:38:32] Production.INFO: ==32407== Releasing lock... [2025-01-16 17:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:38:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:39:05 [end_date_ymd] => 2025-01-16 17:39:05 [RateCDR] => 1 ) [2025-01-16 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:39:05' and `end` < '2025-01-16 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:39:24] Production.INFO: count ==5061 [2025-01-16 17:39:26] Production.ERROR: pbx CDR StartTime 2025-01-16 14:39:05 - End Time 2025-01-16 17:39:05 [2025-01-16 17:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262537', 'tblTempUsageDetail_20' ) start [2025-01-16 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262537', 'tblTempUsageDetail_20' ) end [2025-01-16 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262537', 'tblTempVendorCDR_20' ) start [2025-01-16 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262537', 'tblTempVendorCDR_20' ) end [2025-01-16 17:39:26] Production.INFO: ProcessCDR(1,14262537,1,1,2) [2025-01-16 17:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262537', 'tblTempUsageDetail_20' ) start [2025-01-16 17:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262537', 'tblTempUsageDetail_20' ) end [2025-01-16 17:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:39:31] Production.INFO: ==32507== Releasing lock... [2025-01-16 17:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:39:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:40:06 [end_date_ymd] => 2025-01-16 17:40:06 [RateCDR] => 1 ) [2025-01-16 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:40:06' and `end` < '2025-01-16 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:40:23] Production.INFO: count ==5046 [2025-01-16 17:40:25] Production.ERROR: pbx CDR StartTime 2025-01-16 14:40:06 - End Time 2025-01-16 17:40:06 [2025-01-16 17:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262543', 'tblTempUsageDetail_20' ) start [2025-01-16 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262543', 'tblTempUsageDetail_20' ) end [2025-01-16 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262543', 'tblTempVendorCDR_20' ) start [2025-01-16 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262543', 'tblTempVendorCDR_20' ) end [2025-01-16 17:40:25] Production.INFO: ProcessCDR(1,14262543,1,1,2) [2025-01-16 17:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262543', 'tblTempUsageDetail_20' ) start [2025-01-16 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262543', 'tblTempUsageDetail_20' ) end [2025-01-16 17:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:40:30] Production.INFO: ==32607== Releasing lock... [2025-01-16 17:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:40:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:41:05 [end_date_ymd] => 2025-01-16 17:41:05 [RateCDR] => 1 ) [2025-01-16 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:41:05' and `end` < '2025-01-16 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:41:20] Production.INFO: count ==5042 [2025-01-16 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:41:05 - End Time 2025-01-16 17:41:05 [2025-01-16 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262548', 'tblTempUsageDetail_20' ) start [2025-01-16 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262548', 'tblTempUsageDetail_20' ) end [2025-01-16 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262548', 'tblTempVendorCDR_20' ) start [2025-01-16 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262548', 'tblTempVendorCDR_20' ) end [2025-01-16 17:41:22] Production.INFO: ProcessCDR(1,14262548,1,1,2) [2025-01-16 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262548', 'tblTempUsageDetail_20' ) start [2025-01-16 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262548', 'tblTempUsageDetail_20' ) end [2025-01-16 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:41:26] Production.INFO: ==32705== Releasing lock... [2025-01-16 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:41:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:42:06 [end_date_ymd] => 2025-01-16 17:42:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 14:42:06' and `end` < '2025-01-16 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-01-16 17:42:19] Production.INFO: count ==5038 [2025-01-16 17:42:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:42:06 - End Time 2025-01-16 17:42:06 [2025-01-16 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262553', 'tblTempUsageDetail_20' ) start [2025-01-16 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262553', 'tblTempUsageDetail_20' ) end [2025-01-16 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262553', 'tblTempVendorCDR_20' ) start [2025-01-16 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262553', 'tblTempVendorCDR_20' ) end [2025-01-16 17:42:21] Production.INFO: ProcessCDR(1,14262553,1,1,2) [2025-01-16 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262553', 'tblTempUsageDetail_20' ) start [2025-01-16 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262553', 'tblTempUsageDetail_20' ) end [2025-01-16 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:42:26] Production.INFO: ==355== Releasing lock... [2025-01-16 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:42:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-16 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:43:05 [end_date_ymd] => 2025-01-16 17:43:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 14:43:05' and `end` < '2025-01-16 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-01-16 17:43:20] Production.INFO: count ==5018 [2025-01-16 17:43:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:43:05 - End Time 2025-01-16 17:43:05 [2025-01-16 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262558', 'tblTempUsageDetail_20' ) start [2025-01-16 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262558', 'tblTempUsageDetail_20' ) end [2025-01-16 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262558', 'tblTempVendorCDR_20' ) start [2025-01-16 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262558', 'tblTempVendorCDR_20' ) end [2025-01-16 17:43:23] Production.INFO: ProcessCDR(1,14262558,1,1,2) [2025-01-16 17:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262558', 'tblTempUsageDetail_20' ) start [2025-01-16 17:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262558', 'tblTempUsageDetail_20' ) end [2025-01-16 17:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:43:28] Production.INFO: ==456== Releasing lock... [2025-01-16 17:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:43:28] Production.INFO: 65.5 MB #Memory Used# [2025-01-16 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:44:05 [end_date_ymd] => 2025-01-16 17:44:05 [RateCDR] => 1 ) [2025-01-16 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:44:05' and `end` < '2025-01-16 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:44:19] Production.INFO: count ==5018 [2025-01-16 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:44:05 - End Time 2025-01-16 17:44:05 [2025-01-16 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262563', 'tblTempUsageDetail_20' ) start [2025-01-16 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262563', 'tblTempUsageDetail_20' ) end [2025-01-16 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262563', 'tblTempVendorCDR_20' ) start [2025-01-16 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262563', 'tblTempVendorCDR_20' ) end [2025-01-16 17:44:21] Production.INFO: ProcessCDR(1,14262563,1,1,2) [2025-01-16 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262563', 'tblTempUsageDetail_20' ) start [2025-01-16 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262563', 'tblTempUsageDetail_20' ) end [2025-01-16 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:44:26] Production.INFO: ==558== Releasing lock... [2025-01-16 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:44:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-16 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:45:05 [end_date_ymd] => 2025-01-16 17:45:05 [RateCDR] => 1 ) [2025-01-16 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:45:05' and `end` < '2025-01-16 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:45:20] Production.INFO: count ==4996 [2025-01-16 17:45:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:45:05 - End Time 2025-01-16 17:45:05 [2025-01-16 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262568', 'tblTempUsageDetail_20' ) start [2025-01-16 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262568', 'tblTempUsageDetail_20' ) end [2025-01-16 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262568', 'tblTempVendorCDR_20' ) start [2025-01-16 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262568', 'tblTempVendorCDR_20' ) end [2025-01-16 17:45:22] Production.INFO: ProcessCDR(1,14262568,1,1,2) [2025-01-16 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262568', 'tblTempUsageDetail_20' ) start [2025-01-16 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262568', 'tblTempUsageDetail_20' ) end [2025-01-16 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:45:27] Production.INFO: ==673== Releasing lock... [2025-01-16 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:45:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-16 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:46:05 [end_date_ymd] => 2025-01-16 17:46:05 [RateCDR] => 1 ) [2025-01-16 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:46:05' and `end` < '2025-01-16 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:46:18] Production.INFO: count ==4987 [2025-01-16 17:46:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:46:05 - End Time 2025-01-16 17:46:05 [2025-01-16 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262573', 'tblTempUsageDetail_20' ) start [2025-01-16 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262573', 'tblTempUsageDetail_20' ) end [2025-01-16 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262573', 'tblTempVendorCDR_20' ) start [2025-01-16 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262573', 'tblTempVendorCDR_20' ) end [2025-01-16 17:46:21] Production.INFO: ProcessCDR(1,14262573,1,1,2) [2025-01-16 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262573', 'tblTempUsageDetail_20' ) start [2025-01-16 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262573', 'tblTempUsageDetail_20' ) end [2025-01-16 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:46:26] Production.INFO: ==790== Releasing lock... [2025-01-16 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:46:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-16 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:47:04 [end_date_ymd] => 2025-01-16 17:47:04 [RateCDR] => 1 ) [2025-01-16 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:47:04' and `end` < '2025-01-16 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:47:22] Production.INFO: count ==4959 [2025-01-16 17:47:24] Production.ERROR: pbx CDR StartTime 2025-01-16 14:47:04 - End Time 2025-01-16 17:47:04 [2025-01-16 17:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262578', 'tblTempUsageDetail_20' ) start [2025-01-16 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262578', 'tblTempUsageDetail_20' ) end [2025-01-16 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262578', 'tblTempVendorCDR_20' ) start [2025-01-16 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262578', 'tblTempVendorCDR_20' ) end [2025-01-16 17:47:24] Production.INFO: ProcessCDR(1,14262578,1,1,2) [2025-01-16 17:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262578', 'tblTempUsageDetail_20' ) start [2025-01-16 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262578', 'tblTempUsageDetail_20' ) end [2025-01-16 17:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:47:29] Production.INFO: ==888== Releasing lock... [2025-01-16 17:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:47:29] Production.INFO: 65 MB #Memory Used# [2025-01-16 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:48:05 [end_date_ymd] => 2025-01-16 17:48:05 [RateCDR] => 1 ) [2025-01-16 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:48:05' and `end` < '2025-01-16 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:48:21] Production.INFO: count ==4947 [2025-01-16 17:48:23] Production.ERROR: pbx CDR StartTime 2025-01-16 14:48:05 - End Time 2025-01-16 17:48:05 [2025-01-16 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262583', 'tblTempUsageDetail_20' ) start [2025-01-16 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262583', 'tblTempUsageDetail_20' ) end [2025-01-16 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262583', 'tblTempVendorCDR_20' ) start [2025-01-16 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262583', 'tblTempVendorCDR_20' ) end [2025-01-16 17:48:23] Production.INFO: ProcessCDR(1,14262583,1,1,2) [2025-01-16 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262583', 'tblTempUsageDetail_20' ) start [2025-01-16 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262583', 'tblTempUsageDetail_20' ) end [2025-01-16 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:48:28] Production.INFO: ==988== Releasing lock... [2025-01-16 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:48:28] Production.INFO: 65 MB #Memory Used# [2025-01-16 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:49:05 [end_date_ymd] => 2025-01-16 17:49:05 [RateCDR] => 1 ) [2025-01-16 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:49:05' and `end` < '2025-01-16 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:49:19] Production.INFO: count ==4953 [2025-01-16 17:49:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:49:05 - End Time 2025-01-16 17:49:05 [2025-01-16 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262588', 'tblTempUsageDetail_20' ) start [2025-01-16 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262588', 'tblTempUsageDetail_20' ) end [2025-01-16 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262588', 'tblTempVendorCDR_20' ) start [2025-01-16 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262588', 'tblTempVendorCDR_20' ) end [2025-01-16 17:49:21] Production.INFO: ProcessCDR(1,14262588,1,1,2) [2025-01-16 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262588', 'tblTempUsageDetail_20' ) start [2025-01-16 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262588', 'tblTempUsageDetail_20' ) end [2025-01-16 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:49:26] Production.INFO: ==1087== Releasing lock... [2025-01-16 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:49:26] Production.INFO: 65 MB #Memory Used# [2025-01-16 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:50:05 [end_date_ymd] => 2025-01-16 17:50:05 [RateCDR] => 1 ) [2025-01-16 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:50:05' and `end` < '2025-01-16 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:50:19] Production.INFO: count ==4951 [2025-01-16 17:50:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:50:05 - End Time 2025-01-16 17:50:05 [2025-01-16 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262593', 'tblTempUsageDetail_20' ) start [2025-01-16 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262593', 'tblTempUsageDetail_20' ) end [2025-01-16 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262593', 'tblTempVendorCDR_20' ) start [2025-01-16 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262593', 'tblTempVendorCDR_20' ) end [2025-01-16 17:50:21] Production.INFO: ProcessCDR(1,14262593,1,1,2) [2025-01-16 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262593', 'tblTempUsageDetail_20' ) start [2025-01-16 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262593', 'tblTempUsageDetail_20' ) end [2025-01-16 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:50:26] Production.INFO: ==1193== Releasing lock... [2025-01-16 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:50:26] Production.INFO: 65 MB #Memory Used# [2025-01-16 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:51:05 [end_date_ymd] => 2025-01-16 17:51:05 [RateCDR] => 1 ) [2025-01-16 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:51:05' and `end` < '2025-01-16 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:51:23] Production.INFO: count ==4967 [2025-01-16 17:51:25] Production.ERROR: pbx CDR StartTime 2025-01-16 14:51:05 - End Time 2025-01-16 17:51:05 [2025-01-16 17:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262599', 'tblTempUsageDetail_20' ) start [2025-01-16 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262599', 'tblTempUsageDetail_20' ) end [2025-01-16 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262599', 'tblTempVendorCDR_20' ) start [2025-01-16 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262599', 'tblTempVendorCDR_20' ) end [2025-01-16 17:51:25] Production.INFO: ProcessCDR(1,14262599,1,1,2) [2025-01-16 17:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262599', 'tblTempUsageDetail_20' ) start [2025-01-16 17:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262599', 'tblTempUsageDetail_20' ) end [2025-01-16 17:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:51:30] Production.INFO: ==1306== Releasing lock... [2025-01-16 17:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:51:30] Production.INFO: 65.25 MB #Memory Used# [2025-01-16 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:52:05 [end_date_ymd] => 2025-01-16 17:52:05 [RateCDR] => 1 ) [2025-01-16 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:52:05' and `end` < '2025-01-16 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:52:22] Production.INFO: count ==4981 [2025-01-16 17:52:24] Production.ERROR: pbx CDR StartTime 2025-01-16 14:52:05 - End Time 2025-01-16 17:52:05 [2025-01-16 17:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262604', 'tblTempUsageDetail_20' ) start [2025-01-16 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262604', 'tblTempUsageDetail_20' ) end [2025-01-16 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262604', 'tblTempVendorCDR_20' ) start [2025-01-16 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262604', 'tblTempVendorCDR_20' ) end [2025-01-16 17:52:24] Production.INFO: ProcessCDR(1,14262604,1,1,2) [2025-01-16 17:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262604', 'tblTempUsageDetail_20' ) start [2025-01-16 17:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262604', 'tblTempUsageDetail_20' ) end [2025-01-16 17:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:52:29] Production.INFO: ==1405== Releasing lock... [2025-01-16 17:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:52:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-16 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:53:05 [end_date_ymd] => 2025-01-16 17:53:05 [RateCDR] => 1 ) [2025-01-16 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:53:05' and `end` < '2025-01-16 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:53:18] Production.INFO: count ==4973 [2025-01-16 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-16 14:53:05 - End Time 2025-01-16 17:53:05 [2025-01-16 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262609', 'tblTempUsageDetail_20' ) start [2025-01-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262609', 'tblTempUsageDetail_20' ) end [2025-01-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262609', 'tblTempVendorCDR_20' ) start [2025-01-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262609', 'tblTempVendorCDR_20' ) end [2025-01-16 17:53:20] Production.INFO: ProcessCDR(1,14262609,1,1,2) [2025-01-16 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262609', 'tblTempUsageDetail_20' ) start [2025-01-16 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262609', 'tblTempUsageDetail_20' ) end [2025-01-16 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:53:25] Production.INFO: ==1581== Releasing lock... [2025-01-16 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:53:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-16 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:54:05 [end_date_ymd] => 2025-01-16 17:54:05 [RateCDR] => 1 ) [2025-01-16 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:54:05' and `end` < '2025-01-16 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:54:19] Production.INFO: count ==4977 [2025-01-16 17:54:21] Production.ERROR: pbx CDR StartTime 2025-01-16 14:54:05 - End Time 2025-01-16 17:54:05 [2025-01-16 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262614', 'tblTempUsageDetail_20' ) start [2025-01-16 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262614', 'tblTempUsageDetail_20' ) end [2025-01-16 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262614', 'tblTempVendorCDR_20' ) start [2025-01-16 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262614', 'tblTempVendorCDR_20' ) end [2025-01-16 17:54:21] Production.INFO: ProcessCDR(1,14262614,1,1,2) [2025-01-16 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262614', 'tblTempUsageDetail_20' ) start [2025-01-16 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262614', 'tblTempUsageDetail_20' ) end [2025-01-16 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:54:26] Production.INFO: ==1681== Releasing lock... [2025-01-16 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:54:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-16 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:55:05 [end_date_ymd] => 2025-01-16 17:55:05 [RateCDR] => 1 ) [2025-01-16 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:55:05' and `end` < '2025-01-16 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:55:24] Production.INFO: count ==4959 [2025-01-16 17:55:26] Production.ERROR: pbx CDR StartTime 2025-01-16 14:55:05 - End Time 2025-01-16 17:55:05 [2025-01-16 17:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262619', 'tblTempUsageDetail_20' ) start [2025-01-16 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262619', 'tblTempUsageDetail_20' ) end [2025-01-16 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262619', 'tblTempVendorCDR_20' ) start [2025-01-16 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262619', 'tblTempVendorCDR_20' ) end [2025-01-16 17:55:26] Production.INFO: ProcessCDR(1,14262619,1,1,2) [2025-01-16 17:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262619', 'tblTempUsageDetail_20' ) start [2025-01-16 17:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262619', 'tblTempUsageDetail_20' ) end [2025-01-16 17:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:55:31] Production.INFO: ==1780== Releasing lock... [2025-01-16 17:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:55:31] Production.INFO: 65 MB #Memory Used# [2025-01-16 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:56:05 [end_date_ymd] => 2025-01-16 17:56:05 [RateCDR] => 1 ) [2025-01-16 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:56:05' and `end` < '2025-01-16 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:56:21] Production.INFO: count ==4938 [2025-01-16 17:56:23] Production.ERROR: pbx CDR StartTime 2025-01-16 14:56:05 - End Time 2025-01-16 17:56:05 [2025-01-16 17:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262624', 'tblTempUsageDetail_20' ) start [2025-01-16 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262624', 'tblTempUsageDetail_20' ) end [2025-01-16 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262624', 'tblTempVendorCDR_20' ) start [2025-01-16 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262624', 'tblTempVendorCDR_20' ) end [2025-01-16 17:56:23] Production.INFO: ProcessCDR(1,14262624,1,1,2) [2025-01-16 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262624', 'tblTempUsageDetail_20' ) start [2025-01-16 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262624', 'tblTempUsageDetail_20' ) end [2025-01-16 17:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:56:28] Production.INFO: ==1881== Releasing lock... [2025-01-16 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:56:28] Production.INFO: 65 MB #Memory Used# [2025-01-16 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:57:05 [end_date_ymd] => 2025-01-16 17:57:05 [RateCDR] => 1 ) [2025-01-16 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:57:05' and `end` < '2025-01-16 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:57:20] Production.INFO: count ==4895 [2025-01-16 17:57:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:57:05 - End Time 2025-01-16 17:57:05 [2025-01-16 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262629', 'tblTempUsageDetail_20' ) start [2025-01-16 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262629', 'tblTempUsageDetail_20' ) end [2025-01-16 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262629', 'tblTempVendorCDR_20' ) start [2025-01-16 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262629', 'tblTempVendorCDR_20' ) end [2025-01-16 17:57:22] Production.INFO: ProcessCDR(1,14262629,1,1,2) [2025-01-16 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262629', 'tblTempUsageDetail_20' ) start [2025-01-16 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262629', 'tblTempUsageDetail_20' ) end [2025-01-16 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:57:27] Production.INFO: ==1975== Releasing lock... [2025-01-16 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:57:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-16 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:58:05 [end_date_ymd] => 2025-01-16 17:58:05 [RateCDR] => 1 ) [2025-01-16 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:58:05' and `end` < '2025-01-16 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:58:20] Production.INFO: count ==4869 [2025-01-16 17:58:22] Production.ERROR: pbx CDR StartTime 2025-01-16 14:58:05 - End Time 2025-01-16 17:58:05 [2025-01-16 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262634', 'tblTempUsageDetail_20' ) start [2025-01-16 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262634', 'tblTempUsageDetail_20' ) end [2025-01-16 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262634', 'tblTempVendorCDR_20' ) start [2025-01-16 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262634', 'tblTempVendorCDR_20' ) end [2025-01-16 17:58:22] Production.INFO: ProcessCDR(1,14262634,1,1,2) [2025-01-16 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262634', 'tblTempUsageDetail_20' ) start [2025-01-16 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262634', 'tblTempUsageDetail_20' ) end [2025-01-16 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:58:27] Production.INFO: ==2076== Releasing lock... [2025-01-16 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:58:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-16 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 14:59:04 [end_date_ymd] => 2025-01-16 17:59:04 [RateCDR] => 1 ) [2025-01-16 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 14:59:04' and `end` < '2025-01-16 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 17:59:17] Production.INFO: count ==4868 [2025-01-16 17:59:19] Production.ERROR: pbx CDR StartTime 2025-01-16 14:59:04 - End Time 2025-01-16 17:59:04 [2025-01-16 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262639', 'tblTempUsageDetail_20' ) start [2025-01-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262639', 'tblTempUsageDetail_20' ) end [2025-01-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262639', 'tblTempVendorCDR_20' ) start [2025-01-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262639', 'tblTempVendorCDR_20' ) end [2025-01-16 17:59:19] Production.INFO: ProcessCDR(1,14262639,1,1,2) [2025-01-16 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262639', 'tblTempUsageDetail_20' ) start [2025-01-16 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262639', 'tblTempUsageDetail_20' ) end [2025-01-16 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 17:59:23] Production.INFO: ==2180== Releasing lock... [2025-01-16 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 17:59:23] Production.INFO: 64.5 MB #Memory Used# [2025-01-16 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:00:06 [end_date_ymd] => 2025-01-16 18:00:06 [RateCDR] => 1 ) [2025-01-16 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:00:06' and `end` < '2025-01-16 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:00:21] Production.INFO: count ==4872 [2025-01-16 18:00:23] Production.ERROR: pbx CDR StartTime 2025-01-16 15:00:06 - End Time 2025-01-16 18:00:06 [2025-01-16 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262645', 'tblTempUsageDetail_20' ) start [2025-01-16 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262645', 'tblTempUsageDetail_20' ) end [2025-01-16 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262645', 'tblTempVendorCDR_20' ) start [2025-01-16 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262645', 'tblTempVendorCDR_20' ) end [2025-01-16 18:00:23] Production.INFO: ProcessCDR(1,14262645,1,1,2) [2025-01-16 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262645', 'tblTempUsageDetail_20' ) start [2025-01-16 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262645', 'tblTempUsageDetail_20' ) end [2025-01-16 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:00:27] Production.INFO: ==2280== Releasing lock... [2025-01-16 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:00:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-16 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:01:04 [end_date_ymd] => 2025-01-16 18:01:04 [RateCDR] => 1 ) [2025-01-16 18:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:01:04' and `end` < '2025-01-16 18:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:01:20] Production.INFO: count ==4863 [2025-01-16 18:01:21] Production.ERROR: pbx CDR StartTime 2025-01-16 15:01:04 - End Time 2025-01-16 18:01:04 [2025-01-16 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262650', 'tblTempUsageDetail_20' ) start [2025-01-16 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262650', 'tblTempUsageDetail_20' ) end [2025-01-16 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262650', 'tblTempVendorCDR_20' ) start [2025-01-16 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262650', 'tblTempVendorCDR_20' ) end [2025-01-16 18:01:22] Production.INFO: ProcessCDR(1,14262650,1,1,2) [2025-01-16 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262650', 'tblTempUsageDetail_20' ) start [2025-01-16 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262650', 'tblTempUsageDetail_20' ) end [2025-01-16 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:01:26] Production.INFO: ==2395== Releasing lock... [2025-01-16 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:01:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-16 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:02:05 [end_date_ymd] => 2025-01-16 18:02:05 [RateCDR] => 1 ) [2025-01-16 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:02:05' and `end` < '2025-01-16 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:02:18] Production.INFO: count ==4852 [2025-01-16 18:02:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:02:05 - End Time 2025-01-16 18:02:05 [2025-01-16 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262655', 'tblTempUsageDetail_20' ) start [2025-01-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262655', 'tblTempUsageDetail_20' ) end [2025-01-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262655', 'tblTempVendorCDR_20' ) start [2025-01-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262655', 'tblTempVendorCDR_20' ) end [2025-01-16 18:02:20] Production.INFO: ProcessCDR(1,14262655,1,1,2) [2025-01-16 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262655', 'tblTempUsageDetail_20' ) start [2025-01-16 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262655', 'tblTempUsageDetail_20' ) end [2025-01-16 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:02:23] Production.INFO: ==2496== Releasing lock... [2025-01-16 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:02:23] Production.INFO: 64.25 MB #Memory Used# [2025-01-16 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:03:04 [end_date_ymd] => 2025-01-16 18:03:04 [RateCDR] => 1 ) [2025-01-16 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:03:04' and `end` < '2025-01-16 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:03:17] Production.INFO: count ==4844 [2025-01-16 18:03:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:03:04 - End Time 2025-01-16 18:03:04 [2025-01-16 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262660', 'tblTempUsageDetail_20' ) start [2025-01-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262660', 'tblTempUsageDetail_20' ) end [2025-01-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262660', 'tblTempVendorCDR_20' ) start [2025-01-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262660', 'tblTempVendorCDR_20' ) end [2025-01-16 18:03:20] Production.INFO: ProcessCDR(1,14262660,1,1,2) [2025-01-16 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262660', 'tblTempUsageDetail_20' ) start [2025-01-16 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262660', 'tblTempUsageDetail_20' ) end [2025-01-16 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:03:24] Production.INFO: ==2594== Releasing lock... [2025-01-16 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:03:24] Production.INFO: 64.25 MB #Memory Used# [2025-01-16 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:04:05 [end_date_ymd] => 2025-01-16 18:04:05 [RateCDR] => 1 ) [2025-01-16 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:04:05' and `end` < '2025-01-16 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:04:18] Production.INFO: count ==4838 [2025-01-16 18:04:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:04:05 - End Time 2025-01-16 18:04:05 [2025-01-16 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262665', 'tblTempUsageDetail_20' ) start [2025-01-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262665', 'tblTempUsageDetail_20' ) end [2025-01-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262665', 'tblTempVendorCDR_20' ) start [2025-01-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262665', 'tblTempVendorCDR_20' ) end [2025-01-16 18:04:20] Production.INFO: ProcessCDR(1,14262665,1,1,2) [2025-01-16 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262665', 'tblTempUsageDetail_20' ) start [2025-01-16 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262665', 'tblTempUsageDetail_20' ) end [2025-01-16 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:04:25] Production.INFO: ==2690== Releasing lock... [2025-01-16 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:04:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-16 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:05:04 [end_date_ymd] => 2025-01-16 18:05:04 [RateCDR] => 1 ) [2025-01-16 18:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:05:04' and `end` < '2025-01-16 18:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:05:17] Production.INFO: count ==4817 [2025-01-16 18:05:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:05:04 - End Time 2025-01-16 18:05:04 [2025-01-16 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262670', 'tblTempUsageDetail_20' ) start [2025-01-16 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262670', 'tblTempUsageDetail_20' ) end [2025-01-16 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262670', 'tblTempVendorCDR_20' ) start [2025-01-16 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262670', 'tblTempVendorCDR_20' ) end [2025-01-16 18:05:19] Production.INFO: ProcessCDR(1,14262670,1,1,2) [2025-01-16 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262670', 'tblTempUsageDetail_20' ) start [2025-01-16 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262670', 'tblTempUsageDetail_20' ) end [2025-01-16 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:05:23] Production.INFO: ==2791== Releasing lock... [2025-01-16 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:05:23] Production.INFO: 64 MB #Memory Used# [2025-01-16 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:06:05 [end_date_ymd] => 2025-01-16 18:06:05 [RateCDR] => 1 ) [2025-01-16 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:06:05' and `end` < '2025-01-16 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:06:18] Production.INFO: count ==4796 [2025-01-16 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:06:05 - End Time 2025-01-16 18:06:05 [2025-01-16 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262675', 'tblTempUsageDetail_20' ) start [2025-01-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262675', 'tblTempUsageDetail_20' ) end [2025-01-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262675', 'tblTempVendorCDR_20' ) start [2025-01-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262675', 'tblTempVendorCDR_20' ) end [2025-01-16 18:06:20] Production.INFO: ProcessCDR(1,14262675,1,1,2) [2025-01-16 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262675', 'tblTempUsageDetail_20' ) start [2025-01-16 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262675', 'tblTempUsageDetail_20' ) end [2025-01-16 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:06:25] Production.INFO: ==2888== Releasing lock... [2025-01-16 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:06:25] Production.INFO: 64 MB #Memory Used# [2025-01-16 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:07:05 [end_date_ymd] => 2025-01-16 18:07:05 [RateCDR] => 1 ) [2025-01-16 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:07:05' and `end` < '2025-01-16 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:07:18] Production.INFO: count ==4786 [2025-01-16 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:07:05 - End Time 2025-01-16 18:07:05 [2025-01-16 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262680', 'tblTempUsageDetail_20' ) start [2025-01-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262680', 'tblTempUsageDetail_20' ) end [2025-01-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262680', 'tblTempVendorCDR_20' ) start [2025-01-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262680', 'tblTempVendorCDR_20' ) end [2025-01-16 18:07:20] Production.INFO: ProcessCDR(1,14262680,1,1,2) [2025-01-16 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262680', 'tblTempUsageDetail_20' ) start [2025-01-16 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262680', 'tblTempUsageDetail_20' ) end [2025-01-16 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:07:25] Production.INFO: ==2988== Releasing lock... [2025-01-16 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:07:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-16 18:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:08:04 [end_date_ymd] => 2025-01-16 18:08:04 [RateCDR] => 1 ) [2025-01-16 18:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:08:04' and `end` < '2025-01-16 18:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:08:20] Production.INFO: count ==4784 [2025-01-16 18:08:22] Production.ERROR: pbx CDR StartTime 2025-01-16 15:08:04 - End Time 2025-01-16 18:08:04 [2025-01-16 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262685', 'tblTempUsageDetail_20' ) start [2025-01-16 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262685', 'tblTempUsageDetail_20' ) end [2025-01-16 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262685', 'tblTempVendorCDR_20' ) start [2025-01-16 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262685', 'tblTempVendorCDR_20' ) end [2025-01-16 18:08:22] Production.INFO: ProcessCDR(1,14262685,1,1,2) [2025-01-16 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262685', 'tblTempUsageDetail_20' ) start [2025-01-16 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262685', 'tblTempUsageDetail_20' ) end [2025-01-16 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:08:27] Production.INFO: ==3129== Releasing lock... [2025-01-16 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:08:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-16 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:09:05 [end_date_ymd] => 2025-01-16 18:09:05 [RateCDR] => 1 ) [2025-01-16 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:09:05' and `end` < '2025-01-16 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:09:21] Production.INFO: count ==4777 [2025-01-16 18:09:22] Production.ERROR: pbx CDR StartTime 2025-01-16 15:09:05 - End Time 2025-01-16 18:09:05 [2025-01-16 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262690', 'tblTempUsageDetail_20' ) start [2025-01-16 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262690', 'tblTempUsageDetail_20' ) end [2025-01-16 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262690', 'tblTempVendorCDR_20' ) start [2025-01-16 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262690', 'tblTempVendorCDR_20' ) end [2025-01-16 18:09:22] Production.INFO: ProcessCDR(1,14262690,1,1,2) [2025-01-16 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262690', 'tblTempUsageDetail_20' ) start [2025-01-16 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262690', 'tblTempUsageDetail_20' ) end [2025-01-16 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:09:27] Production.INFO: ==3227== Releasing lock... [2025-01-16 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:09:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-16 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:10:06 [end_date_ymd] => 2025-01-16 18:10:06 [RateCDR] => 1 ) [2025-01-16 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:10:06' and `end` < '2025-01-16 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:10:19] Production.INFO: count ==4776 [2025-01-16 18:10:21] Production.ERROR: pbx CDR StartTime 2025-01-16 15:10:06 - End Time 2025-01-16 18:10:06 [2025-01-16 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262696', 'tblTempUsageDetail_20' ) start [2025-01-16 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262696', 'tblTempUsageDetail_20' ) end [2025-01-16 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262696', 'tblTempVendorCDR_20' ) start [2025-01-16 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262696', 'tblTempVendorCDR_20' ) end [2025-01-16 18:10:22] Production.INFO: ProcessCDR(1,14262696,1,1,2) [2025-01-16 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262696', 'tblTempUsageDetail_20' ) start [2025-01-16 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262696', 'tblTempUsageDetail_20' ) end [2025-01-16 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:10:26] Production.INFO: ==3325== Releasing lock... [2025-01-16 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-16 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:11:05 [end_date_ymd] => 2025-01-16 18:11:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 15:11:05' and `end` < '2025-01-16 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-01-16 18:11:20] Production.INFO: count ==4740 [2025-01-16 18:11:22] Production.ERROR: pbx CDR StartTime 2025-01-16 15:11:05 - End Time 2025-01-16 18:11:05 [2025-01-16 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262701', 'tblTempUsageDetail_20' ) start [2025-01-16 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262701', 'tblTempUsageDetail_20' ) end [2025-01-16 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262701', 'tblTempVendorCDR_20' ) start [2025-01-16 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262701', 'tblTempVendorCDR_20' ) end [2025-01-16 18:11:22] Production.INFO: ProcessCDR(1,14262701,1,1,2) [2025-01-16 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262701', 'tblTempUsageDetail_20' ) start [2025-01-16 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262701', 'tblTempUsageDetail_20' ) end [2025-01-16 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:11:25] Production.INFO: ==3424== Releasing lock... [2025-01-16 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:11:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-16 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:12:05 [end_date_ymd] => 2025-01-16 18:12:05 [RateCDR] => 1 ) [2025-01-16 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:12:05' and `end` < '2025-01-16 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:12:20] Production.INFO: count ==4699 [2025-01-16 18:12:22] Production.ERROR: pbx CDR StartTime 2025-01-16 15:12:05 - End Time 2025-01-16 18:12:05 [2025-01-16 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262706', 'tblTempUsageDetail_20' ) start [2025-01-16 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262706', 'tblTempUsageDetail_20' ) end [2025-01-16 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262706', 'tblTempVendorCDR_20' ) start [2025-01-16 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262706', 'tblTempVendorCDR_20' ) end [2025-01-16 18:12:22] Production.INFO: ProcessCDR(1,14262706,1,1,2) [2025-01-16 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262706', 'tblTempUsageDetail_20' ) start [2025-01-16 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262706', 'tblTempUsageDetail_20' ) end [2025-01-16 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:12:27] Production.INFO: ==3525== Releasing lock... [2025-01-16 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:12:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-16 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:13:05 [end_date_ymd] => 2025-01-16 18:13:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 15:13:05' and `end` < '2025-01-16 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:13:18] Production.INFO: count ==4662 [2025-01-16 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:13:05 - End Time 2025-01-16 18:13:05 [2025-01-16 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262711', 'tblTempUsageDetail_20' ) start [2025-01-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262711', 'tblTempUsageDetail_20' ) end [2025-01-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262711', 'tblTempVendorCDR_20' ) start [2025-01-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262711', 'tblTempVendorCDR_20' ) end [2025-01-16 18:13:20] Production.INFO: ProcessCDR(1,14262711,1,1,2) [2025-01-16 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262711', 'tblTempUsageDetail_20' ) start [2025-01-16 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262711', 'tblTempUsageDetail_20' ) end [2025-01-16 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:13:23] Production.INFO: ==3626== Releasing lock... [2025-01-16 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:13:23] Production.INFO: 62.75 MB #Memory Used# [2025-01-16 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:14:05 [end_date_ymd] => 2025-01-16 18:14:05 [RateCDR] => 1 ) [2025-01-16 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:14:05' and `end` < '2025-01-16 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:14:18] Production.INFO: count ==4616 [2025-01-16 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:14:05 - End Time 2025-01-16 18:14:05 [2025-01-16 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262716', 'tblTempUsageDetail_20' ) start [2025-01-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262716', 'tblTempUsageDetail_20' ) end [2025-01-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262716', 'tblTempVendorCDR_20' ) start [2025-01-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262716', 'tblTempVendorCDR_20' ) end [2025-01-16 18:14:20] Production.INFO: ProcessCDR(1,14262716,1,1,2) [2025-01-16 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262716', 'tblTempUsageDetail_20' ) start [2025-01-16 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262716', 'tblTempUsageDetail_20' ) end [2025-01-16 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:14:25] Production.INFO: ==3727== Releasing lock... [2025-01-16 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:14:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-16 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:15:05 [end_date_ymd] => 2025-01-16 18:15:05 [RateCDR] => 1 ) [2025-01-16 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:15:05' and `end` < '2025-01-16 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:15:18] Production.INFO: count ==4556 [2025-01-16 18:15:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:15:05 - End Time 2025-01-16 18:15:05 [2025-01-16 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262721', 'tblTempUsageDetail_20' ) start [2025-01-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262721', 'tblTempUsageDetail_20' ) end [2025-01-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262721', 'tblTempVendorCDR_20' ) start [2025-01-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262721', 'tblTempVendorCDR_20' ) end [2025-01-16 18:15:20] Production.INFO: ProcessCDR(1,14262721,1,1,2) [2025-01-16 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262721', 'tblTempUsageDetail_20' ) start [2025-01-16 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262721', 'tblTempUsageDetail_20' ) end [2025-01-16 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:15:25] Production.INFO: ==3827== Releasing lock... [2025-01-16 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:15:25] Production.INFO: 62 MB #Memory Used# [2025-01-16 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:16:06 [end_date_ymd] => 2025-01-16 18:16:06 [RateCDR] => 1 ) [2025-01-16 18:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:16:06' and `end` < '2025-01-16 18:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:16:19] Production.INFO: count ==4515 [2025-01-16 18:16:21] Production.ERROR: pbx CDR StartTime 2025-01-16 15:16:06 - End Time 2025-01-16 18:16:06 [2025-01-16 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262726', 'tblTempUsageDetail_20' ) start [2025-01-16 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262726', 'tblTempUsageDetail_20' ) end [2025-01-16 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262726', 'tblTempVendorCDR_20' ) start [2025-01-16 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262726', 'tblTempVendorCDR_20' ) end [2025-01-16 18:16:21] Production.INFO: ProcessCDR(1,14262726,1,1,2) [2025-01-16 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262726', 'tblTempUsageDetail_20' ) start [2025-01-16 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262726', 'tblTempUsageDetail_20' ) end [2025-01-16 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:16:24] Production.INFO: ==3927== Releasing lock... [2025-01-16 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:16:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-16 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:17:05 [end_date_ymd] => 2025-01-16 18:17:05 [RateCDR] => 1 ) [2025-01-16 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:17:05' and `end` < '2025-01-16 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:17:18] Production.INFO: count ==4470 [2025-01-16 18:17:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:17:05 - End Time 2025-01-16 18:17:05 [2025-01-16 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262731', 'tblTempUsageDetail_20' ) start [2025-01-16 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262731', 'tblTempUsageDetail_20' ) end [2025-01-16 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262731', 'tblTempVendorCDR_20' ) start [2025-01-16 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262731', 'tblTempVendorCDR_20' ) end [2025-01-16 18:17:20] Production.INFO: ProcessCDR(1,14262731,1,1,2) [2025-01-16 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262731', 'tblTempUsageDetail_20' ) start [2025-01-16 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262731', 'tblTempUsageDetail_20' ) end [2025-01-16 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:17:24] Production.INFO: ==4028== Releasing lock... [2025-01-16 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:17:24] Production.INFO: 61.5 MB #Memory Used# [2025-01-16 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:18:05 [end_date_ymd] => 2025-01-16 18:18:05 [RateCDR] => 1 ) [2025-01-16 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:18:05' and `end` < '2025-01-16 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:18:19] Production.INFO: count ==4432 [2025-01-16 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-16 15:18:05 - End Time 2025-01-16 18:18:05 [2025-01-16 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262736', 'tblTempUsageDetail_20' ) start [2025-01-16 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262736', 'tblTempUsageDetail_20' ) end [2025-01-16 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262736', 'tblTempVendorCDR_20' ) start [2025-01-16 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262736', 'tblTempVendorCDR_20' ) end [2025-01-16 18:18:21] Production.INFO: ProcessCDR(1,14262736,1,1,2) [2025-01-16 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262736', 'tblTempUsageDetail_20' ) start [2025-01-16 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262736', 'tblTempUsageDetail_20' ) end [2025-01-16 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:18:25] Production.INFO: ==4126== Releasing lock... [2025-01-16 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:18:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-16 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:19:05 [end_date_ymd] => 2025-01-16 18:19:05 [RateCDR] => 1 ) [2025-01-16 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:19:05' and `end` < '2025-01-16 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:19:18] Production.INFO: count ==4366 [2025-01-16 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:19:05 - End Time 2025-01-16 18:19:05 [2025-01-16 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262741', 'tblTempUsageDetail_20' ) start [2025-01-16 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262741', 'tblTempUsageDetail_20' ) end [2025-01-16 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262741', 'tblTempVendorCDR_20' ) start [2025-01-16 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262741', 'tblTempVendorCDR_20' ) end [2025-01-16 18:19:20] Production.INFO: ProcessCDR(1,14262741,1,1,2) [2025-01-16 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262741', 'tblTempUsageDetail_20' ) start [2025-01-16 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262741', 'tblTempUsageDetail_20' ) end [2025-01-16 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:19:23] Production.INFO: ==4222== Releasing lock... [2025-01-16 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:19:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-16 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:20:05 [end_date_ymd] => 2025-01-16 18:20:05 [RateCDR] => 1 ) [2025-01-16 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:20:05' and `end` < '2025-01-16 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:20:18] Production.INFO: count ==4335 [2025-01-16 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:20:05 - End Time 2025-01-16 18:20:05 [2025-01-16 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262746', 'tblTempUsageDetail_20' ) start [2025-01-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262746', 'tblTempUsageDetail_20' ) end [2025-01-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262746', 'tblTempVendorCDR_20' ) start [2025-01-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262746', 'tblTempVendorCDR_20' ) end [2025-01-16 18:20:20] Production.INFO: ProcessCDR(1,14262746,1,1,2) [2025-01-16 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262746', 'tblTempUsageDetail_20' ) start [2025-01-16 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262746', 'tblTempUsageDetail_20' ) end [2025-01-16 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:20:25] Production.INFO: ==4325== Releasing lock... [2025-01-16 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:20:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-16 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:21:05 [end_date_ymd] => 2025-01-16 18:21:05 [RateCDR] => 1 ) [2025-01-16 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:21:05' and `end` < '2025-01-16 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:21:19] Production.INFO: count ==4211 [2025-01-16 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-16 15:21:05 - End Time 2025-01-16 18:21:05 [2025-01-16 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262752', 'tblTempUsageDetail_20' ) start [2025-01-16 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262752', 'tblTempUsageDetail_20' ) end [2025-01-16 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262752', 'tblTempVendorCDR_20' ) start [2025-01-16 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262752', 'tblTempVendorCDR_20' ) end [2025-01-16 18:21:21] Production.INFO: ProcessCDR(1,14262752,1,1,2) [2025-01-16 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262752', 'tblTempUsageDetail_20' ) start [2025-01-16 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262752', 'tblTempUsageDetail_20' ) end [2025-01-16 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:21:25] Production.INFO: ==4425== Releasing lock... [2025-01-16 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:21:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-16 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:22:05 [end_date_ymd] => 2025-01-16 18:22:05 [RateCDR] => 1 ) [2025-01-16 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:22:05' and `end` < '2025-01-16 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:22:18] Production.INFO: count ==4141 [2025-01-16 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:22:05 - End Time 2025-01-16 18:22:05 [2025-01-16 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262757', 'tblTempUsageDetail_20' ) start [2025-01-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262757', 'tblTempUsageDetail_20' ) end [2025-01-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262757', 'tblTempVendorCDR_20' ) start [2025-01-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262757', 'tblTempVendorCDR_20' ) end [2025-01-16 18:22:20] Production.INFO: ProcessCDR(1,14262757,1,1,2) [2025-01-16 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262757', 'tblTempUsageDetail_20' ) start [2025-01-16 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262757', 'tblTempUsageDetail_20' ) end [2025-01-16 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:22:24] Production.INFO: ==4524== Releasing lock... [2025-01-16 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:22:24] Production.INFO: 59 MB #Memory Used# [2025-01-16 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:23:05 [end_date_ymd] => 2025-01-16 18:23:05 [RateCDR] => 1 ) [2025-01-16 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:23:05' and `end` < '2025-01-16 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:23:18] Production.INFO: count ==4073 [2025-01-16 18:23:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:23:05 - End Time 2025-01-16 18:23:05 [2025-01-16 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262762', 'tblTempUsageDetail_20' ) start [2025-01-16 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262762', 'tblTempUsageDetail_20' ) end [2025-01-16 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262762', 'tblTempVendorCDR_20' ) start [2025-01-16 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262762', 'tblTempVendorCDR_20' ) end [2025-01-16 18:23:19] Production.INFO: ProcessCDR(1,14262762,1,1,2) [2025-01-16 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262762', 'tblTempUsageDetail_20' ) start [2025-01-16 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262762', 'tblTempUsageDetail_20' ) end [2025-01-16 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:23:22] Production.INFO: ==4627== Releasing lock... [2025-01-16 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:23:22] Production.INFO: 58.5 MB #Memory Used# [2025-01-16 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:24:05 [end_date_ymd] => 2025-01-16 18:24:05 [RateCDR] => 1 ) [2025-01-16 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:24:05' and `end` < '2025-01-16 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:24:18] Production.INFO: count ==4028 [2025-01-16 18:24:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:24:05 - End Time 2025-01-16 18:24:05 [2025-01-16 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262767', 'tblTempUsageDetail_20' ) start [2025-01-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262767', 'tblTempUsageDetail_20' ) end [2025-01-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262767', 'tblTempVendorCDR_20' ) start [2025-01-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262767', 'tblTempVendorCDR_20' ) end [2025-01-16 18:24:19] Production.INFO: ProcessCDR(1,14262767,1,1,2) [2025-01-16 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262767', 'tblTempUsageDetail_20' ) start [2025-01-16 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262767', 'tblTempUsageDetail_20' ) end [2025-01-16 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:24:24] Production.INFO: ==4767== Releasing lock... [2025-01-16 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:24:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-16 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:25:05 [end_date_ymd] => 2025-01-16 18:25:05 [RateCDR] => 1 ) [2025-01-16 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:25:05' and `end` < '2025-01-16 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:25:18] Production.INFO: count ==3992 [2025-01-16 18:25:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:25:05 - End Time 2025-01-16 18:25:05 [2025-01-16 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262772', 'tblTempUsageDetail_20' ) start [2025-01-16 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262772', 'tblTempUsageDetail_20' ) end [2025-01-16 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262772', 'tblTempVendorCDR_20' ) start [2025-01-16 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262772', 'tblTempVendorCDR_20' ) end [2025-01-16 18:25:19] Production.INFO: ProcessCDR(1,14262772,1,1,2) [2025-01-16 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262772', 'tblTempUsageDetail_20' ) start [2025-01-16 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262772', 'tblTempUsageDetail_20' ) end [2025-01-16 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:25:24] Production.INFO: ==4863== Releasing lock... [2025-01-16 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:25:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-16 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:26:05 [end_date_ymd] => 2025-01-16 18:26:05 [RateCDR] => 1 ) [2025-01-16 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:26:05' and `end` < '2025-01-16 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:26:18] Production.INFO: count ==3962 [2025-01-16 18:26:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:26:05 - End Time 2025-01-16 18:26:05 [2025-01-16 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262777', 'tblTempUsageDetail_20' ) start [2025-01-16 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262777', 'tblTempUsageDetail_20' ) end [2025-01-16 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262777', 'tblTempVendorCDR_20' ) start [2025-01-16 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262777', 'tblTempVendorCDR_20' ) end [2025-01-16 18:26:20] Production.INFO: ProcessCDR(1,14262777,1,1,2) [2025-01-16 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262777', 'tblTempUsageDetail_20' ) start [2025-01-16 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262777', 'tblTempUsageDetail_20' ) end [2025-01-16 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:26:23] Production.INFO: ==4973== Releasing lock... [2025-01-16 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:26:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-16 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:27:05 [end_date_ymd] => 2025-01-16 18:27:05 [RateCDR] => 1 ) [2025-01-16 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:27:05' and `end` < '2025-01-16 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:27:18] Production.INFO: count ==3930 [2025-01-16 18:27:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:27:05 - End Time 2025-01-16 18:27:05 [2025-01-16 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262782', 'tblTempUsageDetail_20' ) start [2025-01-16 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262782', 'tblTempUsageDetail_20' ) end [2025-01-16 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262782', 'tblTempVendorCDR_20' ) start [2025-01-16 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262782', 'tblTempVendorCDR_20' ) end [2025-01-16 18:27:19] Production.INFO: ProcessCDR(1,14262782,1,1,2) [2025-01-16 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262782', 'tblTempUsageDetail_20' ) start [2025-01-16 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262782', 'tblTempUsageDetail_20' ) end [2025-01-16 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:27:24] Production.INFO: ==5056== Releasing lock... [2025-01-16 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:27:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-16 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:28:05 [end_date_ymd] => 2025-01-16 18:28:05 [RateCDR] => 1 ) [2025-01-16 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:28:05' and `end` < '2025-01-16 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:28:18] Production.INFO: count ==3919 [2025-01-16 18:28:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:28:05 - End Time 2025-01-16 18:28:05 [2025-01-16 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262787', 'tblTempUsageDetail_20' ) start [2025-01-16 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262787', 'tblTempUsageDetail_20' ) end [2025-01-16 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262787', 'tblTempVendorCDR_20' ) start [2025-01-16 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262787', 'tblTempVendorCDR_20' ) end [2025-01-16 18:28:19] Production.INFO: ProcessCDR(1,14262787,1,1,2) [2025-01-16 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262787', 'tblTempUsageDetail_20' ) start [2025-01-16 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262787', 'tblTempUsageDetail_20' ) end [2025-01-16 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:28:24] Production.INFO: ==5128== Releasing lock... [2025-01-16 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:28:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:29:05 [end_date_ymd] => 2025-01-16 18:29:05 [RateCDR] => 1 ) [2025-01-16 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:29:05' and `end` < '2025-01-16 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:29:18] Production.INFO: count ==3918 [2025-01-16 18:29:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:29:05 - End Time 2025-01-16 18:29:05 [2025-01-16 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262792', 'tblTempUsageDetail_20' ) start [2025-01-16 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262792', 'tblTempUsageDetail_20' ) end [2025-01-16 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262792', 'tblTempVendorCDR_20' ) start [2025-01-16 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262792', 'tblTempVendorCDR_20' ) end [2025-01-16 18:29:19] Production.INFO: ProcessCDR(1,14262792,1,1,2) [2025-01-16 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262792', 'tblTempUsageDetail_20' ) start [2025-01-16 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262792', 'tblTempUsageDetail_20' ) end [2025-01-16 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:29:23] Production.INFO: ==5202== Releasing lock... [2025-01-16 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:29:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-16 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:30:06 [end_date_ymd] => 2025-01-16 18:30:06 [RateCDR] => 1 ) [2025-01-16 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:30:06' and `end` < '2025-01-16 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:30:19] Production.INFO: count ==3871 [2025-01-16 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:30:06 - End Time 2025-01-16 18:30:06 [2025-01-16 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262798', 'tblTempUsageDetail_20' ) start [2025-01-16 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262798', 'tblTempUsageDetail_20' ) end [2025-01-16 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262798', 'tblTempVendorCDR_20' ) start [2025-01-16 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262798', 'tblTempVendorCDR_20' ) end [2025-01-16 18:30:20] Production.INFO: ProcessCDR(1,14262798,1,1,2) [2025-01-16 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262798', 'tblTempUsageDetail_20' ) start [2025-01-16 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262798', 'tblTempUsageDetail_20' ) end [2025-01-16 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:30:25] Production.INFO: ==5275== Releasing lock... [2025-01-16 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:30:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:31:05 [end_date_ymd] => 2025-01-16 18:31:05 [RateCDR] => 1 ) [2025-01-16 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:31:05' and `end` < '2025-01-16 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:31:18] Production.INFO: count ==3817 [2025-01-16 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:31:05 - End Time 2025-01-16 18:31:05 [2025-01-16 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262803', 'tblTempUsageDetail_20' ) start [2025-01-16 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262803', 'tblTempUsageDetail_20' ) end [2025-01-16 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262803', 'tblTempVendorCDR_20' ) start [2025-01-16 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262803', 'tblTempVendorCDR_20' ) end [2025-01-16 18:31:20] Production.INFO: ProcessCDR(1,14262803,1,1,2) [2025-01-16 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262803', 'tblTempUsageDetail_20' ) start [2025-01-16 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262803', 'tblTempUsageDetail_20' ) end [2025-01-16 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:31:24] Production.INFO: ==5349== Releasing lock... [2025-01-16 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:31:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-16 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:32:05 [end_date_ymd] => 2025-01-16 18:32:05 [RateCDR] => 1 ) [2025-01-16 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:32:05' and `end` < '2025-01-16 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:32:19] Production.INFO: count ==3777 [2025-01-16 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:32:05 - End Time 2025-01-16 18:32:05 [2025-01-16 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262808', 'tblTempUsageDetail_20' ) start [2025-01-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262808', 'tblTempUsageDetail_20' ) end [2025-01-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262808', 'tblTempVendorCDR_20' ) start [2025-01-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262808', 'tblTempVendorCDR_20' ) end [2025-01-16 18:32:20] Production.INFO: ProcessCDR(1,14262808,1,1,2) [2025-01-16 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262808', 'tblTempUsageDetail_20' ) start [2025-01-16 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262808', 'tblTempUsageDetail_20' ) end [2025-01-16 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:32:25] Production.INFO: ==5421== Releasing lock... [2025-01-16 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:32:25] Production.INFO: 56.5 MB #Memory Used# [2025-01-16 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:33:05 [end_date_ymd] => 2025-01-16 18:33:05 [RateCDR] => 1 ) [2025-01-16 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:33:05' and `end` < '2025-01-16 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:33:19] Production.INFO: count ==3737 [2025-01-16 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:33:05 - End Time 2025-01-16 18:33:05 [2025-01-16 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262813', 'tblTempUsageDetail_20' ) start [2025-01-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262813', 'tblTempUsageDetail_20' ) end [2025-01-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262813', 'tblTempVendorCDR_20' ) start [2025-01-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262813', 'tblTempVendorCDR_20' ) end [2025-01-16 18:33:20] Production.INFO: ProcessCDR(1,14262813,1,1,2) [2025-01-16 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262813', 'tblTempUsageDetail_20' ) start [2025-01-16 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262813', 'tblTempUsageDetail_20' ) end [2025-01-16 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:33:24] Production.INFO: ==5492== Releasing lock... [2025-01-16 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:33:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-16 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:34:05 [end_date_ymd] => 2025-01-16 18:34:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 15:34:05' and `end` < '2025-01-16 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-01-16 18:34:19] Production.INFO: count ==3700 [2025-01-16 18:34:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:34:05 - End Time 2025-01-16 18:34:05 [2025-01-16 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262818', 'tblTempUsageDetail_20' ) start [2025-01-16 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262818', 'tblTempUsageDetail_20' ) end [2025-01-16 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262818', 'tblTempVendorCDR_20' ) start [2025-01-16 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262818', 'tblTempVendorCDR_20' ) end [2025-01-16 18:34:21] Production.INFO: ProcessCDR(1,14262818,1,1,2) [2025-01-16 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262818', 'tblTempUsageDetail_20' ) start [2025-01-16 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262818', 'tblTempUsageDetail_20' ) end [2025-01-16 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:34:25] Production.INFO: ==5563== Releasing lock... [2025-01-16 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:34:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:35:05 [end_date_ymd] => 2025-01-16 18:35:05 [RateCDR] => 1 ) [2025-01-16 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:35:05' and `end` < '2025-01-16 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:35:20] Production.INFO: count ==3696 [2025-01-16 18:35:22] Production.ERROR: pbx CDR StartTime 2025-01-16 15:35:05 - End Time 2025-01-16 18:35:05 [2025-01-16 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262823', 'tblTempUsageDetail_20' ) start [2025-01-16 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262823', 'tblTempUsageDetail_20' ) end [2025-01-16 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262823', 'tblTempVendorCDR_20' ) start [2025-01-16 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262823', 'tblTempVendorCDR_20' ) end [2025-01-16 18:35:22] Production.INFO: ProcessCDR(1,14262823,1,1,2) [2025-01-16 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262823', 'tblTempUsageDetail_20' ) start [2025-01-16 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262823', 'tblTempUsageDetail_20' ) end [2025-01-16 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:35:25] Production.INFO: ==5633== Releasing lock... [2025-01-16 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:35:25] Production.INFO: 56 MB #Memory Used# [2025-01-16 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:36:05 [end_date_ymd] => 2025-01-16 18:36:05 [RateCDR] => 1 ) [2025-01-16 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:36:05' and `end` < '2025-01-16 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:36:18] Production.INFO: count ==3686 [2025-01-16 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:36:05 - End Time 2025-01-16 18:36:05 [2025-01-16 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262828', 'tblTempUsageDetail_20' ) start [2025-01-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262828', 'tblTempUsageDetail_20' ) end [2025-01-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262828', 'tblTempVendorCDR_20' ) start [2025-01-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262828', 'tblTempVendorCDR_20' ) end [2025-01-16 18:36:19] Production.INFO: ProcessCDR(1,14262828,1,1,2) [2025-01-16 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262828', 'tblTempUsageDetail_20' ) start [2025-01-16 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262828', 'tblTempUsageDetail_20' ) end [2025-01-16 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:36:24] Production.INFO: ==5703== Releasing lock... [2025-01-16 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:36:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:37:05 [end_date_ymd] => 2025-01-16 18:37:05 [RateCDR] => 1 ) [2025-01-16 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:37:05' and `end` < '2025-01-16 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:37:18] Production.INFO: count ==3675 [2025-01-16 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:37:05 - End Time 2025-01-16 18:37:05 [2025-01-16 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262833', 'tblTempUsageDetail_20' ) start [2025-01-16 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262833', 'tblTempUsageDetail_20' ) end [2025-01-16 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262833', 'tblTempVendorCDR_20' ) start [2025-01-16 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262833', 'tblTempVendorCDR_20' ) end [2025-01-16 18:37:19] Production.INFO: ProcessCDR(1,14262833,1,1,2) [2025-01-16 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262833', 'tblTempUsageDetail_20' ) start [2025-01-16 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262833', 'tblTempUsageDetail_20' ) end [2025-01-16 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:37:24] Production.INFO: ==5773== Releasing lock... [2025-01-16 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:37:24] Production.INFO: 56 MB #Memory Used# [2025-01-16 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:38:05 [end_date_ymd] => 2025-01-16 18:38:05 [RateCDR] => 1 ) [2025-01-16 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:38:05' and `end` < '2025-01-16 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:38:19] Production.INFO: count ==3668 [2025-01-16 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:38:05 - End Time 2025-01-16 18:38:05 [2025-01-16 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262838', 'tblTempUsageDetail_20' ) start [2025-01-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262838', 'tblTempUsageDetail_20' ) end [2025-01-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262838', 'tblTempVendorCDR_20' ) start [2025-01-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262838', 'tblTempVendorCDR_20' ) end [2025-01-16 18:38:20] Production.INFO: ProcessCDR(1,14262838,1,1,2) [2025-01-16 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262838', 'tblTempUsageDetail_20' ) start [2025-01-16 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262838', 'tblTempUsageDetail_20' ) end [2025-01-16 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:38:25] Production.INFO: ==5846== Releasing lock... [2025-01-16 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:38:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:39:05 [end_date_ymd] => 2025-01-16 18:39:05 [RateCDR] => 1 ) [2025-01-16 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:39:05' and `end` < '2025-01-16 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:39:19] Production.INFO: count ==3657 [2025-01-16 18:39:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:39:05 - End Time 2025-01-16 18:39:05 [2025-01-16 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262843', 'tblTempUsageDetail_20' ) start [2025-01-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262843', 'tblTempUsageDetail_20' ) end [2025-01-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262843', 'tblTempVendorCDR_20' ) start [2025-01-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262843', 'tblTempVendorCDR_20' ) end [2025-01-16 18:39:20] Production.INFO: ProcessCDR(1,14262843,1,1,2) [2025-01-16 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262843', 'tblTempUsageDetail_20' ) start [2025-01-16 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262843', 'tblTempUsageDetail_20' ) end [2025-01-16 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:39:25] Production.INFO: ==5957== Releasing lock... [2025-01-16 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:39:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-16 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:40:06 [end_date_ymd] => 2025-01-16 18:40:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 15:40:06' and `end` < '2025-01-16 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-01-16 18:40:19] Production.INFO: count ==3654 [2025-01-16 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:40:06 - End Time 2025-01-16 18:40:06 [2025-01-16 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262849', 'tblTempUsageDetail_20' ) start [2025-01-16 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262849', 'tblTempUsageDetail_20' ) end [2025-01-16 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262849', 'tblTempVendorCDR_20' ) start [2025-01-16 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262849', 'tblTempVendorCDR_20' ) end [2025-01-16 18:40:20] Production.INFO: ProcessCDR(1,14262849,1,1,2) [2025-01-16 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262849', 'tblTempUsageDetail_20' ) start [2025-01-16 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262849', 'tblTempUsageDetail_20' ) end [2025-01-16 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:40:25] Production.INFO: ==6031== Releasing lock... [2025-01-16 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:40:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:41:05 [end_date_ymd] => 2025-01-16 18:41:05 [RateCDR] => 1 ) [2025-01-16 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:41:05' and `end` < '2025-01-16 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:41:18] Production.INFO: count ==3661 [2025-01-16 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:41:05 - End Time 2025-01-16 18:41:05 [2025-01-16 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262854', 'tblTempUsageDetail_20' ) start [2025-01-16 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262854', 'tblTempUsageDetail_20' ) end [2025-01-16 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262854', 'tblTempVendorCDR_20' ) start [2025-01-16 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262854', 'tblTempVendorCDR_20' ) end [2025-01-16 18:41:20] Production.INFO: ProcessCDR(1,14262854,1,1,2) [2025-01-16 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262854', 'tblTempUsageDetail_20' ) start [2025-01-16 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262854', 'tblTempUsageDetail_20' ) end [2025-01-16 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:41:24] Production.INFO: ==6108== Releasing lock... [2025-01-16 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:41:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-16 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:42:05 [end_date_ymd] => 2025-01-16 18:42:05 [RateCDR] => 1 ) [2025-01-16 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:42:05' and `end` < '2025-01-16 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:42:18] Production.INFO: count ==3637 [2025-01-16 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:42:05 - End Time 2025-01-16 18:42:05 [2025-01-16 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262859', 'tblTempUsageDetail_20' ) start [2025-01-16 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262859', 'tblTempUsageDetail_20' ) end [2025-01-16 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262859', 'tblTempVendorCDR_20' ) start [2025-01-16 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262859', 'tblTempVendorCDR_20' ) end [2025-01-16 18:42:19] Production.INFO: ProcessCDR(1,14262859,1,1,2) [2025-01-16 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262859', 'tblTempUsageDetail_20' ) start [2025-01-16 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262859', 'tblTempUsageDetail_20' ) end [2025-01-16 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:42:22] Production.INFO: ==6180== Releasing lock... [2025-01-16 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:42:22] Production.INFO: 55.25 MB #Memory Used# [2025-01-16 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:43:05 [end_date_ymd] => 2025-01-16 18:43:05 [RateCDR] => 1 ) [2025-01-16 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:43:05' and `end` < '2025-01-16 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:43:19] Production.INFO: count ==3632 [2025-01-16 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-16 15:43:05 - End Time 2025-01-16 18:43:05 [2025-01-16 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262864', 'tblTempUsageDetail_20' ) start [2025-01-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262864', 'tblTempUsageDetail_20' ) end [2025-01-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262864', 'tblTempVendorCDR_20' ) start [2025-01-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262864', 'tblTempVendorCDR_20' ) end [2025-01-16 18:43:20] Production.INFO: ProcessCDR(1,14262864,1,1,2) [2025-01-16 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262864', 'tblTempUsageDetail_20' ) start [2025-01-16 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262864', 'tblTempUsageDetail_20' ) end [2025-01-16 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:43:24] Production.INFO: ==6250== Releasing lock... [2025-01-16 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:43:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-16 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:44:05 [end_date_ymd] => 2025-01-16 18:44:05 [RateCDR] => 1 ) [2025-01-16 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:44:05' and `end` < '2025-01-16 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:44:18] Production.INFO: count ==3621 [2025-01-16 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:44:05 - End Time 2025-01-16 18:44:05 [2025-01-16 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262869', 'tblTempUsageDetail_20' ) start [2025-01-16 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262869', 'tblTempUsageDetail_20' ) end [2025-01-16 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262869', 'tblTempVendorCDR_20' ) start [2025-01-16 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262869', 'tblTempVendorCDR_20' ) end [2025-01-16 18:44:19] Production.INFO: ProcessCDR(1,14262869,1,1,2) [2025-01-16 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262869', 'tblTempUsageDetail_20' ) start [2025-01-16 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262869', 'tblTempUsageDetail_20' ) end [2025-01-16 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:44:22] Production.INFO: ==6325== Releasing lock... [2025-01-16 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:44:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:45:05 [end_date_ymd] => 2025-01-16 18:45:05 [RateCDR] => 1 ) [2025-01-16 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:45:05' and `end` < '2025-01-16 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:45:18] Production.INFO: count ==3622 [2025-01-16 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:45:05 - End Time 2025-01-16 18:45:05 [2025-01-16 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262874', 'tblTempUsageDetail_20' ) start [2025-01-16 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262874', 'tblTempUsageDetail_20' ) end [2025-01-16 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262874', 'tblTempVendorCDR_20' ) start [2025-01-16 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262874', 'tblTempVendorCDR_20' ) end [2025-01-16 18:45:19] Production.INFO: ProcessCDR(1,14262874,1,1,2) [2025-01-16 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262874', 'tblTempUsageDetail_20' ) start [2025-01-16 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262874', 'tblTempUsageDetail_20' ) end [2025-01-16 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:45:23] Production.INFO: ==6395== Releasing lock... [2025-01-16 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:45:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-16 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:46:05 [end_date_ymd] => 2025-01-16 18:46:05 [RateCDR] => 1 ) [2025-01-16 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:46:05' and `end` < '2025-01-16 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:46:21] Production.INFO: count ==3590 [2025-01-16 18:46:22] Production.ERROR: pbx CDR StartTime 2025-01-16 15:46:05 - End Time 2025-01-16 18:46:05 [2025-01-16 18:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262879', 'tblTempUsageDetail_20' ) start [2025-01-16 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262879', 'tblTempUsageDetail_20' ) end [2025-01-16 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262879', 'tblTempVendorCDR_20' ) start [2025-01-16 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262879', 'tblTempVendorCDR_20' ) end [2025-01-16 18:46:22] Production.INFO: ProcessCDR(1,14262879,1,1,2) [2025-01-16 18:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262879', 'tblTempUsageDetail_20' ) start [2025-01-16 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262879', 'tblTempUsageDetail_20' ) end [2025-01-16 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:46:26] Production.INFO: ==6463== Releasing lock... [2025-01-16 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:46:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-16 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:47:05 [end_date_ymd] => 2025-01-16 18:47:05 [RateCDR] => 1 ) [2025-01-16 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:47:05' and `end` < '2025-01-16 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:47:20] Production.INFO: count ==3547 [2025-01-16 18:47:21] Production.ERROR: pbx CDR StartTime 2025-01-16 15:47:05 - End Time 2025-01-16 18:47:05 [2025-01-16 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262884', 'tblTempUsageDetail_20' ) start [2025-01-16 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262884', 'tblTempUsageDetail_20' ) end [2025-01-16 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262884', 'tblTempVendorCDR_20' ) start [2025-01-16 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262884', 'tblTempVendorCDR_20' ) end [2025-01-16 18:47:21] Production.INFO: ProcessCDR(1,14262884,1,1,2) [2025-01-16 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262884', 'tblTempUsageDetail_20' ) start [2025-01-16 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262884', 'tblTempUsageDetail_20' ) end [2025-01-16 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:47:26] Production.INFO: ==6535== Releasing lock... [2025-01-16 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:47:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-16 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:48:04 [end_date_ymd] => 2025-01-16 18:48:04 [RateCDR] => 1 ) [2025-01-16 18:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:48:04' and `end` < '2025-01-16 18:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:48:18] Production.INFO: count ==3510 [2025-01-16 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:48:04 - End Time 2025-01-16 18:48:04 [2025-01-16 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262889', 'tblTempUsageDetail_20' ) start [2025-01-16 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262889', 'tblTempUsageDetail_20' ) end [2025-01-16 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262889', 'tblTempVendorCDR_20' ) start [2025-01-16 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262889', 'tblTempVendorCDR_20' ) end [2025-01-16 18:48:19] Production.INFO: ProcessCDR(1,14262889,1,1,2) [2025-01-16 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262889', 'tblTempUsageDetail_20' ) start [2025-01-16 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262889', 'tblTempUsageDetail_20' ) end [2025-01-16 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:48:23] Production.INFO: ==6604== Releasing lock... [2025-01-16 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:48:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-16 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:49:05 [end_date_ymd] => 2025-01-16 18:49:05 [RateCDR] => 1 ) [2025-01-16 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:49:05' and `end` < '2025-01-16 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:49:18] Production.INFO: count ==3459 [2025-01-16 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:49:05 - End Time 2025-01-16 18:49:05 [2025-01-16 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262894', 'tblTempUsageDetail_20' ) start [2025-01-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262894', 'tblTempUsageDetail_20' ) end [2025-01-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262894', 'tblTempVendorCDR_20' ) start [2025-01-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262894', 'tblTempVendorCDR_20' ) end [2025-01-16 18:49:19] Production.INFO: ProcessCDR(1,14262894,1,1,2) [2025-01-16 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262894', 'tblTempUsageDetail_20' ) start [2025-01-16 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262894', 'tblTempUsageDetail_20' ) end [2025-01-16 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:49:22] Production.INFO: ==6678== Releasing lock... [2025-01-16 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:49:22] Production.INFO: 54 MB #Memory Used# [2025-01-16 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:50:05 [end_date_ymd] => 2025-01-16 18:50:05 [RateCDR] => 1 ) [2025-01-16 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:50:05' and `end` < '2025-01-16 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:50:18] Production.INFO: count ==3412 [2025-01-16 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:50:05 - End Time 2025-01-16 18:50:05 [2025-01-16 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262899', 'tblTempUsageDetail_20' ) start [2025-01-16 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262899', 'tblTempUsageDetail_20' ) end [2025-01-16 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262899', 'tblTempVendorCDR_20' ) start [2025-01-16 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262899', 'tblTempVendorCDR_20' ) end [2025-01-16 18:50:19] Production.INFO: ProcessCDR(1,14262899,1,1,2) [2025-01-16 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262899', 'tblTempUsageDetail_20' ) start [2025-01-16 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262899', 'tblTempUsageDetail_20' ) end [2025-01-16 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:50:23] Production.INFO: ==6754== Releasing lock... [2025-01-16 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:50:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-16 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:51:04 [end_date_ymd] => 2025-01-16 18:51:04 [RateCDR] => 1 ) [2025-01-16 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:51:04' and `end` < '2025-01-16 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:51:17] Production.INFO: count ==3368 [2025-01-16 18:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 15:51:04 - End Time 2025-01-16 18:51:04 [2025-01-16 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262905', 'tblTempUsageDetail_20' ) start [2025-01-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262905', 'tblTempUsageDetail_20' ) end [2025-01-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262905', 'tblTempVendorCDR_20' ) start [2025-01-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262905', 'tblTempVendorCDR_20' ) end [2025-01-16 18:51:18] Production.INFO: ProcessCDR(1,14262905,1,1,2) [2025-01-16 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262905', 'tblTempUsageDetail_20' ) start [2025-01-16 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262905', 'tblTempUsageDetail_20' ) end [2025-01-16 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:51:22] Production.INFO: ==6826== Releasing lock... [2025-01-16 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:51:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-16 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:52:05 [end_date_ymd] => 2025-01-16 18:52:05 [RateCDR] => 1 ) [2025-01-16 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:52:05' and `end` < '2025-01-16 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:52:18] Production.INFO: count ==3351 [2025-01-16 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:52:05 - End Time 2025-01-16 18:52:05 [2025-01-16 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262910', 'tblTempUsageDetail_20' ) start [2025-01-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262910', 'tblTempUsageDetail_20' ) end [2025-01-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262910', 'tblTempVendorCDR_20' ) start [2025-01-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262910', 'tblTempVendorCDR_20' ) end [2025-01-16 18:52:19] Production.INFO: ProcessCDR(1,14262910,1,1,2) [2025-01-16 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262910', 'tblTempUsageDetail_20' ) start [2025-01-16 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262910', 'tblTempUsageDetail_20' ) end [2025-01-16 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:52:22] Production.INFO: ==6898== Releasing lock... [2025-01-16 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:52:22] Production.INFO: 53 MB #Memory Used# [2025-01-16 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:53:04 [end_date_ymd] => 2025-01-16 18:53:04 [RateCDR] => 1 ) [2025-01-16 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:53:04' and `end` < '2025-01-16 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:53:17] Production.INFO: count ==3348 [2025-01-16 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 15:53:04 - End Time 2025-01-16 18:53:04 [2025-01-16 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262915', 'tblTempUsageDetail_20' ) start [2025-01-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262915', 'tblTempUsageDetail_20' ) end [2025-01-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262915', 'tblTempVendorCDR_20' ) start [2025-01-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262915', 'tblTempVendorCDR_20' ) end [2025-01-16 18:53:18] Production.INFO: ProcessCDR(1,14262915,1,1,2) [2025-01-16 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262915', 'tblTempUsageDetail_20' ) start [2025-01-16 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262915', 'tblTempUsageDetail_20' ) end [2025-01-16 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:53:22] Production.INFO: ==6968== Releasing lock... [2025-01-16 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:53:22] Production.INFO: 53 MB #Memory Used# [2025-01-16 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:54:05 [end_date_ymd] => 2025-01-16 18:54:05 [RateCDR] => 1 ) [2025-01-16 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:54:05' and `end` < '2025-01-16 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:54:18] Production.INFO: count ==3338 [2025-01-16 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:54:05 - End Time 2025-01-16 18:54:05 [2025-01-16 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262920', 'tblTempUsageDetail_20' ) start [2025-01-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262920', 'tblTempUsageDetail_20' ) end [2025-01-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262920', 'tblTempVendorCDR_20' ) start [2025-01-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262920', 'tblTempVendorCDR_20' ) end [2025-01-16 18:54:19] Production.INFO: ProcessCDR(1,14262920,1,1,2) [2025-01-16 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262920', 'tblTempUsageDetail_20' ) start [2025-01-16 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262920', 'tblTempUsageDetail_20' ) end [2025-01-16 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:54:24] Production.INFO: ==7042== Releasing lock... [2025-01-16 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:54:24] Production.INFO: 53 MB #Memory Used# [2025-01-16 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:55:05 [end_date_ymd] => 2025-01-16 18:55:05 [RateCDR] => 1 ) [2025-01-16 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:55:05' and `end` < '2025-01-16 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:55:22] Production.INFO: count ==3324 [2025-01-16 18:55:23] Production.ERROR: pbx CDR StartTime 2025-01-16 15:55:05 - End Time 2025-01-16 18:55:05 [2025-01-16 18:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262925', 'tblTempUsageDetail_20' ) start [2025-01-16 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262925', 'tblTempUsageDetail_20' ) end [2025-01-16 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262925', 'tblTempVendorCDR_20' ) start [2025-01-16 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262925', 'tblTempVendorCDR_20' ) end [2025-01-16 18:55:23] Production.INFO: ProcessCDR(1,14262925,1,1,2) [2025-01-16 18:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262925', 'tblTempUsageDetail_20' ) start [2025-01-16 18:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262925', 'tblTempUsageDetail_20' ) end [2025-01-16 18:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:55:28] Production.INFO: ==7154== Releasing lock... [2025-01-16 18:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:55:28] Production.INFO: 52.75 MB #Memory Used# [2025-01-16 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:56:05 [end_date_ymd] => 2025-01-16 18:56:05 [RateCDR] => 1 ) [2025-01-16 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:56:05' and `end` < '2025-01-16 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:56:18] Production.INFO: count ==3324 [2025-01-16 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:56:05 - End Time 2025-01-16 18:56:05 [2025-01-16 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262930', 'tblTempUsageDetail_20' ) start [2025-01-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262930', 'tblTempUsageDetail_20' ) end [2025-01-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262930', 'tblTempVendorCDR_20' ) start [2025-01-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262930', 'tblTempVendorCDR_20' ) end [2025-01-16 18:56:19] Production.INFO: ProcessCDR(1,14262930,1,1,2) [2025-01-16 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262930', 'tblTempUsageDetail_20' ) start [2025-01-16 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262930', 'tblTempUsageDetail_20' ) end [2025-01-16 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:56:22] Production.INFO: ==7227== Releasing lock... [2025-01-16 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:56:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-16 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:57:05 [end_date_ymd] => 2025-01-16 18:57:05 [RateCDR] => 1 ) [2025-01-16 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:57:05' and `end` < '2025-01-16 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:57:18] Production.INFO: count ==3309 [2025-01-16 18:57:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:57:05 - End Time 2025-01-16 18:57:05 [2025-01-16 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262935', 'tblTempUsageDetail_20' ) start [2025-01-16 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262935', 'tblTempUsageDetail_20' ) end [2025-01-16 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262935', 'tblTempVendorCDR_20' ) start [2025-01-16 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262935', 'tblTempVendorCDR_20' ) end [2025-01-16 18:57:19] Production.INFO: ProcessCDR(1,14262935,1,1,2) [2025-01-16 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262935', 'tblTempUsageDetail_20' ) start [2025-01-16 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262935', 'tblTempUsageDetail_20' ) end [2025-01-16 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:57:24] Production.INFO: ==7299== Releasing lock... [2025-01-16 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:57:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-16 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:58:05 [end_date_ymd] => 2025-01-16 18:58:05 [RateCDR] => 1 ) [2025-01-16 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:58:05' and `end` < '2025-01-16 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:58:18] Production.INFO: count ==3286 [2025-01-16 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:58:05 - End Time 2025-01-16 18:58:05 [2025-01-16 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262940', 'tblTempUsageDetail_20' ) start [2025-01-16 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262940', 'tblTempUsageDetail_20' ) end [2025-01-16 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262940', 'tblTempVendorCDR_20' ) start [2025-01-16 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262940', 'tblTempVendorCDR_20' ) end [2025-01-16 18:58:19] Production.INFO: ProcessCDR(1,14262940,1,1,2) [2025-01-16 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262940', 'tblTempUsageDetail_20' ) start [2025-01-16 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262940', 'tblTempUsageDetail_20' ) end [2025-01-16 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:58:24] Production.INFO: ==7369== Releasing lock... [2025-01-16 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:58:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 15:59:05 [end_date_ymd] => 2025-01-16 18:59:05 [RateCDR] => 1 ) [2025-01-16 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 15:59:05' and `end` < '2025-01-16 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 18:59:18] Production.INFO: count ==3259 [2025-01-16 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-16 15:59:05 - End Time 2025-01-16 18:59:05 [2025-01-16 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262945', 'tblTempUsageDetail_20' ) start [2025-01-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262945', 'tblTempUsageDetail_20' ) end [2025-01-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262945', 'tblTempVendorCDR_20' ) start [2025-01-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262945', 'tblTempVendorCDR_20' ) end [2025-01-16 18:59:19] Production.INFO: ProcessCDR(1,14262945,1,1,2) [2025-01-16 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262945', 'tblTempUsageDetail_20' ) start [2025-01-16 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262945', 'tblTempUsageDetail_20' ) end [2025-01-16 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 18:59:22] Production.INFO: ==7439== Releasing lock... [2025-01-16 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 18:59:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-16 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:00:05 [end_date_ymd] => 2025-01-16 19:00:05 [RateCDR] => 1 ) [2025-01-16 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:00:05' and `end` < '2025-01-16 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:00:18] Production.INFO: count ==3252 [2025-01-16 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:00:05 - End Time 2025-01-16 19:00:05 [2025-01-16 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262951', 'tblTempUsageDetail_20' ) start [2025-01-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262951', 'tblTempUsageDetail_20' ) end [2025-01-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262951', 'tblTempVendorCDR_20' ) start [2025-01-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262951', 'tblTempVendorCDR_20' ) end [2025-01-16 19:00:19] Production.INFO: ProcessCDR(1,14262951,1,1,2) [2025-01-16 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262951', 'tblTempUsageDetail_20' ) start [2025-01-16 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262951', 'tblTempUsageDetail_20' ) end [2025-01-16 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:00:23] Production.INFO: ==7513== Releasing lock... [2025-01-16 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:00:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:01:05 [end_date_ymd] => 2025-01-16 19:01:05 [RateCDR] => 1 ) [2025-01-16 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:01:05' and `end` < '2025-01-16 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:01:18] Production.INFO: count ==3272 [2025-01-16 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:01:05 - End Time 2025-01-16 19:01:05 [2025-01-16 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262956', 'tblTempUsageDetail_20' ) start [2025-01-16 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262956', 'tblTempUsageDetail_20' ) end [2025-01-16 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262956', 'tblTempVendorCDR_20' ) start [2025-01-16 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262956', 'tblTempVendorCDR_20' ) end [2025-01-16 19:01:19] Production.INFO: ProcessCDR(1,14262956,1,1,2) [2025-01-16 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262956', 'tblTempUsageDetail_20' ) start [2025-01-16 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262956', 'tblTempUsageDetail_20' ) end [2025-01-16 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:01:24] Production.INFO: ==7675== Releasing lock... [2025-01-16 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:01:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-16 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:02:04 [end_date_ymd] => 2025-01-16 19:02:04 [RateCDR] => 1 ) [2025-01-16 19:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:02:04' and `end` < '2025-01-16 19:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:02:17] Production.INFO: count ==3284 [2025-01-16 19:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:02:04 - End Time 2025-01-16 19:02:04 [2025-01-16 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262961', 'tblTempUsageDetail_20' ) start [2025-01-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262961', 'tblTempUsageDetail_20' ) end [2025-01-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262961', 'tblTempVendorCDR_20' ) start [2025-01-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262961', 'tblTempVendorCDR_20' ) end [2025-01-16 19:02:18] Production.INFO: ProcessCDR(1,14262961,1,1,2) [2025-01-16 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262961', 'tblTempUsageDetail_20' ) start [2025-01-16 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262961', 'tblTempUsageDetail_20' ) end [2025-01-16 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:02:23] Production.INFO: ==7749== Releasing lock... [2025-01-16 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:02:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:03:05 [end_date_ymd] => 2025-01-16 19:03:05 [RateCDR] => 1 ) [2025-01-16 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:03:05' and `end` < '2025-01-16 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:03:18] Production.INFO: count ==3278 [2025-01-16 19:03:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:03:05 - End Time 2025-01-16 19:03:05 [2025-01-16 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262966', 'tblTempUsageDetail_20' ) start [2025-01-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262966', 'tblTempUsageDetail_20' ) end [2025-01-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262966', 'tblTempVendorCDR_20' ) start [2025-01-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262966', 'tblTempVendorCDR_20' ) end [2025-01-16 19:03:19] Production.INFO: ProcessCDR(1,14262966,1,1,2) [2025-01-16 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262966', 'tblTempUsageDetail_20' ) start [2025-01-16 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262966', 'tblTempUsageDetail_20' ) end [2025-01-16 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:03:24] Production.INFO: ==7821== Releasing lock... [2025-01-16 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:03:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:04:05 [end_date_ymd] => 2025-01-16 19:04:05 [RateCDR] => 1 ) [2025-01-16 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:04:05' and `end` < '2025-01-16 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:04:18] Production.INFO: count ==3264 [2025-01-16 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:04:05 - End Time 2025-01-16 19:04:05 [2025-01-16 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262971', 'tblTempUsageDetail_20' ) start [2025-01-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262971', 'tblTempUsageDetail_20' ) end [2025-01-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262971', 'tblTempVendorCDR_20' ) start [2025-01-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262971', 'tblTempVendorCDR_20' ) end [2025-01-16 19:04:19] Production.INFO: ProcessCDR(1,14262971,1,1,2) [2025-01-16 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262971', 'tblTempUsageDetail_20' ) start [2025-01-16 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262971', 'tblTempUsageDetail_20' ) end [2025-01-16 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:04:22] Production.INFO: ==7893== Releasing lock... [2025-01-16 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:04:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-16 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:05:05 [end_date_ymd] => 2025-01-16 19:05:05 [RateCDR] => 1 ) [2025-01-16 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:05:05' and `end` < '2025-01-16 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:05:18] Production.INFO: count ==3258 [2025-01-16 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:05:05 - End Time 2025-01-16 19:05:05 [2025-01-16 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262976', 'tblTempUsageDetail_20' ) start [2025-01-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262976', 'tblTempUsageDetail_20' ) end [2025-01-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262976', 'tblTempVendorCDR_20' ) start [2025-01-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262976', 'tblTempVendorCDR_20' ) end [2025-01-16 19:05:19] Production.INFO: ProcessCDR(1,14262976,1,1,2) [2025-01-16 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262976', 'tblTempUsageDetail_20' ) start [2025-01-16 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262976', 'tblTempUsageDetail_20' ) end [2025-01-16 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:05:22] Production.INFO: ==8044== Releasing lock... [2025-01-16 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:05:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-16 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:06:05 [end_date_ymd] => 2025-01-16 19:06:05 [RateCDR] => 1 ) [2025-01-16 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:06:05' and `end` < '2025-01-16 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:06:19] Production.INFO: count ==3269 [2025-01-16 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-16 16:06:05 - End Time 2025-01-16 19:06:05 [2025-01-16 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262981', 'tblTempUsageDetail_20' ) start [2025-01-16 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262981', 'tblTempUsageDetail_20' ) end [2025-01-16 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262981', 'tblTempVendorCDR_20' ) start [2025-01-16 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262981', 'tblTempVendorCDR_20' ) end [2025-01-16 19:06:20] Production.INFO: ProcessCDR(1,14262981,1,1,2) [2025-01-16 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262981', 'tblTempUsageDetail_20' ) start [2025-01-16 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262981', 'tblTempUsageDetail_20' ) end [2025-01-16 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:06:25] Production.INFO: ==8115== Releasing lock... [2025-01-16 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:06:25] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:07:04 [end_date_ymd] => 2025-01-16 19:07:04 [RateCDR] => 1 ) [2025-01-16 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:07:04' and `end` < '2025-01-16 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:07:17] Production.INFO: count ==3264 [2025-01-16 19:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:07:04 - End Time 2025-01-16 19:07:04 [2025-01-16 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262986', 'tblTempUsageDetail_20' ) start [2025-01-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262986', 'tblTempUsageDetail_20' ) end [2025-01-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262986', 'tblTempVendorCDR_20' ) start [2025-01-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262986', 'tblTempVendorCDR_20' ) end [2025-01-16 19:07:18] Production.INFO: ProcessCDR(1,14262986,1,1,2) [2025-01-16 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262986', 'tblTempUsageDetail_20' ) start [2025-01-16 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262986', 'tblTempUsageDetail_20' ) end [2025-01-16 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:07:23] Production.INFO: ==8189== Releasing lock... [2025-01-16 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:07:23] Production.INFO: 53 MB #Memory Used# [2025-01-16 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:08:05 [end_date_ymd] => 2025-01-16 19:08:05 [RateCDR] => 1 ) [2025-01-16 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:08:05' and `end` < '2025-01-16 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:08:19] Production.INFO: count ==3291 [2025-01-16 19:08:20] Production.ERROR: pbx CDR StartTime 2025-01-16 16:08:05 - End Time 2025-01-16 19:08:05 [2025-01-16 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262991', 'tblTempUsageDetail_20' ) start [2025-01-16 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262991', 'tblTempUsageDetail_20' ) end [2025-01-16 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262991', 'tblTempVendorCDR_20' ) start [2025-01-16 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262991', 'tblTempVendorCDR_20' ) end [2025-01-16 19:08:21] Production.INFO: ProcessCDR(1,14262991,1,1,2) [2025-01-16 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262991', 'tblTempUsageDetail_20' ) start [2025-01-16 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262991', 'tblTempUsageDetail_20' ) end [2025-01-16 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:08:26] Production.INFO: ==8343== Releasing lock... [2025-01-16 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:08:26] Production.INFO: 53 MB #Memory Used# [2025-01-16 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:09:04 [end_date_ymd] => 2025-01-16 19:09:04 [RateCDR] => 1 ) [2025-01-16 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:09:04' and `end` < '2025-01-16 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:09:18] Production.INFO: count ==3281 [2025-01-16 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:09:04 - End Time 2025-01-16 19:09:04 [2025-01-16 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262996', 'tblTempUsageDetail_20' ) start [2025-01-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14262996', 'tblTempUsageDetail_20' ) end [2025-01-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262996', 'tblTempVendorCDR_20' ) start [2025-01-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14262996', 'tblTempVendorCDR_20' ) end [2025-01-16 19:09:19] Production.INFO: ProcessCDR(1,14262996,1,1,2) [2025-01-16 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14262996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14262996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14262996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14262996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262996', 'tblTempUsageDetail_20' ) start [2025-01-16 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14262996', 'tblTempUsageDetail_20' ) end [2025-01-16 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:09:23] Production.INFO: ==8413== Releasing lock... [2025-01-16 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:09:23] Production.INFO: 53 MB #Memory Used# [2025-01-16 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:10:05 [end_date_ymd] => 2025-01-16 19:10:05 [RateCDR] => 1 ) [2025-01-16 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:10:05' and `end` < '2025-01-16 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:10:18] Production.INFO: count ==3279 [2025-01-16 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:10:05 - End Time 2025-01-16 19:10:05 [2025-01-16 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263001', 'tblTempUsageDetail_20' ) start [2025-01-16 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263001', 'tblTempUsageDetail_20' ) end [2025-01-16 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263001', 'tblTempVendorCDR_20' ) start [2025-01-16 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263001', 'tblTempVendorCDR_20' ) end [2025-01-16 19:10:19] Production.INFO: ProcessCDR(1,14263001,1,1,2) [2025-01-16 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263001', 'tblTempUsageDetail_20' ) start [2025-01-16 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263001', 'tblTempUsageDetail_20' ) end [2025-01-16 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:10:22] Production.INFO: ==8486== Releasing lock... [2025-01-16 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:10:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-16 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:11:05 [end_date_ymd] => 2025-01-16 19:11:05 [RateCDR] => 1 ) [2025-01-16 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:11:05' and `end` < '2025-01-16 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:11:19] Production.INFO: count ==3226 [2025-01-16 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:11:05 - End Time 2025-01-16 19:11:05 [2025-01-16 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263007', 'tblTempUsageDetail_20' ) start [2025-01-16 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263007', 'tblTempUsageDetail_20' ) end [2025-01-16 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263007', 'tblTempVendorCDR_20' ) start [2025-01-16 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263007', 'tblTempVendorCDR_20' ) end [2025-01-16 19:11:20] Production.INFO: ProcessCDR(1,14263007,1,1,2) [2025-01-16 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263007', 'tblTempUsageDetail_20' ) start [2025-01-16 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263007', 'tblTempUsageDetail_20' ) end [2025-01-16 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:11:24] Production.INFO: ==8597== Releasing lock... [2025-01-16 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:11:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-16 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:12:05 [end_date_ymd] => 2025-01-16 19:12:05 [RateCDR] => 1 ) [2025-01-16 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:12:05' and `end` < '2025-01-16 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:12:17] Production.INFO: count ==3205 [2025-01-16 19:12:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:12:05 - End Time 2025-01-16 19:12:05 [2025-01-16 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263012', 'tblTempUsageDetail_20' ) start [2025-01-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263012', 'tblTempUsageDetail_20' ) end [2025-01-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263012', 'tblTempVendorCDR_20' ) start [2025-01-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263012', 'tblTempVendorCDR_20' ) end [2025-01-16 19:12:18] Production.INFO: ProcessCDR(1,14263012,1,1,2) [2025-01-16 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263012', 'tblTempUsageDetail_20' ) start [2025-01-16 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263012', 'tblTempUsageDetail_20' ) end [2025-01-16 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:12:22] Production.INFO: ==8747== Releasing lock... [2025-01-16 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:12:22] Production.INFO: 52 MB #Memory Used# [2025-01-16 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:13:05 [end_date_ymd] => 2025-01-16 19:13:05 [RateCDR] => 1 ) [2025-01-16 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:13:05' and `end` < '2025-01-16 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:13:18] Production.INFO: count ==3203 [2025-01-16 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:13:05 - End Time 2025-01-16 19:13:05 [2025-01-16 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263017', 'tblTempUsageDetail_20' ) start [2025-01-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263017', 'tblTempUsageDetail_20' ) end [2025-01-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263017', 'tblTempVendorCDR_20' ) start [2025-01-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263017', 'tblTempVendorCDR_20' ) end [2025-01-16 19:13:19] Production.INFO: ProcessCDR(1,14263017,1,1,2) [2025-01-16 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263017', 'tblTempUsageDetail_20' ) start [2025-01-16 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263017', 'tblTempUsageDetail_20' ) end [2025-01-16 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:13:22] Production.INFO: ==8817== Releasing lock... [2025-01-16 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:13:22] Production.INFO: 52 MB #Memory Used# [2025-01-16 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:14:04 [end_date_ymd] => 2025-01-16 19:14:04 [RateCDR] => 1 ) [2025-01-16 19:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:14:04' and `end` < '2025-01-16 19:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:14:17] Production.INFO: count ==3194 [2025-01-16 19:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:14:04 - End Time 2025-01-16 19:14:04 [2025-01-16 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263022', 'tblTempUsageDetail_20' ) start [2025-01-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263022', 'tblTempUsageDetail_20' ) end [2025-01-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263022', 'tblTempVendorCDR_20' ) start [2025-01-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263022', 'tblTempVendorCDR_20' ) end [2025-01-16 19:14:18] Production.INFO: ProcessCDR(1,14263022,1,1,2) [2025-01-16 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263022', 'tblTempUsageDetail_20' ) start [2025-01-16 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263022', 'tblTempUsageDetail_20' ) end [2025-01-16 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:14:21] Production.INFO: ==8888== Releasing lock... [2025-01-16 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:14:21] Production.INFO: 51.75 MB #Memory Used# [2025-01-16 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:15:05 [end_date_ymd] => 2025-01-16 19:15:05 [RateCDR] => 1 ) [2025-01-16 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:15:05' and `end` < '2025-01-16 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:15:18] Production.INFO: count ==3184 [2025-01-16 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:15:05 - End Time 2025-01-16 19:15:05 [2025-01-16 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263027', 'tblTempUsageDetail_20' ) start [2025-01-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263027', 'tblTempUsageDetail_20' ) end [2025-01-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263027', 'tblTempVendorCDR_20' ) start [2025-01-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263027', 'tblTempVendorCDR_20' ) end [2025-01-16 19:15:19] Production.INFO: ProcessCDR(1,14263027,1,1,2) [2025-01-16 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263027', 'tblTempUsageDetail_20' ) start [2025-01-16 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263027', 'tblTempUsageDetail_20' ) end [2025-01-16 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:15:23] Production.INFO: ==9039== Releasing lock... [2025-01-16 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:15:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-16 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:16:05 [end_date_ymd] => 2025-01-16 19:16:05 [RateCDR] => 1 ) [2025-01-16 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:16:05' and `end` < '2025-01-16 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:16:17] Production.INFO: count ==3181 [2025-01-16 19:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:16:05 - End Time 2025-01-16 19:16:05 [2025-01-16 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263032', 'tblTempUsageDetail_20' ) start [2025-01-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263032', 'tblTempUsageDetail_20' ) end [2025-01-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263032', 'tblTempVendorCDR_20' ) start [2025-01-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263032', 'tblTempVendorCDR_20' ) end [2025-01-16 19:16:18] Production.INFO: ProcessCDR(1,14263032,1,1,2) [2025-01-16 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263032', 'tblTempUsageDetail_20' ) start [2025-01-16 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263032', 'tblTempUsageDetail_20' ) end [2025-01-16 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:16:21] Production.INFO: ==9111== Releasing lock... [2025-01-16 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:16:21] Production.INFO: 51.75 MB #Memory Used# [2025-01-16 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:17:05 [end_date_ymd] => 2025-01-16 19:17:05 [RateCDR] => 1 ) [2025-01-16 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:17:05' and `end` < '2025-01-16 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:17:18] Production.INFO: count ==3174 [2025-01-16 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:17:05 - End Time 2025-01-16 19:17:05 [2025-01-16 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263037', 'tblTempUsageDetail_20' ) start [2025-01-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263037', 'tblTempUsageDetail_20' ) end [2025-01-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263037', 'tblTempVendorCDR_20' ) start [2025-01-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263037', 'tblTempVendorCDR_20' ) end [2025-01-16 19:17:19] Production.INFO: ProcessCDR(1,14263037,1,1,2) [2025-01-16 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263037', 'tblTempUsageDetail_20' ) start [2025-01-16 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263037', 'tblTempUsageDetail_20' ) end [2025-01-16 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:17:24] Production.INFO: ==9182== Releasing lock... [2025-01-16 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:17:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-16 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:18:06 [end_date_ymd] => 2025-01-16 19:18:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 16:18:06' and `end` < '2025-01-16 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-01-16 19:18:18] Production.INFO: count ==3166 [2025-01-16 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:18:06 - End Time 2025-01-16 19:18:06 [2025-01-16 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263042', 'tblTempUsageDetail_20' ) start [2025-01-16 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263042', 'tblTempUsageDetail_20' ) end [2025-01-16 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263042', 'tblTempVendorCDR_20' ) start [2025-01-16 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263042', 'tblTempVendorCDR_20' ) end [2025-01-16 19:18:19] Production.INFO: ProcessCDR(1,14263042,1,1,2) [2025-01-16 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263042', 'tblTempUsageDetail_20' ) start [2025-01-16 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263042', 'tblTempUsageDetail_20' ) end [2025-01-16 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:18:23] Production.INFO: ==9254== Releasing lock... [2025-01-16 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:18:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-16 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:19:05 [end_date_ymd] => 2025-01-16 19:19:05 [RateCDR] => 1 ) [2025-01-16 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:19:05' and `end` < '2025-01-16 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:19:18] Production.INFO: count ==3155 [2025-01-16 19:19:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:19:05 - End Time 2025-01-16 19:19:05 [2025-01-16 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263047', 'tblTempUsageDetail_20' ) start [2025-01-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263047', 'tblTempUsageDetail_20' ) end [2025-01-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263047', 'tblTempVendorCDR_20' ) start [2025-01-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263047', 'tblTempVendorCDR_20' ) end [2025-01-16 19:19:19] Production.INFO: ProcessCDR(1,14263047,1,1,2) [2025-01-16 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263047', 'tblTempUsageDetail_20' ) start [2025-01-16 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263047', 'tblTempUsageDetail_20' ) end [2025-01-16 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:19:22] Production.INFO: ==9326== Releasing lock... [2025-01-16 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:19:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-16 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:20:06 [end_date_ymd] => 2025-01-16 19:20:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 16:20:06' and `end` < '2025-01-16 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-01-16 19:20:19] Production.INFO: count ==3146 [2025-01-16 19:20:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:20:06 - End Time 2025-01-16 19:20:06 [2025-01-16 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263053', 'tblTempUsageDetail_20' ) start [2025-01-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263053', 'tblTempUsageDetail_20' ) end [2025-01-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263053', 'tblTempVendorCDR_20' ) start [2025-01-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263053', 'tblTempVendorCDR_20' ) end [2025-01-16 19:20:20] Production.INFO: ProcessCDR(1,14263053,1,1,2) [2025-01-16 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263053', 'tblTempUsageDetail_20' ) start [2025-01-16 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263053', 'tblTempUsageDetail_20' ) end [2025-01-16 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:20:23] Production.INFO: ==9401== Releasing lock... [2025-01-16 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:20:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-16 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:21:05 [end_date_ymd] => 2025-01-16 19:21:05 [RateCDR] => 1 ) [2025-01-16 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:21:05' and `end` < '2025-01-16 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:21:21] Production.INFO: count ==3088 [2025-01-16 19:21:22] Production.ERROR: pbx CDR StartTime 2025-01-16 16:21:05 - End Time 2025-01-16 19:21:05 [2025-01-16 19:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263058', 'tblTempUsageDetail_20' ) start [2025-01-16 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263058', 'tblTempUsageDetail_20' ) end [2025-01-16 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263058', 'tblTempVendorCDR_20' ) start [2025-01-16 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263058', 'tblTempVendorCDR_20' ) end [2025-01-16 19:21:22] Production.INFO: ProcessCDR(1,14263058,1,1,2) [2025-01-16 19:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263058', 'tblTempUsageDetail_20' ) start [2025-01-16 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263058', 'tblTempUsageDetail_20' ) end [2025-01-16 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:21:25] Production.INFO: ==9472== Releasing lock... [2025-01-16 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:21:25] Production.INFO: 51 MB #Memory Used# [2025-01-16 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:22:05 [end_date_ymd] => 2025-01-16 19:22:05 [RateCDR] => 1 ) [2025-01-16 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:22:05' and `end` < '2025-01-16 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:22:18] Production.INFO: count ==3076 [2025-01-16 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:22:05 - End Time 2025-01-16 19:22:05 [2025-01-16 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263063', 'tblTempUsageDetail_20' ) start [2025-01-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263063', 'tblTempUsageDetail_20' ) end [2025-01-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263063', 'tblTempVendorCDR_20' ) start [2025-01-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263063', 'tblTempVendorCDR_20' ) end [2025-01-16 19:22:19] Production.INFO: ProcessCDR(1,14263063,1,1,2) [2025-01-16 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263063', 'tblTempUsageDetail_20' ) start [2025-01-16 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263063', 'tblTempUsageDetail_20' ) end [2025-01-16 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:22:24] Production.INFO: ==9545== Releasing lock... [2025-01-16 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:22:24] Production.INFO: 51 MB #Memory Used# [2025-01-16 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:23:05 [end_date_ymd] => 2025-01-16 19:23:05 [RateCDR] => 1 ) [2025-01-16 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:23:05' and `end` < '2025-01-16 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:23:18] Production.INFO: count ==3062 [2025-01-16 19:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:23:05 - End Time 2025-01-16 19:23:05 [2025-01-16 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263068', 'tblTempUsageDetail_20' ) start [2025-01-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263068', 'tblTempUsageDetail_20' ) end [2025-01-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263068', 'tblTempVendorCDR_20' ) start [2025-01-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263068', 'tblTempVendorCDR_20' ) end [2025-01-16 19:23:19] Production.INFO: ProcessCDR(1,14263068,1,1,2) [2025-01-16 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263068', 'tblTempUsageDetail_20' ) start [2025-01-16 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263068', 'tblTempUsageDetail_20' ) end [2025-01-16 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:23:23] Production.INFO: ==9618== Releasing lock... [2025-01-16 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:23:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-16 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:24:05 [end_date_ymd] => 2025-01-16 19:24:05 [RateCDR] => 1 ) [2025-01-16 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:24:05' and `end` < '2025-01-16 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:24:18] Production.INFO: count ==3045 [2025-01-16 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:24:05 - End Time 2025-01-16 19:24:05 [2025-01-16 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263073', 'tblTempUsageDetail_20' ) start [2025-01-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263073', 'tblTempUsageDetail_20' ) end [2025-01-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263073', 'tblTempVendorCDR_20' ) start [2025-01-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263073', 'tblTempVendorCDR_20' ) end [2025-01-16 19:24:19] Production.INFO: ProcessCDR(1,14263073,1,1,2) [2025-01-16 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263073', 'tblTempUsageDetail_20' ) start [2025-01-16 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263073', 'tblTempUsageDetail_20' ) end [2025-01-16 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:24:24] Production.INFO: ==9694== Releasing lock... [2025-01-16 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:24:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-16 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:25:05 [end_date_ymd] => 2025-01-16 19:25:05 [RateCDR] => 1 ) [2025-01-16 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:25:05' and `end` < '2025-01-16 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:25:17] Production.INFO: count ==3032 [2025-01-16 19:25:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:25:05 - End Time 2025-01-16 19:25:05 [2025-01-16 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263078', 'tblTempUsageDetail_20' ) start [2025-01-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263078', 'tblTempUsageDetail_20' ) end [2025-01-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263078', 'tblTempVendorCDR_20' ) start [2025-01-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263078', 'tblTempVendorCDR_20' ) end [2025-01-16 19:25:18] Production.INFO: ProcessCDR(1,14263078,1,1,2) [2025-01-16 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263078', 'tblTempUsageDetail_20' ) start [2025-01-16 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263078', 'tblTempUsageDetail_20' ) end [2025-01-16 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:25:21] Production.INFO: ==9763== Releasing lock... [2025-01-16 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:25:21] Production.INFO: 50.5 MB #Memory Used# [2025-01-16 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:26:05 [end_date_ymd] => 2025-01-16 19:26:05 [RateCDR] => 1 ) [2025-01-16 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:26:05' and `end` < '2025-01-16 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:26:18] Production.INFO: count ==3015 [2025-01-16 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:26:05 - End Time 2025-01-16 19:26:05 [2025-01-16 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263083', 'tblTempUsageDetail_20' ) start [2025-01-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263083', 'tblTempUsageDetail_20' ) end [2025-01-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263083', 'tblTempVendorCDR_20' ) start [2025-01-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263083', 'tblTempVendorCDR_20' ) end [2025-01-16 19:26:19] Production.INFO: ProcessCDR(1,14263083,1,1,2) [2025-01-16 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263083', 'tblTempUsageDetail_20' ) start [2025-01-16 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263083', 'tblTempUsageDetail_20' ) end [2025-01-16 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:26:24] Production.INFO: ==9872== Releasing lock... [2025-01-16 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:26:24] Production.INFO: 51 MB #Memory Used# [2025-01-16 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:27:04 [end_date_ymd] => 2025-01-16 19:27:04 [RateCDR] => 1 ) [2025-01-16 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:27:04' and `end` < '2025-01-16 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:27:17] Production.INFO: count ==2976 [2025-01-16 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:27:04 - End Time 2025-01-16 19:27:04 [2025-01-16 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263088', 'tblTempUsageDetail_20' ) start [2025-01-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263088', 'tblTempUsageDetail_20' ) end [2025-01-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263088', 'tblTempVendorCDR_20' ) start [2025-01-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263088', 'tblTempVendorCDR_20' ) end [2025-01-16 19:27:18] Production.INFO: ProcessCDR(1,14263088,1,1,2) [2025-01-16 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263088', 'tblTempUsageDetail_20' ) start [2025-01-16 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263088', 'tblTempUsageDetail_20' ) end [2025-01-16 19:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:27:21] Production.INFO: ==9944== Releasing lock... [2025-01-16 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:27:21] Production.INFO: 50 MB #Memory Used# [2025-01-16 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:28:05 [end_date_ymd] => 2025-01-16 19:28:05 [RateCDR] => 1 ) [2025-01-16 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:28:05' and `end` < '2025-01-16 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:28:17] Production.INFO: count ==2966 [2025-01-16 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:28:05 - End Time 2025-01-16 19:28:05 [2025-01-16 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263093', 'tblTempUsageDetail_20' ) start [2025-01-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263093', 'tblTempUsageDetail_20' ) end [2025-01-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263093', 'tblTempVendorCDR_20' ) start [2025-01-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263093', 'tblTempVendorCDR_20' ) end [2025-01-16 19:28:18] Production.INFO: ProcessCDR(1,14263093,1,1,2) [2025-01-16 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263093', 'tblTempUsageDetail_20' ) start [2025-01-16 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263093', 'tblTempUsageDetail_20' ) end [2025-01-16 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:28:22] Production.INFO: ==10017== Releasing lock... [2025-01-16 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:28:22] Production.INFO: 50 MB #Memory Used# [2025-01-16 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:29:05 [end_date_ymd] => 2025-01-16 19:29:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 16:29:05' and `end` < '2025-01-16 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-01-16 19:29:18] Production.INFO: count ==2924 [2025-01-16 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:29:05 - End Time 2025-01-16 19:29:05 [2025-01-16 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263098', 'tblTempUsageDetail_20' ) start [2025-01-16 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263098', 'tblTempUsageDetail_20' ) end [2025-01-16 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263098', 'tblTempVendorCDR_20' ) start [2025-01-16 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263098', 'tblTempVendorCDR_20' ) end [2025-01-16 19:29:19] Production.INFO: ProcessCDR(1,14263098,1,1,2) [2025-01-16 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263098', 'tblTempUsageDetail_20' ) start [2025-01-16 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263098', 'tblTempUsageDetail_20' ) end [2025-01-16 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:29:24] Production.INFO: ==10090== Releasing lock... [2025-01-16 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:29:24] Production.INFO: 50 MB #Memory Used# [2025-01-16 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:30:05 [end_date_ymd] => 2025-01-16 19:30:05 [RateCDR] => 1 ) [2025-01-16 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:30:05' and `end` < '2025-01-16 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:30:18] Production.INFO: count ==2882 [2025-01-16 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:30:05 - End Time 2025-01-16 19:30:05 [2025-01-16 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263104', 'tblTempUsageDetail_20' ) start [2025-01-16 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263104', 'tblTempUsageDetail_20' ) end [2025-01-16 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263104', 'tblTempVendorCDR_20' ) start [2025-01-16 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263104', 'tblTempVendorCDR_20' ) end [2025-01-16 19:30:19] Production.INFO: ProcessCDR(1,14263104,1,1,2) [2025-01-16 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263104', 'tblTempUsageDetail_20' ) start [2025-01-16 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263104', 'tblTempUsageDetail_20' ) end [2025-01-16 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:30:22] Production.INFO: ==10165== Releasing lock... [2025-01-16 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:30:22] Production.INFO: 50 MB #Memory Used# [2025-01-16 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:31:05 [end_date_ymd] => 2025-01-16 19:31:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 16:31:05' and `end` < '2025-01-16 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-01-16 19:31:18] Production.INFO: count ==2833 [2025-01-16 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:31:05 - End Time 2025-01-16 19:31:05 [2025-01-16 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263109', 'tblTempUsageDetail_20' ) start [2025-01-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263109', 'tblTempUsageDetail_20' ) end [2025-01-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263109', 'tblTempVendorCDR_20' ) start [2025-01-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263109', 'tblTempVendorCDR_20' ) end [2025-01-16 19:31:19] Production.INFO: ProcessCDR(1,14263109,1,1,2) [2025-01-16 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263109', 'tblTempUsageDetail_20' ) start [2025-01-16 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263109', 'tblTempUsageDetail_20' ) end [2025-01-16 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:31:23] Production.INFO: ==10238== Releasing lock... [2025-01-16 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:31:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-16 19:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:32:04 [end_date_ymd] => 2025-01-16 19:32:04 [RateCDR] => 1 ) [2025-01-16 19:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:32:04' and `end` < '2025-01-16 19:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:32:17] Production.INFO: count ==2829 [2025-01-16 19:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:32:04 - End Time 2025-01-16 19:32:04 [2025-01-16 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263114', 'tblTempUsageDetail_20' ) start [2025-01-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263114', 'tblTempUsageDetail_20' ) end [2025-01-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263114', 'tblTempVendorCDR_20' ) start [2025-01-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263114', 'tblTempVendorCDR_20' ) end [2025-01-16 19:32:18] Production.INFO: ProcessCDR(1,14263114,1,1,2) [2025-01-16 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263114', 'tblTempUsageDetail_20' ) start [2025-01-16 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263114', 'tblTempUsageDetail_20' ) end [2025-01-16 19:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:32:21] Production.INFO: ==10307== Releasing lock... [2025-01-16 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:32:21] Production.INFO: 49.5 MB #Memory Used# [2025-01-16 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:33:05 [end_date_ymd] => 2025-01-16 19:33:05 [RateCDR] => 1 ) [2025-01-16 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:33:05' and `end` < '2025-01-16 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:33:18] Production.INFO: count ==2820 [2025-01-16 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:33:05 - End Time 2025-01-16 19:33:05 [2025-01-16 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263119', 'tblTempUsageDetail_20' ) start [2025-01-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263119', 'tblTempUsageDetail_20' ) end [2025-01-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263119', 'tblTempVendorCDR_20' ) start [2025-01-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263119', 'tblTempVendorCDR_20' ) end [2025-01-16 19:33:19] Production.INFO: ProcessCDR(1,14263119,1,1,2) [2025-01-16 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263119', 'tblTempUsageDetail_20' ) start [2025-01-16 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263119', 'tblTempUsageDetail_20' ) end [2025-01-16 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:33:22] Production.INFO: ==10382== Releasing lock... [2025-01-16 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:33:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-16 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:34:05 [end_date_ymd] => 2025-01-16 19:34:05 [RateCDR] => 1 ) [2025-01-16 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:34:05' and `end` < '2025-01-16 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:34:18] Production.INFO: count ==2794 [2025-01-16 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:34:05 - End Time 2025-01-16 19:34:05 [2025-01-16 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263124', 'tblTempUsageDetail_20' ) start [2025-01-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263124', 'tblTempUsageDetail_20' ) end [2025-01-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263124', 'tblTempVendorCDR_20' ) start [2025-01-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263124', 'tblTempVendorCDR_20' ) end [2025-01-16 19:34:19] Production.INFO: ProcessCDR(1,14263124,1,1,2) [2025-01-16 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263124', 'tblTempUsageDetail_20' ) start [2025-01-16 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263124', 'tblTempUsageDetail_20' ) end [2025-01-16 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:34:22] Production.INFO: ==10453== Releasing lock... [2025-01-16 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:34:22] Production.INFO: 49 MB #Memory Used# [2025-01-16 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:35:05 [end_date_ymd] => 2025-01-16 19:35:05 [RateCDR] => 1 ) [2025-01-16 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:35:05' and `end` < '2025-01-16 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:35:18] Production.INFO: count ==2769 [2025-01-16 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:35:05 - End Time 2025-01-16 19:35:05 [2025-01-16 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263129', 'tblTempUsageDetail_20' ) start [2025-01-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263129', 'tblTempUsageDetail_20' ) end [2025-01-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263129', 'tblTempVendorCDR_20' ) start [2025-01-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263129', 'tblTempVendorCDR_20' ) end [2025-01-16 19:35:18] Production.INFO: ProcessCDR(1,14263129,1,1,2) [2025-01-16 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263129', 'tblTempUsageDetail_20' ) start [2025-01-16 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263129', 'tblTempUsageDetail_20' ) end [2025-01-16 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:35:22] Production.INFO: ==10523== Releasing lock... [2025-01-16 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:35:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-16 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:36:05 [end_date_ymd] => 2025-01-16 19:36:05 [RateCDR] => 1 ) [2025-01-16 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:36:05' and `end` < '2025-01-16 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:36:18] Production.INFO: count ==2750 [2025-01-16 19:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:36:05 - End Time 2025-01-16 19:36:05 [2025-01-16 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263134', 'tblTempUsageDetail_20' ) start [2025-01-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263134', 'tblTempUsageDetail_20' ) end [2025-01-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263134', 'tblTempVendorCDR_20' ) start [2025-01-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263134', 'tblTempVendorCDR_20' ) end [2025-01-16 19:36:18] Production.INFO: ProcessCDR(1,14263134,1,1,2) [2025-01-16 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263134', 'tblTempUsageDetail_20' ) start [2025-01-16 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263134', 'tblTempUsageDetail_20' ) end [2025-01-16 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:36:22] Production.INFO: ==10596== Releasing lock... [2025-01-16 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:36:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-16 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:37:05 [end_date_ymd] => 2025-01-16 19:37:05 [RateCDR] => 1 ) [2025-01-16 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:37:05' and `end` < '2025-01-16 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:37:18] Production.INFO: count ==2733 [2025-01-16 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:37:05 - End Time 2025-01-16 19:37:05 [2025-01-16 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263139', 'tblTempUsageDetail_20' ) start [2025-01-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263139', 'tblTempUsageDetail_20' ) end [2025-01-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263139', 'tblTempVendorCDR_20' ) start [2025-01-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263139', 'tblTempVendorCDR_20' ) end [2025-01-16 19:37:19] Production.INFO: ProcessCDR(1,14263139,1,1,2) [2025-01-16 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263139', 'tblTempUsageDetail_20' ) start [2025-01-16 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263139', 'tblTempUsageDetail_20' ) end [2025-01-16 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:37:23] Production.INFO: ==10667== Releasing lock... [2025-01-16 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:37:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-16 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:38:05 [end_date_ymd] => 2025-01-16 19:38:05 [RateCDR] => 1 ) [2025-01-16 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:38:05' and `end` < '2025-01-16 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:38:17] Production.INFO: count ==2722 [2025-01-16 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:38:05 - End Time 2025-01-16 19:38:05 [2025-01-16 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263144', 'tblTempUsageDetail_20' ) start [2025-01-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263144', 'tblTempUsageDetail_20' ) end [2025-01-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263144', 'tblTempVendorCDR_20' ) start [2025-01-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263144', 'tblTempVendorCDR_20' ) end [2025-01-16 19:38:18] Production.INFO: ProcessCDR(1,14263144,1,1,2) [2025-01-16 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263144', 'tblTempUsageDetail_20' ) start [2025-01-16 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263144', 'tblTempUsageDetail_20' ) end [2025-01-16 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:38:21] Production.INFO: ==10738== Releasing lock... [2025-01-16 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:38:21] Production.INFO: 48.5 MB #Memory Used# [2025-01-16 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:39:05 [end_date_ymd] => 2025-01-16 19:39:05 [RateCDR] => 1 ) [2025-01-16 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:39:05' and `end` < '2025-01-16 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:39:18] Production.INFO: count ==2709 [2025-01-16 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:39:05 - End Time 2025-01-16 19:39:05 [2025-01-16 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263149', 'tblTempUsageDetail_20' ) start [2025-01-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263149', 'tblTempUsageDetail_20' ) end [2025-01-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263149', 'tblTempVendorCDR_20' ) start [2025-01-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263149', 'tblTempVendorCDR_20' ) end [2025-01-16 19:39:18] Production.INFO: ProcessCDR(1,14263149,1,1,2) [2025-01-16 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263149', 'tblTempUsageDetail_20' ) start [2025-01-16 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263149', 'tblTempUsageDetail_20' ) end [2025-01-16 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:39:22] Production.INFO: ==10810== Releasing lock... [2025-01-16 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:39:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-16 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:40:06 [end_date_ymd] => 2025-01-16 19:40:06 [RateCDR] => 1 ) [2025-01-16 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:40:06' and `end` < '2025-01-16 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:40:19] Production.INFO: count ==2694 [2025-01-16 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-16 16:40:06 - End Time 2025-01-16 19:40:06 [2025-01-16 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263155', 'tblTempUsageDetail_20' ) start [2025-01-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263155', 'tblTempUsageDetail_20' ) end [2025-01-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263155', 'tblTempVendorCDR_20' ) start [2025-01-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263155', 'tblTempVendorCDR_20' ) end [2025-01-16 19:40:20] Production.INFO: ProcessCDR(1,14263155,1,1,2) [2025-01-16 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263155', 'tblTempUsageDetail_20' ) start [2025-01-16 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263155', 'tblTempUsageDetail_20' ) end [2025-01-16 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:40:23] Production.INFO: ==10883== Releasing lock... [2025-01-16 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:40:23] Production.INFO: 48 MB #Memory Used# [2025-01-16 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:41:05 [end_date_ymd] => 2025-01-16 19:41:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 16:41:05' and `end` < '2025-01-16 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-01-16 19:41:18] Production.INFO: count ==2642 [2025-01-16 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:41:05 - End Time 2025-01-16 19:41:05 [2025-01-16 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263160', 'tblTempUsageDetail_20' ) start [2025-01-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263160', 'tblTempUsageDetail_20' ) end [2025-01-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263160', 'tblTempVendorCDR_20' ) start [2025-01-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263160', 'tblTempVendorCDR_20' ) end [2025-01-16 19:41:18] Production.INFO: ProcessCDR(1,14263160,1,1,2) [2025-01-16 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263160', 'tblTempUsageDetail_20' ) start [2025-01-16 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263160', 'tblTempUsageDetail_20' ) end [2025-01-16 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:41:23] Production.INFO: ==10957== Releasing lock... [2025-01-16 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:41:23] Production.INFO: 48 MB #Memory Used# [2025-01-16 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:42:04 [end_date_ymd] => 2025-01-16 19:42:04 [RateCDR] => 1 ) [2025-01-16 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:42:04' and `end` < '2025-01-16 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:42:18] Production.INFO: count ==2639 [2025-01-16 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:42:04 - End Time 2025-01-16 19:42:04 [2025-01-16 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263165', 'tblTempUsageDetail_20' ) start [2025-01-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263165', 'tblTempUsageDetail_20' ) end [2025-01-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263165', 'tblTempVendorCDR_20' ) start [2025-01-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263165', 'tblTempVendorCDR_20' ) end [2025-01-16 19:42:18] Production.INFO: ProcessCDR(1,14263165,1,1,2) [2025-01-16 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263165', 'tblTempUsageDetail_20' ) start [2025-01-16 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263165', 'tblTempUsageDetail_20' ) end [2025-01-16 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:42:22] Production.INFO: ==11069== Releasing lock... [2025-01-16 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:42:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-16 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:43:05 [end_date_ymd] => 2025-01-16 19:43:05 [RateCDR] => 1 ) [2025-01-16 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:43:05' and `end` < '2025-01-16 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:43:17] Production.INFO: count ==2615 [2025-01-16 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:43:05 - End Time 2025-01-16 19:43:05 [2025-01-16 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263170', 'tblTempUsageDetail_20' ) start [2025-01-16 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263170', 'tblTempUsageDetail_20' ) end [2025-01-16 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263170', 'tblTempVendorCDR_20' ) start [2025-01-16 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263170', 'tblTempVendorCDR_20' ) end [2025-01-16 19:43:18] Production.INFO: ProcessCDR(1,14263170,1,1,2) [2025-01-16 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263170', 'tblTempUsageDetail_20' ) start [2025-01-16 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263170', 'tblTempUsageDetail_20' ) end [2025-01-16 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:43:21] Production.INFO: ==11141== Releasing lock... [2025-01-16 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:43:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-16 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:44:04 [end_date_ymd] => 2025-01-16 19:44:04 [RateCDR] => 1 ) [2025-01-16 19:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:44:04' and `end` < '2025-01-16 19:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:44:17] Production.INFO: count ==2585 [2025-01-16 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:44:04 - End Time 2025-01-16 19:44:04 [2025-01-16 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263175', 'tblTempUsageDetail_20' ) start [2025-01-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263175', 'tblTempUsageDetail_20' ) end [2025-01-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263175', 'tblTempVendorCDR_20' ) start [2025-01-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263175', 'tblTempVendorCDR_20' ) end [2025-01-16 19:44:18] Production.INFO: ProcessCDR(1,14263175,1,1,2) [2025-01-16 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263175', 'tblTempUsageDetail_20' ) start [2025-01-16 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263175', 'tblTempUsageDetail_20' ) end [2025-01-16 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:44:23] Production.INFO: ==11211== Releasing lock... [2025-01-16 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:44:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-16 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:45:05 [end_date_ymd] => 2025-01-16 19:45:05 [RateCDR] => 1 ) [2025-01-16 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:45:05' and `end` < '2025-01-16 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:45:18] Production.INFO: count ==2578 [2025-01-16 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:45:05 - End Time 2025-01-16 19:45:05 [2025-01-16 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263180', 'tblTempUsageDetail_20' ) start [2025-01-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263180', 'tblTempUsageDetail_20' ) end [2025-01-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263180', 'tblTempVendorCDR_20' ) start [2025-01-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263180', 'tblTempVendorCDR_20' ) end [2025-01-16 19:45:18] Production.INFO: ProcessCDR(1,14263180,1,1,2) [2025-01-16 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263180', 'tblTempUsageDetail_20' ) start [2025-01-16 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263180', 'tblTempUsageDetail_20' ) end [2025-01-16 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:45:23] Production.INFO: ==11285== Releasing lock... [2025-01-16 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:45:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-16 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:46:05 [end_date_ymd] => 2025-01-16 19:46:05 [RateCDR] => 1 ) [2025-01-16 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:46:05' and `end` < '2025-01-16 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:46:18] Production.INFO: count ==2568 [2025-01-16 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:46:05 - End Time 2025-01-16 19:46:05 [2025-01-16 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263185', 'tblTempUsageDetail_20' ) start [2025-01-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263185', 'tblTempUsageDetail_20' ) end [2025-01-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263185', 'tblTempVendorCDR_20' ) start [2025-01-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263185', 'tblTempVendorCDR_20' ) end [2025-01-16 19:46:19] Production.INFO: ProcessCDR(1,14263185,1,1,2) [2025-01-16 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263185', 'tblTempUsageDetail_20' ) start [2025-01-16 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263185', 'tblTempUsageDetail_20' ) end [2025-01-16 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:46:22] Production.INFO: ==11354== Releasing lock... [2025-01-16 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:46:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-16 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:47:05 [end_date_ymd] => 2025-01-16 19:47:05 [RateCDR] => 1 ) [2025-01-16 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:47:05' and `end` < '2025-01-16 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:47:17] Production.INFO: count ==2561 [2025-01-16 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:47:05 - End Time 2025-01-16 19:47:05 [2025-01-16 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263190', 'tblTempUsageDetail_20' ) start [2025-01-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263190', 'tblTempUsageDetail_20' ) end [2025-01-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263190', 'tblTempVendorCDR_20' ) start [2025-01-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263190', 'tblTempVendorCDR_20' ) end [2025-01-16 19:47:18] Production.INFO: ProcessCDR(1,14263190,1,1,2) [2025-01-16 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263190', 'tblTempUsageDetail_20' ) start [2025-01-16 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263190', 'tblTempUsageDetail_20' ) end [2025-01-16 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:47:21] Production.INFO: ==11427== Releasing lock... [2025-01-16 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:47:21] Production.INFO: 47.25 MB #Memory Used# [2025-01-16 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:48:05 [end_date_ymd] => 2025-01-16 19:48:05 [RateCDR] => 1 ) [2025-01-16 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:48:05' and `end` < '2025-01-16 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:48:17] Production.INFO: count ==2542 [2025-01-16 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:48:05 - End Time 2025-01-16 19:48:05 [2025-01-16 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263195', 'tblTempUsageDetail_20' ) start [2025-01-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263195', 'tblTempUsageDetail_20' ) end [2025-01-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263195', 'tblTempVendorCDR_20' ) start [2025-01-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263195', 'tblTempVendorCDR_20' ) end [2025-01-16 19:48:18] Production.INFO: ProcessCDR(1,14263195,1,1,2) [2025-01-16 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263195', 'tblTempUsageDetail_20' ) start [2025-01-16 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263195', 'tblTempUsageDetail_20' ) end [2025-01-16 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:48:21] Production.INFO: ==11496== Releasing lock... [2025-01-16 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:48:21] Production.INFO: 47.25 MB #Memory Used# [2025-01-16 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:49:05 [end_date_ymd] => 2025-01-16 19:49:05 [RateCDR] => 1 ) [2025-01-16 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:49:05' and `end` < '2025-01-16 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:49:17] Production.INFO: count ==2524 [2025-01-16 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:49:05 - End Time 2025-01-16 19:49:05 [2025-01-16 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263200', 'tblTempUsageDetail_20' ) start [2025-01-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263200', 'tblTempUsageDetail_20' ) end [2025-01-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263200', 'tblTempVendorCDR_20' ) start [2025-01-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263200', 'tblTempVendorCDR_20' ) end [2025-01-16 19:49:18] Production.INFO: ProcessCDR(1,14263200,1,1,2) [2025-01-16 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263200', 'tblTempUsageDetail_20' ) start [2025-01-16 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263200', 'tblTempUsageDetail_20' ) end [2025-01-16 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:49:21] Production.INFO: ==11568== Releasing lock... [2025-01-16 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:49:21] Production.INFO: 47 MB #Memory Used# [2025-01-16 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:50:06 [end_date_ymd] => 2025-01-16 19:50:06 [RateCDR] => 1 ) [2025-01-16 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:50:06' and `end` < '2025-01-16 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:50:18] Production.INFO: count ==2505 [2025-01-16 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:50:06 - End Time 2025-01-16 19:50:06 [2025-01-16 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263206', 'tblTempUsageDetail_20' ) start [2025-01-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263206', 'tblTempUsageDetail_20' ) end [2025-01-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263206', 'tblTempVendorCDR_20' ) start [2025-01-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263206', 'tblTempVendorCDR_20' ) end [2025-01-16 19:50:19] Production.INFO: ProcessCDR(1,14263206,1,1,2) [2025-01-16 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263206', 'tblTempUsageDetail_20' ) start [2025-01-16 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263206', 'tblTempUsageDetail_20' ) end [2025-01-16 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:50:22] Production.INFO: ==11644== Releasing lock... [2025-01-16 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:50:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-16 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:51:04 [end_date_ymd] => 2025-01-16 19:51:04 [RateCDR] => 1 ) [2025-01-16 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:51:04' and `end` < '2025-01-16 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:51:17] Production.INFO: count ==2459 [2025-01-16 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:51:04 - End Time 2025-01-16 19:51:04 [2025-01-16 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263211', 'tblTempUsageDetail_20' ) start [2025-01-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263211', 'tblTempUsageDetail_20' ) end [2025-01-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263211', 'tblTempVendorCDR_20' ) start [2025-01-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263211', 'tblTempVendorCDR_20' ) end [2025-01-16 19:51:18] Production.INFO: ProcessCDR(1,14263211,1,1,2) [2025-01-16 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263211', 'tblTempUsageDetail_20' ) start [2025-01-16 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263211', 'tblTempUsageDetail_20' ) end [2025-01-16 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:51:21] Production.INFO: ==11719== Releasing lock... [2025-01-16 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:51:21] Production.INFO: 46.5 MB #Memory Used# [2025-01-16 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:52:05 [end_date_ymd] => 2025-01-16 19:52:05 [RateCDR] => 1 ) [2025-01-16 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:52:05' and `end` < '2025-01-16 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-01-16 19:52:18] Production.INFO: count ==2439 [2025-01-16 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:52:05 - End Time 2025-01-16 19:52:05 [2025-01-16 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263216', 'tblTempUsageDetail_20' ) start [2025-01-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263216', 'tblTempUsageDetail_20' ) end [2025-01-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263216', 'tblTempVendorCDR_20' ) start [2025-01-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263216', 'tblTempVendorCDR_20' ) end [2025-01-16 19:52:19] Production.INFO: ProcessCDR(1,14263216,1,1,2) [2025-01-16 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263216', 'tblTempUsageDetail_20' ) start [2025-01-16 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263216', 'tblTempUsageDetail_20' ) end [2025-01-16 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:52:22] Production.INFO: ==11789== Releasing lock... [2025-01-16 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:52:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-16 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:53:04 [end_date_ymd] => 2025-01-16 19:53:04 [RateCDR] => 1 ) [2025-01-16 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:53:04' and `end` < '2025-01-16 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:53:18] Production.INFO: count ==2434 [2025-01-16 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:53:04 - End Time 2025-01-16 19:53:04 [2025-01-16 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263221', 'tblTempUsageDetail_20' ) start [2025-01-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263221', 'tblTempUsageDetail_20' ) end [2025-01-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263221', 'tblTempVendorCDR_20' ) start [2025-01-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263221', 'tblTempVendorCDR_20' ) end [2025-01-16 19:53:18] Production.INFO: ProcessCDR(1,14263221,1,1,2) [2025-01-16 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263221', 'tblTempUsageDetail_20' ) start [2025-01-16 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263221', 'tblTempUsageDetail_20' ) end [2025-01-16 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:53:21] Production.INFO: ==11860== Releasing lock... [2025-01-16 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:53:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-16 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:54:05 [end_date_ymd] => 2025-01-16 19:54:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 16:54:05' and `end` < '2025-01-16 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-01-16 19:54:17] Production.INFO: count ==2442 [2025-01-16 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:54:05 - End Time 2025-01-16 19:54:05 [2025-01-16 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263226', 'tblTempUsageDetail_20' ) start [2025-01-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263226', 'tblTempUsageDetail_20' ) end [2025-01-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263226', 'tblTempVendorCDR_20' ) start [2025-01-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263226', 'tblTempVendorCDR_20' ) end [2025-01-16 19:54:18] Production.INFO: ProcessCDR(1,14263226,1,1,2) [2025-01-16 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263226', 'tblTempUsageDetail_20' ) start [2025-01-16 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263226', 'tblTempUsageDetail_20' ) end [2025-01-16 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:54:22] Production.INFO: ==11931== Releasing lock... [2025-01-16 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:54:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-16 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:55:05 [end_date_ymd] => 2025-01-16 19:55:05 [RateCDR] => 1 ) [2025-01-16 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:55:05' and `end` < '2025-01-16 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:55:18] Production.INFO: count ==2433 [2025-01-16 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:55:05 - End Time 2025-01-16 19:55:05 [2025-01-16 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263231', 'tblTempUsageDetail_20' ) start [2025-01-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263231', 'tblTempUsageDetail_20' ) end [2025-01-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263231', 'tblTempVendorCDR_20' ) start [2025-01-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263231', 'tblTempVendorCDR_20' ) end [2025-01-16 19:55:18] Production.INFO: ProcessCDR(1,14263231,1,1,2) [2025-01-16 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263231', 'tblTempUsageDetail_20' ) start [2025-01-16 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263231', 'tblTempUsageDetail_20' ) end [2025-01-16 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:55:23] Production.INFO: ==12002== Releasing lock... [2025-01-16 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:55:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-16 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:56:05 [end_date_ymd] => 2025-01-16 19:56:05 [RateCDR] => 1 ) [2025-01-16 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:56:05' and `end` < '2025-01-16 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:56:19] Production.INFO: count ==2429 [2025-01-16 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-16 16:56:05 - End Time 2025-01-16 19:56:05 [2025-01-16 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263236', 'tblTempUsageDetail_20' ) start [2025-01-16 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263236', 'tblTempUsageDetail_20' ) end [2025-01-16 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263236', 'tblTempVendorCDR_20' ) start [2025-01-16 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263236', 'tblTempVendorCDR_20' ) end [2025-01-16 19:56:19] Production.INFO: ProcessCDR(1,14263236,1,1,2) [2025-01-16 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263236', 'tblTempUsageDetail_20' ) start [2025-01-16 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263236', 'tblTempUsageDetail_20' ) end [2025-01-16 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:56:23] Production.INFO: ==12074== Releasing lock... [2025-01-16 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:56:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-16 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:57:04 [end_date_ymd] => 2025-01-16 19:57:04 [RateCDR] => 1 ) [2025-01-16 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:57:04' and `end` < '2025-01-16 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:57:17] Production.INFO: count ==2427 [2025-01-16 19:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 16:57:04 - End Time 2025-01-16 19:57:04 [2025-01-16 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263241', 'tblTempUsageDetail_20' ) start [2025-01-16 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263241', 'tblTempUsageDetail_20' ) end [2025-01-16 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263241', 'tblTempVendorCDR_20' ) start [2025-01-16 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263241', 'tblTempVendorCDR_20' ) end [2025-01-16 19:57:17] Production.INFO: ProcessCDR(1,14263241,1,1,2) [2025-01-16 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263241', 'tblTempUsageDetail_20' ) start [2025-01-16 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263241', 'tblTempUsageDetail_20' ) end [2025-01-16 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:57:22] Production.INFO: ==12145== Releasing lock... [2025-01-16 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:57:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-16 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:58:05 [end_date_ymd] => 2025-01-16 19:58:05 [RateCDR] => 1 ) [2025-01-16 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:58:05' and `end` < '2025-01-16 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:58:17] Production.INFO: count ==2399 [2025-01-16 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:58:05 - End Time 2025-01-16 19:58:05 [2025-01-16 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263246', 'tblTempUsageDetail_20' ) start [2025-01-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263246', 'tblTempUsageDetail_20' ) end [2025-01-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263246', 'tblTempVendorCDR_20' ) start [2025-01-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263246', 'tblTempVendorCDR_20' ) end [2025-01-16 19:58:18] Production.INFO: ProcessCDR(1,14263246,1,1,2) [2025-01-16 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263246', 'tblTempUsageDetail_20' ) start [2025-01-16 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263246', 'tblTempUsageDetail_20' ) end [2025-01-16 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:58:22] Production.INFO: ==12255== Releasing lock... [2025-01-16 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:58:22] Production.INFO: 46 MB #Memory Used# [2025-01-16 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 16:59:05 [end_date_ymd] => 2025-01-16 19:59:05 [RateCDR] => 1 ) [2025-01-16 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 16:59:05' and `end` < '2025-01-16 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 19:59:17] Production.INFO: count ==2395 [2025-01-16 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 16:59:05 - End Time 2025-01-16 19:59:05 [2025-01-16 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263251', 'tblTempUsageDetail_20' ) start [2025-01-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263251', 'tblTempUsageDetail_20' ) end [2025-01-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263251', 'tblTempVendorCDR_20' ) start [2025-01-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263251', 'tblTempVendorCDR_20' ) end [2025-01-16 19:59:18] Production.INFO: ProcessCDR(1,14263251,1,1,2) [2025-01-16 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263251', 'tblTempUsageDetail_20' ) start [2025-01-16 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263251', 'tblTempUsageDetail_20' ) end [2025-01-16 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 19:59:23] Production.INFO: ==12328== Releasing lock... [2025-01-16 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 19:59:23] Production.INFO: 46 MB #Memory Used# [2025-01-16 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:00:06 [end_date_ymd] => 2025-01-16 20:00:06 [RateCDR] => 1 ) [2025-01-16 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:00:06' and `end` < '2025-01-16 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:00:19] Production.INFO: count ==2392 [2025-01-16 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-16 17:00:06 - End Time 2025-01-16 20:00:06 [2025-01-16 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263257', 'tblTempUsageDetail_20' ) start [2025-01-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263257', 'tblTempUsageDetail_20' ) end [2025-01-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263257', 'tblTempVendorCDR_20' ) start [2025-01-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263257', 'tblTempVendorCDR_20' ) end [2025-01-16 20:00:20] Production.INFO: ProcessCDR(1,14263257,1,1,2) [2025-01-16 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263257', 'tblTempUsageDetail_20' ) start [2025-01-16 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263257', 'tblTempUsageDetail_20' ) end [2025-01-16 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:00:23] Production.INFO: ==12400== Releasing lock... [2025-01-16 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:00:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-16 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:01:05 [end_date_ymd] => 2025-01-16 20:01:05 [RateCDR] => 1 ) [2025-01-16 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:01:05' and `end` < '2025-01-16 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:01:18] Production.INFO: count ==2325 [2025-01-16 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:01:05 - End Time 2025-01-16 20:01:05 [2025-01-16 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263262', 'tblTempUsageDetail_20' ) start [2025-01-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263262', 'tblTempUsageDetail_20' ) end [2025-01-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263262', 'tblTempVendorCDR_20' ) start [2025-01-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263262', 'tblTempVendorCDR_20' ) end [2025-01-16 20:01:19] Production.INFO: ProcessCDR(1,14263262,1,1,2) [2025-01-16 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263262', 'tblTempUsageDetail_20' ) start [2025-01-16 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263262', 'tblTempUsageDetail_20' ) end [2025-01-16 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:01:22] Production.INFO: ==12525== Releasing lock... [2025-01-16 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:01:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-16 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:02:05 [end_date_ymd] => 2025-01-16 20:02:05 [RateCDR] => 1 ) [2025-01-16 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:02:05' and `end` < '2025-01-16 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:02:18] Production.INFO: count ==2285 [2025-01-16 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:02:05 - End Time 2025-01-16 20:02:05 [2025-01-16 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263267', 'tblTempUsageDetail_20' ) start [2025-01-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263267', 'tblTempUsageDetail_20' ) end [2025-01-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263267', 'tblTempVendorCDR_20' ) start [2025-01-16 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263267', 'tblTempVendorCDR_20' ) end [2025-01-16 20:02:19] Production.INFO: ProcessCDR(1,14263267,1,1,2) [2025-01-16 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263267', 'tblTempUsageDetail_20' ) start [2025-01-16 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263267', 'tblTempUsageDetail_20' ) end [2025-01-16 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:02:22] Production.INFO: ==12597== Releasing lock... [2025-01-16 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-16 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:03:06 [end_date_ymd] => 2025-01-16 20:03:06 [RateCDR] => 1 ) [2025-01-16 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:03:06' and `end` < '2025-01-16 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:03:18] Production.INFO: count ==2272 [2025-01-16 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:03:06 - End Time 2025-01-16 20:03:06 [2025-01-16 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263272', 'tblTempUsageDetail_20' ) start [2025-01-16 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263272', 'tblTempUsageDetail_20' ) end [2025-01-16 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263272', 'tblTempVendorCDR_20' ) start [2025-01-16 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263272', 'tblTempVendorCDR_20' ) end [2025-01-16 20:03:19] Production.INFO: ProcessCDR(1,14263272,1,1,2) [2025-01-16 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263272', 'tblTempUsageDetail_20' ) start [2025-01-16 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263272', 'tblTempUsageDetail_20' ) end [2025-01-16 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:03:22] Production.INFO: ==12670== Releasing lock... [2025-01-16 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:03:22] Production.INFO: 45 MB #Memory Used# [2025-01-16 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:04:05 [end_date_ymd] => 2025-01-16 20:04:05 [RateCDR] => 1 ) [2025-01-16 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:04:05' and `end` < '2025-01-16 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:04:17] Production.INFO: count ==2272 [2025-01-16 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:04:05 - End Time 2025-01-16 20:04:05 [2025-01-16 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263277', 'tblTempUsageDetail_20' ) start [2025-01-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263277', 'tblTempUsageDetail_20' ) end [2025-01-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263277', 'tblTempVendorCDR_20' ) start [2025-01-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263277', 'tblTempVendorCDR_20' ) end [2025-01-16 20:04:18] Production.INFO: ProcessCDR(1,14263277,1,1,2) [2025-01-16 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263277', 'tblTempUsageDetail_20' ) start [2025-01-16 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263277', 'tblTempUsageDetail_20' ) end [2025-01-16 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:04:23] Production.INFO: ==12743== Releasing lock... [2025-01-16 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:04:23] Production.INFO: 45 MB #Memory Used# [2025-01-16 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:05:06 [end_date_ymd] => 2025-01-16 20:05:06 [RateCDR] => 1 ) [2025-01-16 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:05:06' and `end` < '2025-01-16 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:05:18] Production.INFO: count ==2276 [2025-01-16 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:05:06 - End Time 2025-01-16 20:05:06 [2025-01-16 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263282', 'tblTempUsageDetail_20' ) start [2025-01-16 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263282', 'tblTempUsageDetail_20' ) end [2025-01-16 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263282', 'tblTempVendorCDR_20' ) start [2025-01-16 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263282', 'tblTempVendorCDR_20' ) end [2025-01-16 20:05:19] Production.INFO: ProcessCDR(1,14263282,1,1,2) [2025-01-16 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263282', 'tblTempUsageDetail_20' ) start [2025-01-16 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263282', 'tblTempUsageDetail_20' ) end [2025-01-16 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:05:23] Production.INFO: ==12820== Releasing lock... [2025-01-16 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:05:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-16 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:06:05 [end_date_ymd] => 2025-01-16 20:06:05 [RateCDR] => 1 ) [2025-01-16 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:06:05' and `end` < '2025-01-16 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:06:18] Production.INFO: count ==2273 [2025-01-16 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:06:05 - End Time 2025-01-16 20:06:05 [2025-01-16 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263287', 'tblTempUsageDetail_20' ) start [2025-01-16 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263287', 'tblTempUsageDetail_20' ) end [2025-01-16 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263287', 'tblTempVendorCDR_20' ) start [2025-01-16 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263287', 'tblTempVendorCDR_20' ) end [2025-01-16 20:06:19] Production.INFO: ProcessCDR(1,14263287,1,1,2) [2025-01-16 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263287', 'tblTempUsageDetail_20' ) start [2025-01-16 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263287', 'tblTempUsageDetail_20' ) end [2025-01-16 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:06:22] Production.INFO: ==12892== Releasing lock... [2025-01-16 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:06:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-16 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:07:05 [end_date_ymd] => 2025-01-16 20:07:05 [RateCDR] => 1 ) [2025-01-16 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:07:05' and `end` < '2025-01-16 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:07:18] Production.INFO: count ==2268 [2025-01-16 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:07:05 - End Time 2025-01-16 20:07:05 [2025-01-16 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263292', 'tblTempUsageDetail_20' ) start [2025-01-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263292', 'tblTempUsageDetail_20' ) end [2025-01-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263292', 'tblTempVendorCDR_20' ) start [2025-01-16 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263292', 'tblTempVendorCDR_20' ) end [2025-01-16 20:07:19] Production.INFO: ProcessCDR(1,14263292,1,1,2) [2025-01-16 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263292', 'tblTempUsageDetail_20' ) start [2025-01-16 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263292', 'tblTempUsageDetail_20' ) end [2025-01-16 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:07:22] Production.INFO: ==12960== Releasing lock... [2025-01-16 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:07:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-16 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:08:05 [end_date_ymd] => 2025-01-16 20:08:05 [RateCDR] => 1 ) [2025-01-16 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:08:05' and `end` < '2025-01-16 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:08:18] Production.INFO: count ==2264 [2025-01-16 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:08:05 - End Time 2025-01-16 20:08:05 [2025-01-16 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263297', 'tblTempUsageDetail_20' ) start [2025-01-16 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263297', 'tblTempUsageDetail_20' ) end [2025-01-16 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263297', 'tblTempVendorCDR_20' ) start [2025-01-16 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263297', 'tblTempVendorCDR_20' ) end [2025-01-16 20:08:19] Production.INFO: ProcessCDR(1,14263297,1,1,2) [2025-01-16 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263297', 'tblTempUsageDetail_20' ) start [2025-01-16 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263297', 'tblTempUsageDetail_20' ) end [2025-01-16 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:08:22] Production.INFO: ==13036== Releasing lock... [2025-01-16 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:08:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-16 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:09:06 [end_date_ymd] => 2025-01-16 20:09:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 17:09:06' and `end` < '2025-01-16 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-01-16 20:09:18] Production.INFO: count ==2259 [2025-01-16 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:09:06 - End Time 2025-01-16 20:09:06 [2025-01-16 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263302', 'tblTempUsageDetail_20' ) start [2025-01-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263302', 'tblTempUsageDetail_20' ) end [2025-01-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263302', 'tblTempVendorCDR_20' ) start [2025-01-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263302', 'tblTempVendorCDR_20' ) end [2025-01-16 20:09:19] Production.INFO: ProcessCDR(1,14263302,1,1,2) [2025-01-16 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263302', 'tblTempUsageDetail_20' ) start [2025-01-16 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263302', 'tblTempUsageDetail_20' ) end [2025-01-16 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:09:22] Production.INFO: ==13114== Releasing lock... [2025-01-16 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:09:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-16 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:10:06 [end_date_ymd] => 2025-01-16 20:10:06 [RateCDR] => 1 ) [2025-01-16 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:10:06' and `end` < '2025-01-16 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:10:18] Production.INFO: count ==2258 [2025-01-16 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:10:06 - End Time 2025-01-16 20:10:06 [2025-01-16 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263308', 'tblTempUsageDetail_20' ) start [2025-01-16 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263308', 'tblTempUsageDetail_20' ) end [2025-01-16 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263308', 'tblTempVendorCDR_20' ) start [2025-01-16 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263308', 'tblTempVendorCDR_20' ) end [2025-01-16 20:10:19] Production.INFO: ProcessCDR(1,14263308,1,1,2) [2025-01-16 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263308', 'tblTempUsageDetail_20' ) start [2025-01-16 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263308', 'tblTempUsageDetail_20' ) end [2025-01-16 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:10:23] Production.INFO: ==13187== Releasing lock... [2025-01-16 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:10:23] Production.INFO: 45 MB #Memory Used# [2025-01-16 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:11:05 [end_date_ymd] => 2025-01-16 20:11:05 [RateCDR] => 1 ) [2025-01-16 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:11:05' and `end` < '2025-01-16 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:11:18] Production.INFO: count ==2220 [2025-01-16 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:11:05 - End Time 2025-01-16 20:11:05 [2025-01-16 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263313', 'tblTempUsageDetail_20' ) start [2025-01-16 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263313', 'tblTempUsageDetail_20' ) end [2025-01-16 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263313', 'tblTempVendorCDR_20' ) start [2025-01-16 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263313', 'tblTempVendorCDR_20' ) end [2025-01-16 20:11:19] Production.INFO: ProcessCDR(1,14263313,1,1,2) [2025-01-16 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263313', 'tblTempUsageDetail_20' ) start [2025-01-16 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263313', 'tblTempUsageDetail_20' ) end [2025-01-16 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:11:22] Production.INFO: ==13279== Releasing lock... [2025-01-16 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:11:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-16 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:12:06 [end_date_ymd] => 2025-01-16 20:12:06 [RateCDR] => 1 ) [2025-01-16 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:12:06' and `end` < '2025-01-16 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:12:18] Production.INFO: count ==2218 [2025-01-16 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:12:06 - End Time 2025-01-16 20:12:06 [2025-01-16 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263318', 'tblTempUsageDetail_20' ) start [2025-01-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263318', 'tblTempUsageDetail_20' ) end [2025-01-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263318', 'tblTempVendorCDR_20' ) start [2025-01-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263318', 'tblTempVendorCDR_20' ) end [2025-01-16 20:12:19] Production.INFO: ProcessCDR(1,14263318,1,1,2) [2025-01-16 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263318', 'tblTempUsageDetail_20' ) start [2025-01-16 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263318', 'tblTempUsageDetail_20' ) end [2025-01-16 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:12:22] Production.INFO: ==13366== Releasing lock... [2025-01-16 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:12:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:13:05 [end_date_ymd] => 2025-01-16 20:13:05 [RateCDR] => 1 ) [2025-01-16 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:13:05' and `end` < '2025-01-16 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:13:18] Production.INFO: count ==2218 [2025-01-16 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:13:05 - End Time 2025-01-16 20:13:05 [2025-01-16 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263323', 'tblTempUsageDetail_20' ) start [2025-01-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263323', 'tblTempUsageDetail_20' ) end [2025-01-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263323', 'tblTempVendorCDR_20' ) start [2025-01-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263323', 'tblTempVendorCDR_20' ) end [2025-01-16 20:13:18] Production.INFO: ProcessCDR(1,14263323,1,1,2) [2025-01-16 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263323', 'tblTempUsageDetail_20' ) start [2025-01-16 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263323', 'tblTempUsageDetail_20' ) end [2025-01-16 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:13:22] Production.INFO: ==13507== Releasing lock... [2025-01-16 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:13:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-16 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:14:05 [end_date_ymd] => 2025-01-16 20:14:05 [RateCDR] => 1 ) [2025-01-16 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:14:05' and `end` < '2025-01-16 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:14:17] Production.INFO: count ==2211 [2025-01-16 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:14:05 - End Time 2025-01-16 20:14:05 [2025-01-16 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263328', 'tblTempUsageDetail_20' ) start [2025-01-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263328', 'tblTempUsageDetail_20' ) end [2025-01-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263328', 'tblTempVendorCDR_20' ) start [2025-01-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263328', 'tblTempVendorCDR_20' ) end [2025-01-16 20:14:18] Production.INFO: ProcessCDR(1,14263328,1,1,2) [2025-01-16 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263328', 'tblTempUsageDetail_20' ) start [2025-01-16 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263328', 'tblTempUsageDetail_20' ) end [2025-01-16 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:14:22] Production.INFO: ==13613== Releasing lock... [2025-01-16 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:14:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:15:05 [end_date_ymd] => 2025-01-16 20:15:05 [RateCDR] => 1 ) [2025-01-16 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:15:05' and `end` < '2025-01-16 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:15:18] Production.INFO: count ==2213 [2025-01-16 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:15:05 - End Time 2025-01-16 20:15:05 [2025-01-16 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263333', 'tblTempUsageDetail_20' ) start [2025-01-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263333', 'tblTempUsageDetail_20' ) end [2025-01-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263333', 'tblTempVendorCDR_20' ) start [2025-01-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263333', 'tblTempVendorCDR_20' ) end [2025-01-16 20:15:18] Production.INFO: ProcessCDR(1,14263333,1,1,2) [2025-01-16 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263333', 'tblTempUsageDetail_20' ) start [2025-01-16 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263333', 'tblTempUsageDetail_20' ) end [2025-01-16 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:15:22] Production.INFO: ==13723== Releasing lock... [2025-01-16 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:15:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:16:06 [end_date_ymd] => 2025-01-16 20:16:06 [RateCDR] => 1 ) [2025-01-16 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:16:06' and `end` < '2025-01-16 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:16:18] Production.INFO: count ==2199 [2025-01-16 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:16:06 - End Time 2025-01-16 20:16:06 [2025-01-16 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263338', 'tblTempUsageDetail_20' ) start [2025-01-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263338', 'tblTempUsageDetail_20' ) end [2025-01-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263338', 'tblTempVendorCDR_20' ) start [2025-01-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263338', 'tblTempVendorCDR_20' ) end [2025-01-16 20:16:19] Production.INFO: ProcessCDR(1,14263338,1,1,2) [2025-01-16 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263338', 'tblTempUsageDetail_20' ) start [2025-01-16 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263338', 'tblTempUsageDetail_20' ) end [2025-01-16 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:16:23] Production.INFO: ==13833== Releasing lock... [2025-01-16 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:16:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-16 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:17:06 [end_date_ymd] => 2025-01-16 20:17:06 [RateCDR] => 1 ) [2025-01-16 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:17:06' and `end` < '2025-01-16 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:17:19] Production.INFO: count ==2182 [2025-01-16 20:17:20] Production.ERROR: pbx CDR StartTime 2025-01-16 17:17:06 - End Time 2025-01-16 20:17:06 [2025-01-16 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263343', 'tblTempUsageDetail_20' ) start [2025-01-16 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263343', 'tblTempUsageDetail_20' ) end [2025-01-16 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263343', 'tblTempVendorCDR_20' ) start [2025-01-16 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263343', 'tblTempVendorCDR_20' ) end [2025-01-16 20:17:20] Production.INFO: ProcessCDR(1,14263343,1,1,2) [2025-01-16 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263343', 'tblTempUsageDetail_20' ) start [2025-01-16 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263343', 'tblTempUsageDetail_20' ) end [2025-01-16 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:17:23] Production.INFO: ==13943== Releasing lock... [2025-01-16 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:17:23] Production.INFO: 44 MB #Memory Used# [2025-01-16 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:18:05 [end_date_ymd] => 2025-01-16 20:18:05 [RateCDR] => 1 ) [2025-01-16 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:18:05' and `end` < '2025-01-16 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:18:18] Production.INFO: count ==2179 [2025-01-16 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:18:05 - End Time 2025-01-16 20:18:05 [2025-01-16 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263348', 'tblTempUsageDetail_20' ) start [2025-01-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263348', 'tblTempUsageDetail_20' ) end [2025-01-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263348', 'tblTempVendorCDR_20' ) start [2025-01-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263348', 'tblTempVendorCDR_20' ) end [2025-01-16 20:18:18] Production.INFO: ProcessCDR(1,14263348,1,1,2) [2025-01-16 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263348', 'tblTempUsageDetail_20' ) start [2025-01-16 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263348', 'tblTempUsageDetail_20' ) end [2025-01-16 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:18:22] Production.INFO: ==14064== Releasing lock... [2025-01-16 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:18:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-16 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:19:06 [end_date_ymd] => 2025-01-16 20:19:06 [RateCDR] => 1 ) [2025-01-16 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:19:06' and `end` < '2025-01-16 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:19:19] Production.INFO: count ==2169 [2025-01-16 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:19:06 - End Time 2025-01-16 20:19:06 [2025-01-16 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263353', 'tblTempUsageDetail_20' ) start [2025-01-16 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263353', 'tblTempUsageDetail_20' ) end [2025-01-16 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263353', 'tblTempVendorCDR_20' ) start [2025-01-16 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263353', 'tblTempVendorCDR_20' ) end [2025-01-16 20:19:19] Production.INFO: ProcessCDR(1,14263353,1,1,2) [2025-01-16 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263353', 'tblTempUsageDetail_20' ) start [2025-01-16 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263353', 'tblTempUsageDetail_20' ) end [2025-01-16 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:19:23] Production.INFO: ==14170== Releasing lock... [2025-01-16 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:19:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-16 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:20:06 [end_date_ymd] => 2025-01-16 20:20:06 [RateCDR] => 1 ) [2025-01-16 20: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-01-16 17:20:06' and `end` < '2025-01-16 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-01-16 20:20:19] Production.INFO: count ==2156 [2025-01-16 20:20:20] Production.ERROR: pbx CDR StartTime 2025-01-16 17:20:06 - End Time 2025-01-16 20:20:06 [2025-01-16 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263359', 'tblTempUsageDetail_20' ) start [2025-01-16 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263359', 'tblTempUsageDetail_20' ) end [2025-01-16 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263359', 'tblTempVendorCDR_20' ) start [2025-01-16 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263359', 'tblTempVendorCDR_20' ) end [2025-01-16 20:20:20] Production.INFO: ProcessCDR(1,14263359,1,1,2) [2025-01-16 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263359', 'tblTempUsageDetail_20' ) start [2025-01-16 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263359', 'tblTempUsageDetail_20' ) end [2025-01-16 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:20:24] Production.INFO: ==14263== Releasing lock... [2025-01-16 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:20:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-16 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:21:05 [end_date_ymd] => 2025-01-16 20:21:05 [RateCDR] => 1 ) [2025-01-16 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:21:05' and `end` < '2025-01-16 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:21:18] Production.INFO: count ==2068 [2025-01-16 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:21:05 - End Time 2025-01-16 20:21:05 [2025-01-16 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263364', 'tblTempUsageDetail_20' ) start [2025-01-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263364', 'tblTempUsageDetail_20' ) end [2025-01-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263364', 'tblTempVendorCDR_20' ) start [2025-01-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263364', 'tblTempVendorCDR_20' ) end [2025-01-16 20:21:18] Production.INFO: ProcessCDR(1,14263364,1,1,2) [2025-01-16 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263364', 'tblTempUsageDetail_20' ) start [2025-01-16 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263364', 'tblTempUsageDetail_20' ) end [2025-01-16 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:21:23] Production.INFO: ==14348== Releasing lock... [2025-01-16 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:21:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-16 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:22:04 [end_date_ymd] => 2025-01-16 20:22:04 [RateCDR] => 1 ) [2025-01-16 20:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:22:04' and `end` < '2025-01-16 20:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:22:17] Production.INFO: count ==2041 [2025-01-16 20:22:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:22:04 - End Time 2025-01-16 20:22:04 [2025-01-16 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263369', 'tblTempUsageDetail_20' ) start [2025-01-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263369', 'tblTempUsageDetail_20' ) end [2025-01-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263369', 'tblTempVendorCDR_20' ) start [2025-01-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263369', 'tblTempVendorCDR_20' ) end [2025-01-16 20:22:17] Production.INFO: ProcessCDR(1,14263369,1,1,2) [2025-01-16 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263369', 'tblTempUsageDetail_20' ) start [2025-01-16 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263369', 'tblTempUsageDetail_20' ) end [2025-01-16 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:22:23] Production.INFO: ==14428== Releasing lock... [2025-01-16 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:22:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-16 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:23:05 [end_date_ymd] => 2025-01-16 20:23:05 [RateCDR] => 1 ) [2025-01-16 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:23:05' and `end` < '2025-01-16 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:23:18] Production.INFO: count ==2018 [2025-01-16 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:23:05 - End Time 2025-01-16 20:23:05 [2025-01-16 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263374', 'tblTempUsageDetail_20' ) start [2025-01-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263374', 'tblTempUsageDetail_20' ) end [2025-01-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263374', 'tblTempVendorCDR_20' ) start [2025-01-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263374', 'tblTempVendorCDR_20' ) end [2025-01-16 20:23:18] Production.INFO: ProcessCDR(1,14263374,1,1,2) [2025-01-16 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263374', 'tblTempUsageDetail_20' ) start [2025-01-16 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263374', 'tblTempUsageDetail_20' ) end [2025-01-16 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:23:23] Production.INFO: ==14498== Releasing lock... [2025-01-16 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:23:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-16 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:24:05 [end_date_ymd] => 2025-01-16 20:24:05 [RateCDR] => 1 ) [2025-01-16 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:24:05' and `end` < '2025-01-16 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:24:17] Production.INFO: count ==2007 [2025-01-16 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:24:05 - End Time 2025-01-16 20:24:05 [2025-01-16 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263379', 'tblTempUsageDetail_20' ) start [2025-01-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263379', 'tblTempUsageDetail_20' ) end [2025-01-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263379', 'tblTempVendorCDR_20' ) start [2025-01-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263379', 'tblTempVendorCDR_20' ) end [2025-01-16 20:24:18] Production.INFO: ProcessCDR(1,14263379,1,1,2) [2025-01-16 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263379', 'tblTempUsageDetail_20' ) start [2025-01-16 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263379', 'tblTempUsageDetail_20' ) end [2025-01-16 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:24:21] Production.INFO: ==14567== Releasing lock... [2025-01-16 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:24:21] Production.INFO: 43 MB #Memory Used# [2025-01-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:25:05 [end_date_ymd] => 2025-01-16 20:25:05 [RateCDR] => 1 ) [2025-01-16 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:25:05' and `end` < '2025-01-16 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:25:18] Production.INFO: count ==2011 [2025-01-16 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:25:05 - End Time 2025-01-16 20:25:05 [2025-01-16 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263384', 'tblTempUsageDetail_20' ) start [2025-01-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263384', 'tblTempUsageDetail_20' ) end [2025-01-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263384', 'tblTempVendorCDR_20' ) start [2025-01-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263384', 'tblTempVendorCDR_20' ) end [2025-01-16 20:25:18] Production.INFO: ProcessCDR(1,14263384,1,1,2) [2025-01-16 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263384', 'tblTempUsageDetail_20' ) start [2025-01-16 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263384', 'tblTempUsageDetail_20' ) end [2025-01-16 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:25:23] Production.INFO: ==14638== Releasing lock... [2025-01-16 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:25:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-16 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:26:05 [end_date_ymd] => 2025-01-16 20:26:05 [RateCDR] => 1 ) [2025-01-16 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:26:05' and `end` < '2025-01-16 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:26:18] Production.INFO: count ==2010 [2025-01-16 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:26:05 - End Time 2025-01-16 20:26:05 [2025-01-16 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263389', 'tblTempUsageDetail_20' ) start [2025-01-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263389', 'tblTempUsageDetail_20' ) end [2025-01-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263389', 'tblTempVendorCDR_20' ) start [2025-01-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263389', 'tblTempVendorCDR_20' ) end [2025-01-16 20:26:18] Production.INFO: ProcessCDR(1,14263389,1,1,2) [2025-01-16 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263389', 'tblTempUsageDetail_20' ) start [2025-01-16 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263389', 'tblTempUsageDetail_20' ) end [2025-01-16 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:26:22] Production.INFO: ==14706== Releasing lock... [2025-01-16 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:26:22] Production.INFO: 43 MB #Memory Used# [2025-01-16 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:27:05 [end_date_ymd] => 2025-01-16 20:27:05 [RateCDR] => 1 ) [2025-01-16 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:27:05' and `end` < '2025-01-16 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:27:18] Production.INFO: count ==2008 [2025-01-16 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:27:05 - End Time 2025-01-16 20:27:05 [2025-01-16 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263394', 'tblTempUsageDetail_20' ) start [2025-01-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263394', 'tblTempUsageDetail_20' ) end [2025-01-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263394', 'tblTempVendorCDR_20' ) start [2025-01-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263394', 'tblTempVendorCDR_20' ) end [2025-01-16 20:27:18] Production.INFO: ProcessCDR(1,14263394,1,1,2) [2025-01-16 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263394', 'tblTempUsageDetail_20' ) start [2025-01-16 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263394', 'tblTempUsageDetail_20' ) end [2025-01-16 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:27:23] Production.INFO: ==14780== Releasing lock... [2025-01-16 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:27:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-16 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:28:05 [end_date_ymd] => 2025-01-16 20:28:05 [RateCDR] => 1 ) [2025-01-16 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:28:05' and `end` < '2025-01-16 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:28:18] Production.INFO: count ==2007 [2025-01-16 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:28:05 - End Time 2025-01-16 20:28:05 [2025-01-16 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263399', 'tblTempUsageDetail_20' ) start [2025-01-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263399', 'tblTempUsageDetail_20' ) end [2025-01-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263399', 'tblTempVendorCDR_20' ) start [2025-01-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263399', 'tblTempVendorCDR_20' ) end [2025-01-16 20:28:18] Production.INFO: ProcessCDR(1,14263399,1,1,2) [2025-01-16 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263399', 'tblTempUsageDetail_20' ) start [2025-01-16 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263399', 'tblTempUsageDetail_20' ) end [2025-01-16 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:28:21] Production.INFO: ==14851== Releasing lock... [2025-01-16 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:28:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-16 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:29:05 [end_date_ymd] => 2025-01-16 20:29:05 [RateCDR] => 1 ) [2025-01-16 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:29:05' and `end` < '2025-01-16 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:29:17] Production.INFO: count ==2005 [2025-01-16 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:29:05 - End Time 2025-01-16 20:29:05 [2025-01-16 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263404', 'tblTempUsageDetail_20' ) start [2025-01-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263404', 'tblTempUsageDetail_20' ) end [2025-01-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263404', 'tblTempVendorCDR_20' ) start [2025-01-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263404', 'tblTempVendorCDR_20' ) end [2025-01-16 20:29:18] Production.INFO: ProcessCDR(1,14263404,1,1,2) [2025-01-16 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263404', 'tblTempUsageDetail_20' ) start [2025-01-16 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263404', 'tblTempUsageDetail_20' ) end [2025-01-16 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:29:21] Production.INFO: ==14960== Releasing lock... [2025-01-16 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:29:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-16 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:30:05 [end_date_ymd] => 2025-01-16 20:30:05 [RateCDR] => 1 ) [2025-01-16 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:30:05' and `end` < '2025-01-16 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:30:17] Production.INFO: count ==1984 [2025-01-16 20:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:30:05 - End Time 2025-01-16 20:30:05 [2025-01-16 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263409', 'tblTempUsageDetail_20' ) start [2025-01-16 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263409', 'tblTempUsageDetail_20' ) end [2025-01-16 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263409', 'tblTempVendorCDR_20' ) start [2025-01-16 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263409', 'tblTempVendorCDR_20' ) end [2025-01-16 20:30:18] Production.INFO: ProcessCDR(1,14263409,1,1,2) [2025-01-16 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263409', 'tblTempUsageDetail_20' ) start [2025-01-16 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263409', 'tblTempUsageDetail_20' ) end [2025-01-16 20:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:30:21] Production.INFO: ==15032== Releasing lock... [2025-01-16 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:30:21] Production.INFO: 43 MB #Memory Used# [2025-01-16 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:31:05 [end_date_ymd] => 2025-01-16 20:31:05 [RateCDR] => 1 ) [2025-01-16 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:31:05' and `end` < '2025-01-16 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:31:19] Production.INFO: count ==1924 [2025-01-16 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:31:05 - End Time 2025-01-16 20:31:05 [2025-01-16 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263415', 'tblTempUsageDetail_20' ) start [2025-01-16 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263415', 'tblTempUsageDetail_20' ) end [2025-01-16 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263415', 'tblTempVendorCDR_20' ) start [2025-01-16 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263415', 'tblTempVendorCDR_20' ) end [2025-01-16 20:31:19] Production.INFO: ProcessCDR(1,14263415,1,1,2) [2025-01-16 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263415', 'tblTempUsageDetail_20' ) start [2025-01-16 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263415', 'tblTempUsageDetail_20' ) end [2025-01-16 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:31:22] Production.INFO: ==15105== Releasing lock... [2025-01-16 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:31:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:32:05 [end_date_ymd] => 2025-01-16 20:32:05 [RateCDR] => 1 ) [2025-01-16 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:32:05' and `end` < '2025-01-16 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-01-16 20:32:18] Production.INFO: count ==1925 [2025-01-16 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:32:05 - End Time 2025-01-16 20:32:05 [2025-01-16 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263420', 'tblTempUsageDetail_20' ) start [2025-01-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263420', 'tblTempUsageDetail_20' ) end [2025-01-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263420', 'tblTempVendorCDR_20' ) start [2025-01-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263420', 'tblTempVendorCDR_20' ) end [2025-01-16 20:32:18] Production.INFO: ProcessCDR(1,14263420,1,1,2) [2025-01-16 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263420', 'tblTempUsageDetail_20' ) start [2025-01-16 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263420', 'tblTempUsageDetail_20' ) end [2025-01-16 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:32:22] Production.INFO: ==15176== Releasing lock... [2025-01-16 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:32:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-16 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:33:05 [end_date_ymd] => 2025-01-16 20:33:05 [RateCDR] => 1 ) [2025-01-16 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:33:05' and `end` < '2025-01-16 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:33:17] Production.INFO: count ==1916 [2025-01-16 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:33:05 - End Time 2025-01-16 20:33:05 [2025-01-16 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263425', 'tblTempUsageDetail_20' ) start [2025-01-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263425', 'tblTempUsageDetail_20' ) end [2025-01-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263425', 'tblTempVendorCDR_20' ) start [2025-01-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263425', 'tblTempVendorCDR_20' ) end [2025-01-16 20:33:18] Production.INFO: ProcessCDR(1,14263425,1,1,2) [2025-01-16 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263425', 'tblTempUsageDetail_20' ) start [2025-01-16 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263425', 'tblTempUsageDetail_20' ) end [2025-01-16 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:33:21] Production.INFO: ==15256== Releasing lock... [2025-01-16 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:33:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-16 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:34:05 [end_date_ymd] => 2025-01-16 20:34:05 [RateCDR] => 1 ) [2025-01-16 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:34:05' and `end` < '2025-01-16 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:34:17] Production.INFO: count ==1906 [2025-01-16 20:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:34:05 - End Time 2025-01-16 20:34:05 [2025-01-16 20:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263430', 'tblTempUsageDetail_20' ) start [2025-01-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263430', 'tblTempUsageDetail_20' ) end [2025-01-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263430', 'tblTempVendorCDR_20' ) start [2025-01-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263430', 'tblTempVendorCDR_20' ) end [2025-01-16 20:34:18] Production.INFO: ProcessCDR(1,14263430,1,1,2) [2025-01-16 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263430', 'tblTempUsageDetail_20' ) start [2025-01-16 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263430', 'tblTempUsageDetail_20' ) end [2025-01-16 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:34:21] Production.INFO: ==15330== Releasing lock... [2025-01-16 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:34:21] Production.INFO: 42 MB #Memory Used# [2025-01-16 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:35:04 [end_date_ymd] => 2025-01-16 20:35:04 [RateCDR] => 1 ) [2025-01-16 20:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:35:04' and `end` < '2025-01-16 20:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:35:17] Production.INFO: count ==1892 [2025-01-16 20:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:35:04 - End Time 2025-01-16 20:35:04 [2025-01-16 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263435', 'tblTempUsageDetail_20' ) start [2025-01-16 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263435', 'tblTempUsageDetail_20' ) end [2025-01-16 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263435', 'tblTempVendorCDR_20' ) start [2025-01-16 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263435', 'tblTempVendorCDR_20' ) end [2025-01-16 20:35:17] Production.INFO: ProcessCDR(1,14263435,1,1,2) [2025-01-16 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263435', 'tblTempUsageDetail_20' ) start [2025-01-16 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263435', 'tblTempUsageDetail_20' ) end [2025-01-16 20:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:35:20] Production.INFO: ==15399== Releasing lock... [2025-01-16 20:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:35:20] Production.INFO: 42.25 MB #Memory Used# [2025-01-16 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:36:05 [end_date_ymd] => 2025-01-16 20:36:05 [RateCDR] => 1 ) [2025-01-16 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:36:05' and `end` < '2025-01-16 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:36:18] Production.INFO: count ==1883 [2025-01-16 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:36:05 - End Time 2025-01-16 20:36:05 [2025-01-16 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263440', 'tblTempUsageDetail_20' ) start [2025-01-16 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263440', 'tblTempUsageDetail_20' ) end [2025-01-16 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263440', 'tblTempVendorCDR_20' ) start [2025-01-16 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263440', 'tblTempVendorCDR_20' ) end [2025-01-16 20:36:19] Production.INFO: ProcessCDR(1,14263440,1,1,2) [2025-01-16 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263440', 'tblTempUsageDetail_20' ) start [2025-01-16 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263440', 'tblTempUsageDetail_20' ) end [2025-01-16 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:36:22] Production.INFO: ==15470== Releasing lock... [2025-01-16 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:36:22] Production.INFO: 42 MB #Memory Used# [2025-01-16 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:37:05 [end_date_ymd] => 2025-01-16 20:37:05 [RateCDR] => 1 ) [2025-01-16 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:37:05' and `end` < '2025-01-16 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:37:17] Production.INFO: count ==1878 [2025-01-16 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:37:05 - End Time 2025-01-16 20:37:05 [2025-01-16 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263445', 'tblTempUsageDetail_20' ) start [2025-01-16 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263445', 'tblTempUsageDetail_20' ) end [2025-01-16 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263445', 'tblTempVendorCDR_20' ) start [2025-01-16 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263445', 'tblTempVendorCDR_20' ) end [2025-01-16 20:37:18] Production.INFO: ProcessCDR(1,14263445,1,1,2) [2025-01-16 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263445', 'tblTempUsageDetail_20' ) start [2025-01-16 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263445', 'tblTempUsageDetail_20' ) end [2025-01-16 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:37:22] Production.INFO: ==15539== Releasing lock... [2025-01-16 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:37:22] Production.INFO: 42 MB #Memory Used# [2025-01-16 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:38:05 [end_date_ymd] => 2025-01-16 20:38:05 [RateCDR] => 1 ) [2025-01-16 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:38:05' and `end` < '2025-01-16 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:38:18] Production.INFO: count ==1861 [2025-01-16 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:38:05 - End Time 2025-01-16 20:38:05 [2025-01-16 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263446', 'tblTempUsageDetail_20' ) start [2025-01-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263446', 'tblTempUsageDetail_20' ) end [2025-01-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263446', 'tblTempVendorCDR_20' ) start [2025-01-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263446', 'tblTempVendorCDR_20' ) end [2025-01-16 20:38:18] Production.INFO: ProcessCDR(1,14263446,1,1,2) [2025-01-16 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263446', 'tblTempUsageDetail_20' ) start [2025-01-16 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263446', 'tblTempUsageDetail_20' ) end [2025-01-16 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:38:22] Production.INFO: ==15613== Releasing lock... [2025-01-16 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:38:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-16 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:39:05 [end_date_ymd] => 2025-01-16 20:39:05 [RateCDR] => 1 ) [2025-01-16 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:39:05' and `end` < '2025-01-16 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:39:19] Production.INFO: count ==1854 [2025-01-16 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:39:05 - End Time 2025-01-16 20:39:05 [2025-01-16 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263455', 'tblTempUsageDetail_20' ) start [2025-01-16 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263455', 'tblTempUsageDetail_20' ) end [2025-01-16 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263455', 'tblTempVendorCDR_20' ) start [2025-01-16 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263455', 'tblTempVendorCDR_20' ) end [2025-01-16 20:39:19] Production.INFO: ProcessCDR(1,14263455,1,1,2) [2025-01-16 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263455', 'tblTempUsageDetail_20' ) start [2025-01-16 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263455', 'tblTempUsageDetail_20' ) end [2025-01-16 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:39:22] Production.INFO: ==15686== Releasing lock... [2025-01-16 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:39:22] Production.INFO: 42 MB #Memory Used# [2025-01-16 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:40:06 [end_date_ymd] => 2025-01-16 20:40:06 [RateCDR] => 1 ) [2025-01-16 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:40:06' and `end` < '2025-01-16 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:40:18] Production.INFO: count ==1860 [2025-01-16 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:40:06 - End Time 2025-01-16 20:40:06 [2025-01-16 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263460', 'tblTempUsageDetail_20' ) start [2025-01-16 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263460', 'tblTempUsageDetail_20' ) end [2025-01-16 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263460', 'tblTempVendorCDR_20' ) start [2025-01-16 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263460', 'tblTempVendorCDR_20' ) end [2025-01-16 20:40:19] Production.INFO: ProcessCDR(1,14263460,1,1,2) [2025-01-16 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263460', 'tblTempUsageDetail_20' ) start [2025-01-16 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263460', 'tblTempUsageDetail_20' ) end [2025-01-16 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:40:24] Production.INFO: ==15761== Releasing lock... [2025-01-16 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:40:24] Production.INFO: 42 MB #Memory Used# [2025-01-16 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:41:05 [end_date_ymd] => 2025-01-16 20:41:05 [RateCDR] => 1 ) [2025-01-16 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:41:05' and `end` < '2025-01-16 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:41:18] Production.INFO: count ==1773 [2025-01-16 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:41:05 - End Time 2025-01-16 20:41:05 [2025-01-16 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263466', 'tblTempUsageDetail_20' ) start [2025-01-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263466', 'tblTempUsageDetail_20' ) end [2025-01-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263466', 'tblTempVendorCDR_20' ) start [2025-01-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263466', 'tblTempVendorCDR_20' ) end [2025-01-16 20:41:19] Production.INFO: ProcessCDR(1,14263466,1,1,2) [2025-01-16 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263466', 'tblTempUsageDetail_20' ) start [2025-01-16 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263466', 'tblTempUsageDetail_20' ) end [2025-01-16 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:41:22] Production.INFO: ==15832== Releasing lock... [2025-01-16 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:41:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-16 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:42:05 [end_date_ymd] => 2025-01-16 20:42:05 [RateCDR] => 1 ) [2025-01-16 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:42:05' and `end` < '2025-01-16 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:42:18] Production.INFO: count ==1768 [2025-01-16 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:42:05 - End Time 2025-01-16 20:42:05 [2025-01-16 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263471', 'tblTempUsageDetail_20' ) start [2025-01-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263471', 'tblTempUsageDetail_20' ) end [2025-01-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263471', 'tblTempVendorCDR_20' ) start [2025-01-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263471', 'tblTempVendorCDR_20' ) end [2025-01-16 20:42:18] Production.INFO: ProcessCDR(1,14263471,1,1,2) [2025-01-16 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263471', 'tblTempUsageDetail_20' ) start [2025-01-16 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263471', 'tblTempUsageDetail_20' ) end [2025-01-16 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:42:22] Production.INFO: ==15901== Releasing lock... [2025-01-16 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:42:22] Production.INFO: 41 MB #Memory Used# [2025-01-16 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:43:05 [end_date_ymd] => 2025-01-16 20:43:05 [RateCDR] => 1 ) [2025-01-16 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:43:05' and `end` < '2025-01-16 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:43:17] Production.INFO: count ==1749 [2025-01-16 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:43:05 - End Time 2025-01-16 20:43:05 [2025-01-16 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263476', 'tblTempUsageDetail_20' ) start [2025-01-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263476', 'tblTempUsageDetail_20' ) end [2025-01-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263476', 'tblTempVendorCDR_20' ) start [2025-01-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263476', 'tblTempVendorCDR_20' ) end [2025-01-16 20:43:18] Production.INFO: ProcessCDR(1,14263476,1,1,2) [2025-01-16 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263476', 'tblTempUsageDetail_20' ) start [2025-01-16 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263476', 'tblTempUsageDetail_20' ) end [2025-01-16 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:43:21] Production.INFO: ==15972== Releasing lock... [2025-01-16 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:43:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-16 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:44:04 [end_date_ymd] => 2025-01-16 20:44:04 [RateCDR] => 1 ) [2025-01-16 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:44:04' and `end` < '2025-01-16 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:44:17] Production.INFO: count ==1745 [2025-01-16 20:44:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:44:04 - End Time 2025-01-16 20:44:04 [2025-01-16 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263481', 'tblTempUsageDetail_20' ) start [2025-01-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263481', 'tblTempUsageDetail_20' ) end [2025-01-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263481', 'tblTempVendorCDR_20' ) start [2025-01-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263481', 'tblTempVendorCDR_20' ) end [2025-01-16 20:44:17] Production.INFO: ProcessCDR(1,14263481,1,1,2) [2025-01-16 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263481', 'tblTempUsageDetail_20' ) start [2025-01-16 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263481', 'tblTempUsageDetail_20' ) end [2025-01-16 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:44:21] Production.INFO: ==16081== Releasing lock... [2025-01-16 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:44:21] Production.INFO: 41 MB #Memory Used# [2025-01-16 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:45:05 [end_date_ymd] => 2025-01-16 20:45:05 [RateCDR] => 1 ) [2025-01-16 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:45:05' and `end` < '2025-01-16 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:45:17] Production.INFO: count ==1739 [2025-01-16 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:45:05 - End Time 2025-01-16 20:45:05 [2025-01-16 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263486', 'tblTempUsageDetail_20' ) start [2025-01-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263486', 'tblTempUsageDetail_20' ) end [2025-01-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263486', 'tblTempVendorCDR_20' ) start [2025-01-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263486', 'tblTempVendorCDR_20' ) end [2025-01-16 20:45:18] Production.INFO: ProcessCDR(1,14263486,1,1,2) [2025-01-16 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263486', 'tblTempUsageDetail_20' ) start [2025-01-16 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263486', 'tblTempUsageDetail_20' ) end [2025-01-16 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:45:21] Production.INFO: ==16152== Releasing lock... [2025-01-16 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:45:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-16 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:46:04 [end_date_ymd] => 2025-01-16 20:46:04 [RateCDR] => 1 ) [2025-01-16 20:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:46:04' and `end` < '2025-01-16 20:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:46:17] Production.INFO: count ==1724 [2025-01-16 20:46:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:46:04 - End Time 2025-01-16 20:46:04 [2025-01-16 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263491', 'tblTempUsageDetail_20' ) start [2025-01-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263491', 'tblTempUsageDetail_20' ) end [2025-01-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263491', 'tblTempVendorCDR_20' ) start [2025-01-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263491', 'tblTempVendorCDR_20' ) end [2025-01-16 20:46:17] Production.INFO: ProcessCDR(1,14263491,1,1,2) [2025-01-16 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263491', 'tblTempUsageDetail_20' ) start [2025-01-16 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263491', 'tblTempUsageDetail_20' ) end [2025-01-16 20:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:46:20] Production.INFO: ==16224== Releasing lock... [2025-01-16 20:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:46:20] Production.INFO: 41 MB #Memory Used# [2025-01-16 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:47:04 [end_date_ymd] => 2025-01-16 20:47:04 [RateCDR] => 1 ) [2025-01-16 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:47:04' and `end` < '2025-01-16 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:47:17] Production.INFO: count ==1722 [2025-01-16 20:47:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:47:04 - End Time 2025-01-16 20:47:04 [2025-01-16 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263496', 'tblTempUsageDetail_20' ) start [2025-01-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263496', 'tblTempUsageDetail_20' ) end [2025-01-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263496', 'tblTempVendorCDR_20' ) start [2025-01-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263496', 'tblTempVendorCDR_20' ) end [2025-01-16 20:47:17] Production.INFO: ProcessCDR(1,14263496,1,1,2) [2025-01-16 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263496', 'tblTempUsageDetail_20' ) start [2025-01-16 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263496', 'tblTempUsageDetail_20' ) end [2025-01-16 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:47:22] Production.INFO: ==16302== Releasing lock... [2025-01-16 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-16 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:48:05 [end_date_ymd] => 2025-01-16 20:48:05 [RateCDR] => 1 ) [2025-01-16 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:48:05' and `end` < '2025-01-16 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:48:18] Production.INFO: count ==1718 [2025-01-16 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:48:05 - End Time 2025-01-16 20:48:05 [2025-01-16 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263501', 'tblTempUsageDetail_20' ) start [2025-01-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263501', 'tblTempUsageDetail_20' ) end [2025-01-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263501', 'tblTempVendorCDR_20' ) start [2025-01-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263501', 'tblTempVendorCDR_20' ) end [2025-01-16 20:48:18] Production.INFO: ProcessCDR(1,14263501,1,1,2) [2025-01-16 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263501', 'tblTempUsageDetail_20' ) start [2025-01-16 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263501', 'tblTempUsageDetail_20' ) end [2025-01-16 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:48:21] Production.INFO: ==16374== Releasing lock... [2025-01-16 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:48:21] Production.INFO: 41 MB #Memory Used# [2025-01-16 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:49:05 [end_date_ymd] => 2025-01-16 20:49:05 [RateCDR] => 1 ) [2025-01-16 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:49:05' and `end` < '2025-01-16 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:49:19] Production.INFO: count ==1713 [2025-01-16 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:49:05 - End Time 2025-01-16 20:49:05 [2025-01-16 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263506', 'tblTempUsageDetail_20' ) start [2025-01-16 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263506', 'tblTempUsageDetail_20' ) end [2025-01-16 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263506', 'tblTempVendorCDR_20' ) start [2025-01-16 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263506', 'tblTempVendorCDR_20' ) end [2025-01-16 20:49:19] Production.INFO: ProcessCDR(1,14263506,1,1,2) [2025-01-16 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263506', 'tblTempUsageDetail_20' ) start [2025-01-16 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263506', 'tblTempUsageDetail_20' ) end [2025-01-16 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:49:22] Production.INFO: ==16443== Releasing lock... [2025-01-16 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:49:22] Production.INFO: 41 MB #Memory Used# [2025-01-16 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:50:06 [end_date_ymd] => 2025-01-16 20:50:06 [RateCDR] => 1 ) [2025-01-16 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:50:06' and `end` < '2025-01-16 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:50:18] Production.INFO: count ==1706 [2025-01-16 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-16 17:50:06 - End Time 2025-01-16 20:50:06 [2025-01-16 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263512', 'tblTempUsageDetail_20' ) start [2025-01-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263512', 'tblTempUsageDetail_20' ) end [2025-01-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263512', 'tblTempVendorCDR_20' ) start [2025-01-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263512', 'tblTempVendorCDR_20' ) end [2025-01-16 20:50:19] Production.INFO: ProcessCDR(1,14263512,1,1,2) [2025-01-16 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263512', 'tblTempUsageDetail_20' ) start [2025-01-16 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263512', 'tblTempUsageDetail_20' ) end [2025-01-16 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:50:22] Production.INFO: ==16519== Releasing lock... [2025-01-16 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:50:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-16 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:51:05 [end_date_ymd] => 2025-01-16 20:51:05 [RateCDR] => 1 ) [2025-01-16 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:51:05' and `end` < '2025-01-16 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:51:18] Production.INFO: count ==1633 [2025-01-16 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:51:05 - End Time 2025-01-16 20:51:05 [2025-01-16 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263517', 'tblTempUsageDetail_20' ) start [2025-01-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263517', 'tblTempUsageDetail_20' ) end [2025-01-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263517', 'tblTempVendorCDR_20' ) start [2025-01-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263517', 'tblTempVendorCDR_20' ) end [2025-01-16 20:51:18] Production.INFO: ProcessCDR(1,14263517,1,1,2) [2025-01-16 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263517', 'tblTempUsageDetail_20' ) start [2025-01-16 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263517', 'tblTempUsageDetail_20' ) end [2025-01-16 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:51:21] Production.INFO: ==16591== Releasing lock... [2025-01-16 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:51:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-16 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:52:05 [end_date_ymd] => 2025-01-16 20:52:05 [RateCDR] => 1 ) [2025-01-16 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:52:05' and `end` < '2025-01-16 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:52:18] Production.INFO: count ==1609 [2025-01-16 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:52:05 - End Time 2025-01-16 20:52:05 [2025-01-16 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263522', 'tblTempUsageDetail_20' ) start [2025-01-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263522', 'tblTempUsageDetail_20' ) end [2025-01-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263522', 'tblTempVendorCDR_20' ) start [2025-01-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263522', 'tblTempVendorCDR_20' ) end [2025-01-16 20:52:18] Production.INFO: ProcessCDR(1,14263522,1,1,2) [2025-01-16 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263522', 'tblTempUsageDetail_20' ) start [2025-01-16 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263522', 'tblTempUsageDetail_20' ) end [2025-01-16 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:52:21] Production.INFO: ==16664== Releasing lock... [2025-01-16 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:52:21] Production.INFO: 40 MB #Memory Used# [2025-01-16 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:53:04 [end_date_ymd] => 2025-01-16 20:53:04 [RateCDR] => 1 ) [2025-01-16 20:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:53:04' and `end` < '2025-01-16 20:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:53:17] Production.INFO: count ==1599 [2025-01-16 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:53:04 - End Time 2025-01-16 20:53:04 [2025-01-16 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263527', 'tblTempUsageDetail_20' ) start [2025-01-16 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263527', 'tblTempUsageDetail_20' ) end [2025-01-16 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263527', 'tblTempVendorCDR_20' ) start [2025-01-16 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263527', 'tblTempVendorCDR_20' ) end [2025-01-16 20:53:18] Production.INFO: ProcessCDR(1,14263527,1,1,2) [2025-01-16 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263527', 'tblTempUsageDetail_20' ) start [2025-01-16 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263527', 'tblTempUsageDetail_20' ) end [2025-01-16 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:53:21] Production.INFO: ==16736== Releasing lock... [2025-01-16 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:53:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-16 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:54:05 [end_date_ymd] => 2025-01-16 20:54:05 [RateCDR] => 1 ) [2025-01-16 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:54:05' and `end` < '2025-01-16 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:54:18] Production.INFO: count ==1594 [2025-01-16 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:54:05 - End Time 2025-01-16 20:54:05 [2025-01-16 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263532', 'tblTempUsageDetail_20' ) start [2025-01-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263532', 'tblTempUsageDetail_20' ) end [2025-01-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263532', 'tblTempVendorCDR_20' ) start [2025-01-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263532', 'tblTempVendorCDR_20' ) end [2025-01-16 20:54:18] Production.INFO: ProcessCDR(1,14263532,1,1,2) [2025-01-16 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263532', 'tblTempUsageDetail_20' ) start [2025-01-16 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263532', 'tblTempUsageDetail_20' ) end [2025-01-16 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:54:21] Production.INFO: ==16807== Releasing lock... [2025-01-16 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:54:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-16 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:55:04 [end_date_ymd] => 2025-01-16 20:55:04 [RateCDR] => 1 ) [2025-01-16 20:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:55:04' and `end` < '2025-01-16 20:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:55:17] Production.INFO: count ==1589 [2025-01-16 20:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:55:04 - End Time 2025-01-16 20:55:04 [2025-01-16 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263537', 'tblTempUsageDetail_20' ) start [2025-01-16 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263537', 'tblTempUsageDetail_20' ) end [2025-01-16 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263537', 'tblTempVendorCDR_20' ) start [2025-01-16 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263537', 'tblTempVendorCDR_20' ) end [2025-01-16 20:55:17] Production.INFO: ProcessCDR(1,14263537,1,1,2) [2025-01-16 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263537', 'tblTempUsageDetail_20' ) start [2025-01-16 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263537', 'tblTempUsageDetail_20' ) end [2025-01-16 20:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:55:20] Production.INFO: ==16880== Releasing lock... [2025-01-16 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:55:20] Production.INFO: 39.75 MB #Memory Used# [2025-01-16 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:56:05 [end_date_ymd] => 2025-01-16 20:56:05 [RateCDR] => 1 ) [2025-01-16 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:56:05' and `end` < '2025-01-16 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:56:17] Production.INFO: count ==1579 [2025-01-16 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:56:05 - End Time 2025-01-16 20:56:05 [2025-01-16 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263542', 'tblTempUsageDetail_20' ) start [2025-01-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263542', 'tblTempUsageDetail_20' ) end [2025-01-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263542', 'tblTempVendorCDR_20' ) start [2025-01-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263542', 'tblTempVendorCDR_20' ) end [2025-01-16 20:56:18] Production.INFO: ProcessCDR(1,14263542,1,1,2) [2025-01-16 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263542', 'tblTempUsageDetail_20' ) start [2025-01-16 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263542', 'tblTempUsageDetail_20' ) end [2025-01-16 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:56:22] Production.INFO: ==16952== Releasing lock... [2025-01-16 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:56:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-16 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:57:05 [end_date_ymd] => 2025-01-16 20:57:05 [RateCDR] => 1 ) [2025-01-16 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:57:05' and `end` < '2025-01-16 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:57:18] Production.INFO: count ==1576 [2025-01-16 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:57:05 - End Time 2025-01-16 20:57:05 [2025-01-16 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263547', 'tblTempUsageDetail_20' ) start [2025-01-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263547', 'tblTempUsageDetail_20' ) end [2025-01-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263547', 'tblTempVendorCDR_20' ) start [2025-01-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263547', 'tblTempVendorCDR_20' ) end [2025-01-16 20:57:18] Production.INFO: ProcessCDR(1,14263547,1,1,2) [2025-01-16 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263547', 'tblTempUsageDetail_20' ) start [2025-01-16 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263547', 'tblTempUsageDetail_20' ) end [2025-01-16 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:57:21] Production.INFO: ==17023== Releasing lock... [2025-01-16 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:57:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-16 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:58:05 [end_date_ymd] => 2025-01-16 20:58:05 [RateCDR] => 1 ) [2025-01-16 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:58:05' and `end` < '2025-01-16 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:58:17] Production.INFO: count ==1577 [2025-01-16 20:58:17] Production.ERROR: pbx CDR StartTime 2025-01-16 17:58:05 - End Time 2025-01-16 20:58:05 [2025-01-16 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263552', 'tblTempUsageDetail_20' ) start [2025-01-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263552', 'tblTempUsageDetail_20' ) end [2025-01-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263552', 'tblTempVendorCDR_20' ) start [2025-01-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263552', 'tblTempVendorCDR_20' ) end [2025-01-16 20:58:18] Production.INFO: ProcessCDR(1,14263552,1,1,2) [2025-01-16 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263552', 'tblTempUsageDetail_20' ) start [2025-01-16 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263552', 'tblTempUsageDetail_20' ) end [2025-01-16 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:58:21] Production.INFO: ==17099== Releasing lock... [2025-01-16 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:58:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-16 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 17:59:05 [end_date_ymd] => 2025-01-16 20:59:05 [RateCDR] => 1 ) [2025-01-16 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 17:59:05' and `end` < '2025-01-16 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 20:59:18] Production.INFO: count ==1555 [2025-01-16 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 17:59:05 - End Time 2025-01-16 20:59:05 [2025-01-16 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263557', 'tblTempUsageDetail_20' ) start [2025-01-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263557', 'tblTempUsageDetail_20' ) end [2025-01-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263557', 'tblTempVendorCDR_20' ) start [2025-01-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263557', 'tblTempVendorCDR_20' ) end [2025-01-16 20:59:18] Production.INFO: ProcessCDR(1,14263557,1,1,2) [2025-01-16 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263557', 'tblTempUsageDetail_20' ) start [2025-01-16 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263557', 'tblTempUsageDetail_20' ) end [2025-01-16 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 20:59:22] Production.INFO: ==17169== Releasing lock... [2025-01-16 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 20:59:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-16 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:00:05 [end_date_ymd] => 2025-01-16 21:00:05 [RateCDR] => 1 ) [2025-01-16 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:00:05' and `end` < '2025-01-16 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:00:18] Production.INFO: count ==1553 [2025-01-16 21:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:00:05 - End Time 2025-01-16 21:00:05 [2025-01-16 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263563', 'tblTempUsageDetail_20' ) start [2025-01-16 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263563', 'tblTempUsageDetail_20' ) end [2025-01-16 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263563', 'tblTempVendorCDR_20' ) start [2025-01-16 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263563', 'tblTempVendorCDR_20' ) end [2025-01-16 21:00:18] Production.INFO: ProcessCDR(1,14263563,1,1,2) [2025-01-16 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263563', 'tblTempUsageDetail_20' ) start [2025-01-16 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263563', 'tblTempUsageDetail_20' ) end [2025-01-16 21:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:00:21] Production.INFO: ==17279== Releasing lock... [2025-01-16 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:00:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-16 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:01:05 [end_date_ymd] => 2025-01-16 21:01:05 [RateCDR] => 1 ) [2025-01-16 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:01:05' and `end` < '2025-01-16 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:01:18] Production.INFO: count ==1493 [2025-01-16 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:01:05 - End Time 2025-01-16 21:01:05 [2025-01-16 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263568', 'tblTempUsageDetail_20' ) start [2025-01-16 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263568', 'tblTempUsageDetail_20' ) end [2025-01-16 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263568', 'tblTempVendorCDR_20' ) start [2025-01-16 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263568', 'tblTempVendorCDR_20' ) end [2025-01-16 21:01:19] Production.INFO: ProcessCDR(1,14263568,1,1,2) [2025-01-16 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263568', 'tblTempUsageDetail_20' ) start [2025-01-16 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263568', 'tblTempUsageDetail_20' ) end [2025-01-16 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:01:22] Production.INFO: ==17372== Releasing lock... [2025-01-16 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:01:22] Production.INFO: 39 MB #Memory Used# [2025-01-16 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:02:05 [end_date_ymd] => 2025-01-16 21:02:05 [RateCDR] => 1 ) [2025-01-16 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:02:05' and `end` < '2025-01-16 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:02:18] Production.INFO: count ==1490 [2025-01-16 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:02:05 - End Time 2025-01-16 21:02:05 [2025-01-16 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263573', 'tblTempUsageDetail_20' ) start [2025-01-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263573', 'tblTempUsageDetail_20' ) end [2025-01-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263573', 'tblTempVendorCDR_20' ) start [2025-01-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263573', 'tblTempVendorCDR_20' ) end [2025-01-16 21:02:18] Production.INFO: ProcessCDR(1,14263573,1,1,2) [2025-01-16 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263573', 'tblTempUsageDetail_20' ) start [2025-01-16 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263573', 'tblTempUsageDetail_20' ) end [2025-01-16 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:02:21] Production.INFO: ==17443== Releasing lock... [2025-01-16 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:02:21] Production.INFO: 39 MB #Memory Used# [2025-01-16 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:03:04 [end_date_ymd] => 2025-01-16 21:03:04 [RateCDR] => 1 ) [2025-01-16 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:03:04' and `end` < '2025-01-16 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:03:17] Production.INFO: count ==1486 [2025-01-16 21:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:03:04 - End Time 2025-01-16 21:03:04 [2025-01-16 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263578', 'tblTempUsageDetail_20' ) start [2025-01-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263578', 'tblTempUsageDetail_20' ) end [2025-01-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263578', 'tblTempVendorCDR_20' ) start [2025-01-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263578', 'tblTempVendorCDR_20' ) end [2025-01-16 21:03:17] Production.INFO: ProcessCDR(1,14263578,1,1,2) [2025-01-16 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263578', 'tblTempUsageDetail_20' ) start [2025-01-16 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263578', 'tblTempUsageDetail_20' ) end [2025-01-16 21:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:03:20] Production.INFO: ==17512== Releasing lock... [2025-01-16 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:03:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-16 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:04:05 [end_date_ymd] => 2025-01-16 21:04:05 [RateCDR] => 1 ) [2025-01-16 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:04:05' and `end` < '2025-01-16 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:04:17] Production.INFO: count ==1486 [2025-01-16 21:04:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:04:05 - End Time 2025-01-16 21:04:05 [2025-01-16 21:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263583', 'tblTempUsageDetail_20' ) start [2025-01-16 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263583', 'tblTempUsageDetail_20' ) end [2025-01-16 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263583', 'tblTempVendorCDR_20' ) start [2025-01-16 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263583', 'tblTempVendorCDR_20' ) end [2025-01-16 21:04:17] Production.INFO: ProcessCDR(1,14263583,1,1,2) [2025-01-16 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263583', 'tblTempUsageDetail_20' ) start [2025-01-16 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263583', 'tblTempUsageDetail_20' ) end [2025-01-16 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:04:22] Production.INFO: ==17586== Releasing lock... [2025-01-16 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:04:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-16 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:05:04 [end_date_ymd] => 2025-01-16 21:05:04 [RateCDR] => 1 ) [2025-01-16 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:05:04' and `end` < '2025-01-16 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:05:17] Production.INFO: count ==1486 [2025-01-16 21:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:05:04 - End Time 2025-01-16 21:05:04 [2025-01-16 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263588', 'tblTempUsageDetail_20' ) start [2025-01-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263588', 'tblTempUsageDetail_20' ) end [2025-01-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263588', 'tblTempVendorCDR_20' ) start [2025-01-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263588', 'tblTempVendorCDR_20' ) end [2025-01-16 21:05:17] Production.INFO: ProcessCDR(1,14263588,1,1,2) [2025-01-16 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263588', 'tblTempUsageDetail_20' ) start [2025-01-16 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263588', 'tblTempUsageDetail_20' ) end [2025-01-16 21:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:05:20] Production.INFO: ==17654== Releasing lock... [2025-01-16 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:05:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-16 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:06:05 [end_date_ymd] => 2025-01-16 21:06:05 [RateCDR] => 1 ) [2025-01-16 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:06:05' and `end` < '2025-01-16 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:06:18] Production.INFO: count ==1466 [2025-01-16 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:06:05 - End Time 2025-01-16 21:06:05 [2025-01-16 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263593', 'tblTempUsageDetail_20' ) start [2025-01-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263593', 'tblTempUsageDetail_20' ) end [2025-01-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263593', 'tblTempVendorCDR_20' ) start [2025-01-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263593', 'tblTempVendorCDR_20' ) end [2025-01-16 21:06:18] Production.INFO: ProcessCDR(1,14263593,1,1,2) [2025-01-16 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263593', 'tblTempUsageDetail_20' ) start [2025-01-16 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263593', 'tblTempUsageDetail_20' ) end [2025-01-16 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:06:22] Production.INFO: ==17726== Releasing lock... [2025-01-16 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:06:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-16 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:07:04 [end_date_ymd] => 2025-01-16 21:07:04 [RateCDR] => 1 ) [2025-01-16 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:07:04' and `end` < '2025-01-16 21:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:07:18] Production.INFO: count ==1466 [2025-01-16 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:07:04 - End Time 2025-01-16 21:07:04 [2025-01-16 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263598', 'tblTempUsageDetail_20' ) start [2025-01-16 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263598', 'tblTempUsageDetail_20' ) end [2025-01-16 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263598', 'tblTempVendorCDR_20' ) start [2025-01-16 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263598', 'tblTempVendorCDR_20' ) end [2025-01-16 21:07:19] Production.INFO: ProcessCDR(1,14263598,1,1,2) [2025-01-16 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263598', 'tblTempUsageDetail_20' ) start [2025-01-16 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263598', 'tblTempUsageDetail_20' ) end [2025-01-16 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:07:22] Production.INFO: ==17799== Releasing lock... [2025-01-16 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:07:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-16 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:08:05 [end_date_ymd] => 2025-01-16 21:08:05 [RateCDR] => 1 ) [2025-01-16 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:08:05' and `end` < '2025-01-16 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:08:19] Production.INFO: count ==1461 [2025-01-16 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:08:05 - End Time 2025-01-16 21:08:05 [2025-01-16 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263603', 'tblTempUsageDetail_20' ) start [2025-01-16 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263603', 'tblTempUsageDetail_20' ) end [2025-01-16 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263603', 'tblTempVendorCDR_20' ) start [2025-01-16 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263603', 'tblTempVendorCDR_20' ) end [2025-01-16 21:08:19] Production.INFO: ProcessCDR(1,14263603,1,1,2) [2025-01-16 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263603', 'tblTempUsageDetail_20' ) start [2025-01-16 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263603', 'tblTempUsageDetail_20' ) end [2025-01-16 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:08:22] Production.INFO: ==17868== Releasing lock... [2025-01-16 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:08:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-16 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:09:05 [end_date_ymd] => 2025-01-16 21:09:05 [RateCDR] => 1 ) [2025-01-16 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:09:05' and `end` < '2025-01-16 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:09:17] Production.INFO: count ==1451 [2025-01-16 21:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:09:05 - End Time 2025-01-16 21:09:05 [2025-01-16 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263608', 'tblTempUsageDetail_20' ) start [2025-01-16 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263608', 'tblTempUsageDetail_20' ) end [2025-01-16 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263608', 'tblTempVendorCDR_20' ) start [2025-01-16 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263608', 'tblTempVendorCDR_20' ) end [2025-01-16 21:09:17] Production.INFO: ProcessCDR(1,14263608,1,1,2) [2025-01-16 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263608', 'tblTempUsageDetail_20' ) start [2025-01-16 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263608', 'tblTempUsageDetail_20' ) end [2025-01-16 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:09:22] Production.INFO: ==17940== Releasing lock... [2025-01-16 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:09:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-16 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:10:05 [end_date_ymd] => 2025-01-16 21:10:05 [RateCDR] => 1 ) [2025-01-16 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:10:05' and `end` < '2025-01-16 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:10:18] Production.INFO: count ==1446 [2025-01-16 21:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:10:05 - End Time 2025-01-16 21:10:05 [2025-01-16 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263614', 'tblTempUsageDetail_20' ) start [2025-01-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263614', 'tblTempUsageDetail_20' ) end [2025-01-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263614', 'tblTempVendorCDR_20' ) start [2025-01-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263614', 'tblTempVendorCDR_20' ) end [2025-01-16 21:10:18] Production.INFO: ProcessCDR(1,14263614,1,1,2) [2025-01-16 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263614', 'tblTempUsageDetail_20' ) start [2025-01-16 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263614', 'tblTempUsageDetail_20' ) end [2025-01-16 21:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:10:21] Production.INFO: ==18014== Releasing lock... [2025-01-16 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:10:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-16 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:11:04 [end_date_ymd] => 2025-01-16 21:11:04 [RateCDR] => 1 ) [2025-01-16 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:11:04' and `end` < '2025-01-16 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:11:17] Production.INFO: count ==1404 [2025-01-16 21:11:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:11:04 - End Time 2025-01-16 21:11:04 [2025-01-16 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263619', 'tblTempUsageDetail_20' ) start [2025-01-16 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263619', 'tblTempUsageDetail_20' ) end [2025-01-16 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263619', 'tblTempVendorCDR_20' ) start [2025-01-16 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263619', 'tblTempVendorCDR_20' ) end [2025-01-16 21:11:17] Production.INFO: ProcessCDR(1,14263619,1,1,2) [2025-01-16 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263619', 'tblTempUsageDetail_20' ) start [2025-01-16 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263619', 'tblTempUsageDetail_20' ) end [2025-01-16 21:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:11:20] Production.INFO: ==18086== Releasing lock... [2025-01-16 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:11:20] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:12:06 [end_date_ymd] => 2025-01-16 21:12:06 [RateCDR] => 1 ) [2025-01-16 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:12:06' and `end` < '2025-01-16 21:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:12:19] Production.INFO: count ==1403 [2025-01-16 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:12:06 - End Time 2025-01-16 21:12:06 [2025-01-16 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263624', 'tblTempUsageDetail_20' ) start [2025-01-16 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263624', 'tblTempUsageDetail_20' ) end [2025-01-16 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263624', 'tblTempVendorCDR_20' ) start [2025-01-16 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263624', 'tblTempVendorCDR_20' ) end [2025-01-16 21:12:19] Production.INFO: ProcessCDR(1,14263624,1,1,2) [2025-01-16 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263624', 'tblTempUsageDetail_20' ) start [2025-01-16 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263624', 'tblTempUsageDetail_20' ) end [2025-01-16 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:12:23] Production.INFO: ==18160== Releasing lock... [2025-01-16 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:12:23] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:13:05 [end_date_ymd] => 2025-01-16 21:13:05 [RateCDR] => 1 ) [2025-01-16 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:13:05' and `end` < '2025-01-16 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:13:18] Production.INFO: count ==1399 [2025-01-16 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:13:05 - End Time 2025-01-16 21:13:05 [2025-01-16 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263629', 'tblTempUsageDetail_20' ) start [2025-01-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263629', 'tblTempUsageDetail_20' ) end [2025-01-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263629', 'tblTempVendorCDR_20' ) start [2025-01-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263629', 'tblTempVendorCDR_20' ) end [2025-01-16 21:13:18] Production.INFO: ProcessCDR(1,14263629,1,1,2) [2025-01-16 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263629', 'tblTempUsageDetail_20' ) start [2025-01-16 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263629', 'tblTempUsageDetail_20' ) end [2025-01-16 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:13:21] Production.INFO: ==18230== Releasing lock... [2025-01-16 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:13:21] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:14:05 [end_date_ymd] => 2025-01-16 21:14:05 [RateCDR] => 1 ) [2025-01-16 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:14:05' and `end` < '2025-01-16 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:14:18] Production.INFO: count ==1397 [2025-01-16 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:14:05 - End Time 2025-01-16 21:14:05 [2025-01-16 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263634', 'tblTempUsageDetail_20' ) start [2025-01-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263634', 'tblTempUsageDetail_20' ) end [2025-01-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263634', 'tblTempVendorCDR_20' ) start [2025-01-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263634', 'tblTempVendorCDR_20' ) end [2025-01-16 21:14:18] Production.INFO: ProcessCDR(1,14263634,1,1,2) [2025-01-16 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263634', 'tblTempUsageDetail_20' ) start [2025-01-16 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263634', 'tblTempUsageDetail_20' ) end [2025-01-16 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:14:22] Production.INFO: ==18301== Releasing lock... [2025-01-16 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:14:22] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:15:05 [end_date_ymd] => 2025-01-16 21:15:05 [RateCDR] => 1 ) [2025-01-16 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:15:05' and `end` < '2025-01-16 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:15:17] Production.INFO: count ==1385 [2025-01-16 21:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:15:05 - End Time 2025-01-16 21:15:05 [2025-01-16 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263639', 'tblTempUsageDetail_20' ) start [2025-01-16 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263639', 'tblTempUsageDetail_20' ) end [2025-01-16 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263639', 'tblTempVendorCDR_20' ) start [2025-01-16 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263639', 'tblTempVendorCDR_20' ) end [2025-01-16 21:15:17] Production.INFO: ProcessCDR(1,14263639,1,1,2) [2025-01-16 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263639', 'tblTempUsageDetail_20' ) start [2025-01-16 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263639', 'tblTempUsageDetail_20' ) end [2025-01-16 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:15:21] Production.INFO: ==18376== Releasing lock... [2025-01-16 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:15:21] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:16:05 [end_date_ymd] => 2025-01-16 21:16:05 [RateCDR] => 1 ) [2025-01-16 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:16:05' and `end` < '2025-01-16 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:16:18] Production.INFO: count ==1383 [2025-01-16 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:16:05 - End Time 2025-01-16 21:16:05 [2025-01-16 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263644', 'tblTempUsageDetail_20' ) start [2025-01-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263644', 'tblTempUsageDetail_20' ) end [2025-01-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263644', 'tblTempVendorCDR_20' ) start [2025-01-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263644', 'tblTempVendorCDR_20' ) end [2025-01-16 21:16:18] Production.INFO: ProcessCDR(1,14263644,1,1,2) [2025-01-16 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263644', 'tblTempUsageDetail_20' ) start [2025-01-16 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263644', 'tblTempUsageDetail_20' ) end [2025-01-16 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:16:21] Production.INFO: ==18487== Releasing lock... [2025-01-16 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:16:21] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:17:04 [end_date_ymd] => 2025-01-16 21:17:04 [RateCDR] => 1 ) [2025-01-16 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:17:04' and `end` < '2025-01-16 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:17:16] Production.INFO: count ==1383 [2025-01-16 21:17:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:17:04 - End Time 2025-01-16 21:17:04 [2025-01-16 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263649', 'tblTempUsageDetail_20' ) start [2025-01-16 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263649', 'tblTempUsageDetail_20' ) end [2025-01-16 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263649', 'tblTempVendorCDR_20' ) start [2025-01-16 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263649', 'tblTempVendorCDR_20' ) end [2025-01-16 21:17:17] Production.INFO: ProcessCDR(1,14263649,1,1,2) [2025-01-16 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263649', 'tblTempUsageDetail_20' ) start [2025-01-16 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263649', 'tblTempUsageDetail_20' ) end [2025-01-16 21:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:17:20] Production.INFO: ==18559== Releasing lock... [2025-01-16 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:17:20] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:18:05 [end_date_ymd] => 2025-01-16 21:18:05 [RateCDR] => 1 ) [2025-01-16 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:18:05' and `end` < '2025-01-16 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:18:19] Production.INFO: count ==1379 [2025-01-16 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:18:05 - End Time 2025-01-16 21:18:05 [2025-01-16 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263654', 'tblTempUsageDetail_20' ) start [2025-01-16 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263654', 'tblTempUsageDetail_20' ) end [2025-01-16 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263654', 'tblTempVendorCDR_20' ) start [2025-01-16 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263654', 'tblTempVendorCDR_20' ) end [2025-01-16 21:18:19] Production.INFO: ProcessCDR(1,14263654,1,1,2) [2025-01-16 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263654', 'tblTempUsageDetail_20' ) start [2025-01-16 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263654', 'tblTempUsageDetail_20' ) end [2025-01-16 21:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:18:24] Production.INFO: ==18629== Releasing lock... [2025-01-16 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:18:24] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:19:05 [end_date_ymd] => 2025-01-16 21:19:05 [RateCDR] => 1 ) [2025-01-16 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:19:05' and `end` < '2025-01-16 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:19:19] Production.INFO: count ==1378 [2025-01-16 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:19:05 - End Time 2025-01-16 21:19:05 [2025-01-16 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263659', 'tblTempUsageDetail_20' ) start [2025-01-16 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263659', 'tblTempUsageDetail_20' ) end [2025-01-16 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263659', 'tblTempVendorCDR_20' ) start [2025-01-16 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263659', 'tblTempVendorCDR_20' ) end [2025-01-16 21:19:19] Production.INFO: ProcessCDR(1,14263659,1,1,2) [2025-01-16 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263659', 'tblTempUsageDetail_20' ) start [2025-01-16 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263659', 'tblTempUsageDetail_20' ) end [2025-01-16 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:19:23] Production.INFO: ==18701== Releasing lock... [2025-01-16 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:19:23] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:20:06 [end_date_ymd] => 2025-01-16 21:20:06 [RateCDR] => 1 ) [2025-01-16 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:20:06' and `end` < '2025-01-16 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:20:18] Production.INFO: count ==1373 [2025-01-16 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:20:06 - End Time 2025-01-16 21:20:06 [2025-01-16 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263665', 'tblTempUsageDetail_20' ) start [2025-01-16 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263665', 'tblTempUsageDetail_20' ) end [2025-01-16 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263665', 'tblTempVendorCDR_20' ) start [2025-01-16 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263665', 'tblTempVendorCDR_20' ) end [2025-01-16 21:20:19] Production.INFO: ProcessCDR(1,14263665,1,1,2) [2025-01-16 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263665', 'tblTempUsageDetail_20' ) start [2025-01-16 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263665', 'tblTempUsageDetail_20' ) end [2025-01-16 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:20:22] Production.INFO: ==18772== Releasing lock... [2025-01-16 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:20:22] Production.INFO: 38 MB #Memory Used# [2025-01-16 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:21:05 [end_date_ymd] => 2025-01-16 21:21:05 [RateCDR] => 1 ) [2025-01-16 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:21:05' and `end` < '2025-01-16 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:21:18] Production.INFO: count ==1342 [2025-01-16 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:21:05 - End Time 2025-01-16 21:21:05 [2025-01-16 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263670', 'tblTempUsageDetail_20' ) start [2025-01-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263670', 'tblTempUsageDetail_20' ) end [2025-01-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263670', 'tblTempVendorCDR_20' ) start [2025-01-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263670', 'tblTempVendorCDR_20' ) end [2025-01-16 21:21:18] Production.INFO: ProcessCDR(1,14263670,1,1,2) [2025-01-16 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263670', 'tblTempUsageDetail_20' ) start [2025-01-16 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263670', 'tblTempUsageDetail_20' ) end [2025-01-16 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:21:21] Production.INFO: ==18845== Releasing lock... [2025-01-16 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:21:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:22:05 [end_date_ymd] => 2025-01-16 21:22:05 [RateCDR] => 1 ) [2025-01-16 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:22:05' and `end` < '2025-01-16 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:22:18] Production.INFO: count ==1345 [2025-01-16 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:22:05 - End Time 2025-01-16 21:22:05 [2025-01-16 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263675', 'tblTempUsageDetail_20' ) start [2025-01-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263675', 'tblTempUsageDetail_20' ) end [2025-01-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263675', 'tblTempVendorCDR_20' ) start [2025-01-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263675', 'tblTempVendorCDR_20' ) end [2025-01-16 21:22:18] Production.INFO: ProcessCDR(1,14263675,1,1,2) [2025-01-16 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263675', 'tblTempUsageDetail_20' ) start [2025-01-16 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263675', 'tblTempUsageDetail_20' ) end [2025-01-16 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:22:21] Production.INFO: ==18916== Releasing lock... [2025-01-16 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:22:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:23:06 [end_date_ymd] => 2025-01-16 21:23:06 [RateCDR] => 1 ) [2025-01-16 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:23:06' and `end` < '2025-01-16 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:23:18] Production.INFO: count ==1345 [2025-01-16 21:23:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:23:06 - End Time 2025-01-16 21:23:06 [2025-01-16 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263680', 'tblTempUsageDetail_20' ) start [2025-01-16 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263680', 'tblTempUsageDetail_20' ) end [2025-01-16 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263680', 'tblTempVendorCDR_20' ) start [2025-01-16 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263680', 'tblTempVendorCDR_20' ) end [2025-01-16 21:23:19] Production.INFO: ProcessCDR(1,14263680,1,1,2) [2025-01-16 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263680', 'tblTempUsageDetail_20' ) start [2025-01-16 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263680', 'tblTempUsageDetail_20' ) end [2025-01-16 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:23:22] Production.INFO: ==18988== Releasing lock... [2025-01-16 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:24:05 [end_date_ymd] => 2025-01-16 21:24:05 [RateCDR] => 1 ) [2025-01-16 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:24:05' and `end` < '2025-01-16 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:24:17] Production.INFO: count ==1345 [2025-01-16 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:24:05 - End Time 2025-01-16 21:24:05 [2025-01-16 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263685', 'tblTempUsageDetail_20' ) start [2025-01-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263685', 'tblTempUsageDetail_20' ) end [2025-01-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263685', 'tblTempVendorCDR_20' ) start [2025-01-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263685', 'tblTempVendorCDR_20' ) end [2025-01-16 21:24:18] Production.INFO: ProcessCDR(1,14263685,1,1,2) [2025-01-16 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263685', 'tblTempUsageDetail_20' ) start [2025-01-16 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263685', 'tblTempUsageDetail_20' ) end [2025-01-16 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:24:22] Production.INFO: ==19060== Releasing lock... [2025-01-16 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:25:05 [end_date_ymd] => 2025-01-16 21:25:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 18:25:05' and `end` < '2025-01-16 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-01-16 21:25:18] Production.INFO: count ==1343 [2025-01-16 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:25:05 - End Time 2025-01-16 21:25:05 [2025-01-16 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263690', 'tblTempUsageDetail_20' ) start [2025-01-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263690', 'tblTempUsageDetail_20' ) end [2025-01-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263690', 'tblTempVendorCDR_20' ) start [2025-01-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263690', 'tblTempVendorCDR_20' ) end [2025-01-16 21:25:18] Production.INFO: ProcessCDR(1,14263690,1,1,2) [2025-01-16 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263690', 'tblTempUsageDetail_20' ) start [2025-01-16 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263690', 'tblTempUsageDetail_20' ) end [2025-01-16 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:25:21] Production.INFO: ==19130== Releasing lock... [2025-01-16 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:25:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-16 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:26:05 [end_date_ymd] => 2025-01-16 21:26:05 [RateCDR] => 1 ) [2025-01-16 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:26:05' and `end` < '2025-01-16 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:26:18] Production.INFO: count ==1334 [2025-01-16 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:26:05 - End Time 2025-01-16 21:26:05 [2025-01-16 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263695', 'tblTempUsageDetail_20' ) start [2025-01-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263695', 'tblTempUsageDetail_20' ) end [2025-01-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263695', 'tblTempVendorCDR_20' ) start [2025-01-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263695', 'tblTempVendorCDR_20' ) end [2025-01-16 21:26:18] Production.INFO: ProcessCDR(1,14263695,1,1,2) [2025-01-16 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263695', 'tblTempUsageDetail_20' ) start [2025-01-16 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263695', 'tblTempUsageDetail_20' ) end [2025-01-16 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:26:21] Production.INFO: ==19200== Releasing lock... [2025-01-16 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:26:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:27:04 [end_date_ymd] => 2025-01-16 21:27:04 [RateCDR] => 1 ) [2025-01-16 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:27:04' and `end` < '2025-01-16 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:27:16] Production.INFO: count ==1330 [2025-01-16 21:27:16] Production.ERROR: pbx CDR StartTime 2025-01-16 18:27:04 - End Time 2025-01-16 21:27:04 [2025-01-16 21:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263700', 'tblTempUsageDetail_20' ) start [2025-01-16 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263700', 'tblTempUsageDetail_20' ) end [2025-01-16 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263700', 'tblTempVendorCDR_20' ) start [2025-01-16 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263700', 'tblTempVendorCDR_20' ) end [2025-01-16 21:27:16] Production.INFO: ProcessCDR(1,14263700,1,1,2) [2025-01-16 21:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263700', 'tblTempUsageDetail_20' ) start [2025-01-16 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263700', 'tblTempUsageDetail_20' ) end [2025-01-16 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:27:20] Production.INFO: ==19271== Releasing lock... [2025-01-16 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:27:20] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:28:05 [end_date_ymd] => 2025-01-16 21:28:05 [RateCDR] => 1 ) [2025-01-16 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:28:05' and `end` < '2025-01-16 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:28:17] Production.INFO: count ==1331 [2025-01-16 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:28:05 - End Time 2025-01-16 21:28:05 [2025-01-16 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263705', 'tblTempUsageDetail_20' ) start [2025-01-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263705', 'tblTempUsageDetail_20' ) end [2025-01-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263705', 'tblTempVendorCDR_20' ) start [2025-01-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263705', 'tblTempVendorCDR_20' ) end [2025-01-16 21:28:18] Production.INFO: ProcessCDR(1,14263705,1,1,2) [2025-01-16 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263705', 'tblTempUsageDetail_20' ) start [2025-01-16 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263705', 'tblTempUsageDetail_20' ) end [2025-01-16 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:28:21] Production.INFO: ==19341== Releasing lock... [2025-01-16 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:28:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:29:05 [end_date_ymd] => 2025-01-16 21:29:05 [RateCDR] => 1 ) [2025-01-16 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:29:05' and `end` < '2025-01-16 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:29:18] Production.INFO: count ==1330 [2025-01-16 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:29:05 - End Time 2025-01-16 21:29:05 [2025-01-16 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263710', 'tblTempUsageDetail_20' ) start [2025-01-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263710', 'tblTempUsageDetail_20' ) end [2025-01-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263710', 'tblTempVendorCDR_20' ) start [2025-01-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263710', 'tblTempVendorCDR_20' ) end [2025-01-16 21:29:18] Production.INFO: ProcessCDR(1,14263710,1,1,2) [2025-01-16 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263710', 'tblTempUsageDetail_20' ) start [2025-01-16 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263710', 'tblTempUsageDetail_20' ) end [2025-01-16 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:29:21] Production.INFO: ==19416== Releasing lock... [2025-01-16 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:29:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:30:05 [end_date_ymd] => 2025-01-16 21:30:05 [RateCDR] => 1 ) [2025-01-16 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:30:05' and `end` < '2025-01-16 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:30:18] Production.INFO: count ==1316 [2025-01-16 21:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:30:05 - End Time 2025-01-16 21:30:05 [2025-01-16 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263715', 'tblTempUsageDetail_20' ) start [2025-01-16 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263715', 'tblTempUsageDetail_20' ) end [2025-01-16 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263715', 'tblTempVendorCDR_20' ) start [2025-01-16 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263715', 'tblTempVendorCDR_20' ) end [2025-01-16 21:30:18] Production.INFO: ProcessCDR(1,14263715,1,1,2) [2025-01-16 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263715', 'tblTempUsageDetail_20' ) start [2025-01-16 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263715', 'tblTempUsageDetail_20' ) end [2025-01-16 21:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:30:21] Production.INFO: ==19490== Releasing lock... [2025-01-16 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:30:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-16 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:31:05 [end_date_ymd] => 2025-01-16 21:31:05 [RateCDR] => 1 ) [2025-01-16 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:31:05' and `end` < '2025-01-16 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:31:18] Production.INFO: count ==1253 [2025-01-16 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:31:05 - End Time 2025-01-16 21:31:05 [2025-01-16 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263721', 'tblTempUsageDetail_20' ) start [2025-01-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263721', 'tblTempUsageDetail_20' ) end [2025-01-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263721', 'tblTempVendorCDR_20' ) start [2025-01-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263721', 'tblTempVendorCDR_20' ) end [2025-01-16 21:31:18] Production.INFO: ProcessCDR(1,14263721,1,1,2) [2025-01-16 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263721', 'tblTempUsageDetail_20' ) start [2025-01-16 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263721', 'tblTempUsageDetail_20' ) end [2025-01-16 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:31:21] Production.INFO: ==19602== Releasing lock... [2025-01-16 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:31:21] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:32:04 [end_date_ymd] => 2025-01-16 21:32:04 [RateCDR] => 1 ) [2025-01-16 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:32:04' and `end` < '2025-01-16 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:32:17] Production.INFO: count ==1251 [2025-01-16 21:32:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:32:04 - End Time 2025-01-16 21:32:04 [2025-01-16 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263726', 'tblTempUsageDetail_20' ) start [2025-01-16 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263726', 'tblTempUsageDetail_20' ) end [2025-01-16 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263726', 'tblTempVendorCDR_20' ) start [2025-01-16 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263726', 'tblTempVendorCDR_20' ) end [2025-01-16 21:32:17] Production.INFO: ProcessCDR(1,14263726,1,1,2) [2025-01-16 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263726', 'tblTempUsageDetail_20' ) start [2025-01-16 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263726', 'tblTempUsageDetail_20' ) end [2025-01-16 21:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:32:20] Production.INFO: ==19672== Releasing lock... [2025-01-16 21:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:32:20] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:33:05 [end_date_ymd] => 2025-01-16 21:33:05 [RateCDR] => 1 ) [2025-01-16 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:33:05' and `end` < '2025-01-16 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:33:18] Production.INFO: count ==1258 [2025-01-16 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:33:05 - End Time 2025-01-16 21:33:05 [2025-01-16 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263731', 'tblTempUsageDetail_20' ) start [2025-01-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263731', 'tblTempUsageDetail_20' ) end [2025-01-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263731', 'tblTempVendorCDR_20' ) start [2025-01-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263731', 'tblTempVendorCDR_20' ) end [2025-01-16 21:33:18] Production.INFO: ProcessCDR(1,14263731,1,1,2) [2025-01-16 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263731', 'tblTempUsageDetail_20' ) start [2025-01-16 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263731', 'tblTempUsageDetail_20' ) end [2025-01-16 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:33:21] Production.INFO: ==19744== Releasing lock... [2025-01-16 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:33:21] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:34:04 [end_date_ymd] => 2025-01-16 21:34:04 [RateCDR] => 1 ) [2025-01-16 21:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:34:04' and `end` < '2025-01-16 21:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:34:17] Production.INFO: count ==1246 [2025-01-16 21:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:34:04 - End Time 2025-01-16 21:34:04 [2025-01-16 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263736', 'tblTempUsageDetail_20' ) start [2025-01-16 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263736', 'tblTempUsageDetail_20' ) end [2025-01-16 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263736', 'tblTempVendorCDR_20' ) start [2025-01-16 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263736', 'tblTempVendorCDR_20' ) end [2025-01-16 21:34:17] Production.INFO: ProcessCDR(1,14263736,1,1,2) [2025-01-16 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263736', 'tblTempUsageDetail_20' ) start [2025-01-16 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263736', 'tblTempUsageDetail_20' ) end [2025-01-16 21:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:34:20] Production.INFO: ==19814== Releasing lock... [2025-01-16 21:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:34:20] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:35:04 [end_date_ymd] => 2025-01-16 21:35:04 [RateCDR] => 1 ) [2025-01-16 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:35:04' and `end` < '2025-01-16 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:35:17] Production.INFO: count ==1249 [2025-01-16 21:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:35:04 - End Time 2025-01-16 21:35:04 [2025-01-16 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263741', 'tblTempUsageDetail_20' ) start [2025-01-16 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263741', 'tblTempUsageDetail_20' ) end [2025-01-16 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263741', 'tblTempVendorCDR_20' ) start [2025-01-16 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263741', 'tblTempVendorCDR_20' ) end [2025-01-16 21:35:17] Production.INFO: ProcessCDR(1,14263741,1,1,2) [2025-01-16 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263741', 'tblTempUsageDetail_20' ) start [2025-01-16 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263741', 'tblTempUsageDetail_20' ) end [2025-01-16 21:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:35:20] Production.INFO: ==19888== Releasing lock... [2025-01-16 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:35:20] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:36:05 [end_date_ymd] => 2025-01-16 21:36:05 [RateCDR] => 1 ) [2025-01-16 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:36:05' and `end` < '2025-01-16 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:36:18] Production.INFO: count ==1247 [2025-01-16 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:36:05 - End Time 2025-01-16 21:36:05 [2025-01-16 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263746', 'tblTempUsageDetail_20' ) start [2025-01-16 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263746', 'tblTempUsageDetail_20' ) end [2025-01-16 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263746', 'tblTempVendorCDR_20' ) start [2025-01-16 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263746', 'tblTempVendorCDR_20' ) end [2025-01-16 21:36:18] Production.INFO: ProcessCDR(1,14263746,1,1,2) [2025-01-16 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263746', 'tblTempUsageDetail_20' ) start [2025-01-16 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263746', 'tblTempUsageDetail_20' ) end [2025-01-16 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:36:21] Production.INFO: ==19969== Releasing lock... [2025-01-16 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:36:21] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:37:05 [end_date_ymd] => 2025-01-16 21:37:05 [RateCDR] => 1 ) [2025-01-16 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:37:05' and `end` < '2025-01-16 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:37:17] Production.INFO: count ==1245 [2025-01-16 21:37:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:37:05 - End Time 2025-01-16 21:37:05 [2025-01-16 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263751', 'tblTempUsageDetail_20' ) start [2025-01-16 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263751', 'tblTempUsageDetail_20' ) end [2025-01-16 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263751', 'tblTempVendorCDR_20' ) start [2025-01-16 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263751', 'tblTempVendorCDR_20' ) end [2025-01-16 21:37:17] Production.INFO: ProcessCDR(1,14263751,1,1,2) [2025-01-16 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263751', 'tblTempUsageDetail_20' ) start [2025-01-16 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263751', 'tblTempUsageDetail_20' ) end [2025-01-16 21:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:37:21] Production.INFO: ==20069== Releasing lock... [2025-01-16 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:37:21] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:38:05 [end_date_ymd] => 2025-01-16 21:38:05 [RateCDR] => 1 ) [2025-01-16 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:38:05' and `end` < '2025-01-16 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:38:18] Production.INFO: count ==1241 [2025-01-16 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:38:05 - End Time 2025-01-16 21:38:05 [2025-01-16 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263756', 'tblTempUsageDetail_20' ) start [2025-01-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263756', 'tblTempUsageDetail_20' ) end [2025-01-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263756', 'tblTempVendorCDR_20' ) start [2025-01-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263756', 'tblTempVendorCDR_20' ) end [2025-01-16 21:38:18] Production.INFO: ProcessCDR(1,14263756,1,1,2) [2025-01-16 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263756', 'tblTempUsageDetail_20' ) start [2025-01-16 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263756', 'tblTempUsageDetail_20' ) end [2025-01-16 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:38:21] Production.INFO: ==20173== Releasing lock... [2025-01-16 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:38:21] Production.INFO: 37 MB #Memory Used# [2025-01-16 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:39:04 [end_date_ymd] => 2025-01-16 21:39:04 [RateCDR] => 1 ) [2025-01-16 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:39:04' and `end` < '2025-01-16 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:39:17] Production.INFO: count ==1238 [2025-01-16 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:39:04 - End Time 2025-01-16 21:39:04 [2025-01-16 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263761', 'tblTempUsageDetail_20' ) start [2025-01-16 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263761', 'tblTempUsageDetail_20' ) end [2025-01-16 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263761', 'tblTempVendorCDR_20' ) start [2025-01-16 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263761', 'tblTempVendorCDR_20' ) end [2025-01-16 21:39:17] Production.INFO: ProcessCDR(1,14263761,1,1,2) [2025-01-16 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263761', 'tblTempUsageDetail_20' ) start [2025-01-16 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263761', 'tblTempUsageDetail_20' ) end [2025-01-16 21:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:39:20] Production.INFO: ==20275== Releasing lock... [2025-01-16 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:39:20] Production.INFO: 36.75 MB #Memory Used# [2025-01-16 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:40:06 [end_date_ymd] => 2025-01-16 21:40:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 18:40:06' and `end` < '2025-01-16 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-01-16 21:40:19] Production.INFO: count ==1236 [2025-01-16 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:40:06 - End Time 2025-01-16 21:40:06 [2025-01-16 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263767', 'tblTempUsageDetail_20' ) start [2025-01-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263767', 'tblTempUsageDetail_20' ) end [2025-01-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263767', 'tblTempVendorCDR_20' ) start [2025-01-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263767', 'tblTempVendorCDR_20' ) end [2025-01-16 21:40:19] Production.INFO: ProcessCDR(1,14263767,1,1,2) [2025-01-16 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263767', 'tblTempUsageDetail_20' ) start [2025-01-16 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263767', 'tblTempUsageDetail_20' ) end [2025-01-16 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:40:22] Production.INFO: ==20382== Releasing lock... [2025-01-16 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:40:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-16 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:41:04 [end_date_ymd] => 2025-01-16 21:41:04 [RateCDR] => 1 ) [2025-01-16 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:41:04' and `end` < '2025-01-16 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:41:17] Production.INFO: count ==1163 [2025-01-16 21:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:41:04 - End Time 2025-01-16 21:41:04 [2025-01-16 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263772', 'tblTempUsageDetail_20' ) start [2025-01-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263772', 'tblTempUsageDetail_20' ) end [2025-01-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263772', 'tblTempVendorCDR_20' ) start [2025-01-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263772', 'tblTempVendorCDR_20' ) end [2025-01-16 21:41:17] Production.INFO: ProcessCDR(1,14263772,1,1,2) [2025-01-16 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263772', 'tblTempUsageDetail_20' ) start [2025-01-16 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263772', 'tblTempUsageDetail_20' ) end [2025-01-16 21:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:41:20] Production.INFO: ==20481== Releasing lock... [2025-01-16 21:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:41:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:42:05 [end_date_ymd] => 2025-01-16 21:42:05 [RateCDR] => 1 ) [2025-01-16 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:42:05' and `end` < '2025-01-16 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:42:18] Production.INFO: count ==1160 [2025-01-16 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:42:05 - End Time 2025-01-16 21:42:05 [2025-01-16 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263777', 'tblTempUsageDetail_20' ) start [2025-01-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263777', 'tblTempUsageDetail_20' ) end [2025-01-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263777', 'tblTempVendorCDR_20' ) start [2025-01-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263777', 'tblTempVendorCDR_20' ) end [2025-01-16 21:42:18] Production.INFO: ProcessCDR(1,14263777,1,1,2) [2025-01-16 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263777', 'tblTempUsageDetail_20' ) start [2025-01-16 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263777', 'tblTempUsageDetail_20' ) end [2025-01-16 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:42:21] Production.INFO: ==20584== Releasing lock... [2025-01-16 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:42:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-16 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:43:05 [end_date_ymd] => 2025-01-16 21:43:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 18:43:05' and `end` < '2025-01-16 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:43:18] Production.INFO: count ==1157 [2025-01-16 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:43:05 - End Time 2025-01-16 21:43:05 [2025-01-16 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263782', 'tblTempUsageDetail_20' ) start [2025-01-16 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263782', 'tblTempUsageDetail_20' ) end [2025-01-16 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263782', 'tblTempVendorCDR_20' ) start [2025-01-16 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263782', 'tblTempVendorCDR_20' ) end [2025-01-16 21:43:19] Production.INFO: ProcessCDR(1,14263782,1,1,2) [2025-01-16 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263782', 'tblTempUsageDetail_20' ) start [2025-01-16 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263782', 'tblTempUsageDetail_20' ) end [2025-01-16 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:43:22] Production.INFO: ==20687== Releasing lock... [2025-01-16 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:43:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:44:05 [end_date_ymd] => 2025-01-16 21:44:05 [RateCDR] => 1 ) [2025-01-16 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:44:05' and `end` < '2025-01-16 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:44:18] Production.INFO: count ==1154 [2025-01-16 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:44:05 - End Time 2025-01-16 21:44:05 [2025-01-16 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263787', 'tblTempUsageDetail_20' ) start [2025-01-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263787', 'tblTempUsageDetail_20' ) end [2025-01-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263787', 'tblTempVendorCDR_20' ) start [2025-01-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263787', 'tblTempVendorCDR_20' ) end [2025-01-16 21:44:18] Production.INFO: ProcessCDR(1,14263787,1,1,2) [2025-01-16 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263787', 'tblTempUsageDetail_20' ) start [2025-01-16 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263787', 'tblTempUsageDetail_20' ) end [2025-01-16 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:44:22] Production.INFO: ==20790== Releasing lock... [2025-01-16 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:45:05 [end_date_ymd] => 2025-01-16 21:45:05 [RateCDR] => 1 ) [2025-01-16 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:45:05' and `end` < '2025-01-16 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:45:18] Production.INFO: count ==1152 [2025-01-16 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:45:05 - End Time 2025-01-16 21:45:05 [2025-01-16 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263792', 'tblTempUsageDetail_20' ) start [2025-01-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263792', 'tblTempUsageDetail_20' ) end [2025-01-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263792', 'tblTempVendorCDR_20' ) start [2025-01-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263792', 'tblTempVendorCDR_20' ) end [2025-01-16 21:45:18] Production.INFO: ProcessCDR(1,14263792,1,1,2) [2025-01-16 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263792', 'tblTempUsageDetail_20' ) start [2025-01-16 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263792', 'tblTempUsageDetail_20' ) end [2025-01-16 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:45:21] Production.INFO: ==20891== Releasing lock... [2025-01-16 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:45:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:46:04 [end_date_ymd] => 2025-01-16 21:46:04 [RateCDR] => 1 ) [2025-01-16 21:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:46:04' and `end` < '2025-01-16 21:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:46:17] Production.INFO: count ==1151 [2025-01-16 21:46:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:46:04 - End Time 2025-01-16 21:46:04 [2025-01-16 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263797', 'tblTempUsageDetail_20' ) start [2025-01-16 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263797', 'tblTempUsageDetail_20' ) end [2025-01-16 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263797', 'tblTempVendorCDR_20' ) start [2025-01-16 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263797', 'tblTempVendorCDR_20' ) end [2025-01-16 21:46:17] Production.INFO: ProcessCDR(1,14263797,1,1,2) [2025-01-16 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263797', 'tblTempUsageDetail_20' ) start [2025-01-16 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263797', 'tblTempUsageDetail_20' ) end [2025-01-16 21:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:46:20] Production.INFO: ==20997== Releasing lock... [2025-01-16 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:46:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:47:05 [end_date_ymd] => 2025-01-16 21:47:05 [RateCDR] => 1 ) [2025-01-16 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:47:05' and `end` < '2025-01-16 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:47:18] Production.INFO: count ==1144 [2025-01-16 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:47:05 - End Time 2025-01-16 21:47:05 [2025-01-16 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263802', 'tblTempUsageDetail_20' ) start [2025-01-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263802', 'tblTempUsageDetail_20' ) end [2025-01-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263802', 'tblTempVendorCDR_20' ) start [2025-01-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263802', 'tblTempVendorCDR_20' ) end [2025-01-16 21:47:18] Production.INFO: ProcessCDR(1,14263802,1,1,2) [2025-01-16 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263802', 'tblTempUsageDetail_20' ) start [2025-01-16 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263802', 'tblTempUsageDetail_20' ) end [2025-01-16 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:47:22] Production.INFO: ==21143== Releasing lock... [2025-01-16 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:48:05 [end_date_ymd] => 2025-01-16 21:48:05 [RateCDR] => 1 ) [2025-01-16 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:48:05' and `end` < '2025-01-16 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:48:17] Production.INFO: count ==1141 [2025-01-16 21:48:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:48:05 - End Time 2025-01-16 21:48:05 [2025-01-16 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263807', 'tblTempUsageDetail_20' ) start [2025-01-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263807', 'tblTempUsageDetail_20' ) end [2025-01-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263807', 'tblTempVendorCDR_20' ) start [2025-01-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263807', 'tblTempVendorCDR_20' ) end [2025-01-16 21:48:17] Production.INFO: ProcessCDR(1,14263807,1,1,2) [2025-01-16 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263807', 'tblTempUsageDetail_20' ) start [2025-01-16 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263807', 'tblTempUsageDetail_20' ) end [2025-01-16 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:48:21] Production.INFO: ==21246== Releasing lock... [2025-01-16 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:48:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-16 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:49:05 [end_date_ymd] => 2025-01-16 21:49:05 [RateCDR] => 1 ) [2025-01-16 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:49:05' and `end` < '2025-01-16 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:49:18] Production.INFO: count ==1139 [2025-01-16 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:49:05 - End Time 2025-01-16 21:49:05 [2025-01-16 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263812', 'tblTempUsageDetail_20' ) start [2025-01-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263812', 'tblTempUsageDetail_20' ) end [2025-01-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263812', 'tblTempVendorCDR_20' ) start [2025-01-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263812', 'tblTempVendorCDR_20' ) end [2025-01-16 21:49:18] Production.INFO: ProcessCDR(1,14263812,1,1,2) [2025-01-16 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263812', 'tblTempUsageDetail_20' ) start [2025-01-16 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263812', 'tblTempUsageDetail_20' ) end [2025-01-16 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:49:21] Production.INFO: ==21350== Releasing lock... [2025-01-16 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-16 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:50:05 [end_date_ymd] => 2025-01-16 21:50:05 [RateCDR] => 1 ) [2025-01-16 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:50:05' and `end` < '2025-01-16 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:50:18] Production.INFO: count ==1132 [2025-01-16 21:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:50:05 - End Time 2025-01-16 21:50:05 [2025-01-16 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263818', 'tblTempUsageDetail_20' ) start [2025-01-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263818', 'tblTempUsageDetail_20' ) end [2025-01-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263818', 'tblTempVendorCDR_20' ) start [2025-01-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263818', 'tblTempVendorCDR_20' ) end [2025-01-16 21:50:18] Production.INFO: ProcessCDR(1,14263818,1,1,2) [2025-01-16 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263818', 'tblTempUsageDetail_20' ) start [2025-01-16 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263818', 'tblTempUsageDetail_20' ) end [2025-01-16 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:50:21] Production.INFO: ==21453== Releasing lock... [2025-01-16 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:50:21] Production.INFO: 36 MB #Memory Used# [2025-01-16 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:51:05 [end_date_ymd] => 2025-01-16 21:51:05 [RateCDR] => 1 ) [2025-01-16 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:51:05' and `end` < '2025-01-16 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:51:19] Production.INFO: count ==1090 [2025-01-16 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-16 18:51:05 - End Time 2025-01-16 21:51:05 [2025-01-16 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263823', 'tblTempUsageDetail_20' ) start [2025-01-16 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263823', 'tblTempUsageDetail_20' ) end [2025-01-16 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263823', 'tblTempVendorCDR_20' ) start [2025-01-16 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263823', 'tblTempVendorCDR_20' ) end [2025-01-16 21:51:19] Production.INFO: ProcessCDR(1,14263823,1,1,2) [2025-01-16 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263823', 'tblTempUsageDetail_20' ) start [2025-01-16 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263823', 'tblTempUsageDetail_20' ) end [2025-01-16 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:51:22] Production.INFO: ==21562== Releasing lock... [2025-01-16 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:51:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-16 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:52:04 [end_date_ymd] => 2025-01-16 21:52:04 [RateCDR] => 1 ) [2025-01-16 21:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:52:04' and `end` < '2025-01-16 21:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:52:17] Production.INFO: count ==1088 [2025-01-16 21:52:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:52:04 - End Time 2025-01-16 21:52:04 [2025-01-16 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263828', 'tblTempUsageDetail_20' ) start [2025-01-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263828', 'tblTempUsageDetail_20' ) end [2025-01-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263828', 'tblTempVendorCDR_20' ) start [2025-01-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263828', 'tblTempVendorCDR_20' ) end [2025-01-16 21:52:17] Production.INFO: ProcessCDR(1,14263828,1,1,2) [2025-01-16 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263828', 'tblTempUsageDetail_20' ) start [2025-01-16 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263828', 'tblTempUsageDetail_20' ) end [2025-01-16 21:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:52:20] Production.INFO: ==21663== Releasing lock... [2025-01-16 21:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:52:20] Production.INFO: 35.75 MB #Memory Used# [2025-01-16 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:53:05 [end_date_ymd] => 2025-01-16 21:53:05 [RateCDR] => 1 ) [2025-01-16 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:53:05' and `end` < '2025-01-16 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:53:18] Production.INFO: count ==1073 [2025-01-16 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:53:05 - End Time 2025-01-16 21:53:05 [2025-01-16 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263833', 'tblTempUsageDetail_20' ) start [2025-01-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263833', 'tblTempUsageDetail_20' ) end [2025-01-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263833', 'tblTempVendorCDR_20' ) start [2025-01-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263833', 'tblTempVendorCDR_20' ) end [2025-01-16 21:53:18] Production.INFO: ProcessCDR(1,14263833,1,1,2) [2025-01-16 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263833', 'tblTempUsageDetail_20' ) start [2025-01-16 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263833', 'tblTempUsageDetail_20' ) end [2025-01-16 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:53:21] Production.INFO: ==21765== Releasing lock... [2025-01-16 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:53:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-16 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:54:06 [end_date_ymd] => 2025-01-16 21:54:06 [RateCDR] => 1 ) [2025-01-16 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:54:06' and `end` < '2025-01-16 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:54:18] Production.INFO: count ==1066 [2025-01-16 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:54:06 - End Time 2025-01-16 21:54:06 [2025-01-16 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263838', 'tblTempUsageDetail_20' ) start [2025-01-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263838', 'tblTempUsageDetail_20' ) end [2025-01-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263838', 'tblTempVendorCDR_20' ) start [2025-01-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263838', 'tblTempVendorCDR_20' ) end [2025-01-16 21:54:18] Production.INFO: ProcessCDR(1,14263838,1,1,2) [2025-01-16 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263838', 'tblTempUsageDetail_20' ) start [2025-01-16 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263838', 'tblTempUsageDetail_20' ) end [2025-01-16 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:54:21] Production.INFO: ==21872== Releasing lock... [2025-01-16 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:55:04 [end_date_ymd] => 2025-01-16 21:55:04 [RateCDR] => 1 ) [2025-01-16 21:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:55:04' and `end` < '2025-01-16 21:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:55:17] Production.INFO: count ==1069 [2025-01-16 21:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:55:04 - End Time 2025-01-16 21:55:04 [2025-01-16 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263843', 'tblTempUsageDetail_20' ) start [2025-01-16 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263843', 'tblTempUsageDetail_20' ) end [2025-01-16 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263843', 'tblTempVendorCDR_20' ) start [2025-01-16 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263843', 'tblTempVendorCDR_20' ) end [2025-01-16 21:55:17] Production.INFO: ProcessCDR(1,14263843,1,1,2) [2025-01-16 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263843', 'tblTempUsageDetail_20' ) start [2025-01-16 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263843', 'tblTempUsageDetail_20' ) end [2025-01-16 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:55:20] Production.INFO: ==21976== Releasing lock... [2025-01-16 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:55:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:56:05 [end_date_ymd] => 2025-01-16 21:56:05 [RateCDR] => 1 ) [2025-01-16 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:56:05' and `end` < '2025-01-16 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:56:17] Production.INFO: count ==1067 [2025-01-16 21:56:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:56:05 - End Time 2025-01-16 21:56:05 [2025-01-16 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263848', 'tblTempUsageDetail_20' ) start [2025-01-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263848', 'tblTempUsageDetail_20' ) end [2025-01-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263848', 'tblTempVendorCDR_20' ) start [2025-01-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263848', 'tblTempVendorCDR_20' ) end [2025-01-16 21:56:17] Production.INFO: ProcessCDR(1,14263848,1,1,2) [2025-01-16 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263848', 'tblTempUsageDetail_20' ) start [2025-01-16 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263848', 'tblTempUsageDetail_20' ) end [2025-01-16 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:56:21] Production.INFO: ==22085== Releasing lock... [2025-01-16 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:57:04 [end_date_ymd] => 2025-01-16 21:57:04 [RateCDR] => 1 ) [2025-01-16 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:57:04' and `end` < '2025-01-16 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:57:17] Production.INFO: count ==1063 [2025-01-16 21:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 18:57:04 - End Time 2025-01-16 21:57:04 [2025-01-16 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263853', 'tblTempUsageDetail_20' ) start [2025-01-16 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263853', 'tblTempUsageDetail_20' ) end [2025-01-16 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263853', 'tblTempVendorCDR_20' ) start [2025-01-16 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263853', 'tblTempVendorCDR_20' ) end [2025-01-16 21:57:17] Production.INFO: ProcessCDR(1,14263853,1,1,2) [2025-01-16 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263853', 'tblTempUsageDetail_20' ) start [2025-01-16 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263853', 'tblTempUsageDetail_20' ) end [2025-01-16 21:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:57:20] Production.INFO: ==22188== Releasing lock... [2025-01-16 21:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:57:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:58:05 [end_date_ymd] => 2025-01-16 21:58:05 [RateCDR] => 1 ) [2025-01-16 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:58:05' and `end` < '2025-01-16 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:58:18] Production.INFO: count ==1061 [2025-01-16 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:58:05 - End Time 2025-01-16 21:58:05 [2025-01-16 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263858', 'tblTempUsageDetail_20' ) start [2025-01-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263858', 'tblTempUsageDetail_20' ) end [2025-01-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263858', 'tblTempVendorCDR_20' ) start [2025-01-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263858', 'tblTempVendorCDR_20' ) end [2025-01-16 21:58:18] Production.INFO: ProcessCDR(1,14263858,1,1,2) [2025-01-16 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263858', 'tblTempUsageDetail_20' ) start [2025-01-16 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263858', 'tblTempUsageDetail_20' ) end [2025-01-16 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:58:22] Production.INFO: ==22296== Releasing lock... [2025-01-16 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:58:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 18:59:05 [end_date_ymd] => 2025-01-16 21:59:05 [RateCDR] => 1 ) [2025-01-16 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 18:59:05' and `end` < '2025-01-16 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 21:59:17] Production.INFO: count ==1057 [2025-01-16 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 18:59:05 - End Time 2025-01-16 21:59:05 [2025-01-16 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263863', 'tblTempUsageDetail_20' ) start [2025-01-16 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263863', 'tblTempUsageDetail_20' ) end [2025-01-16 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263863', 'tblTempVendorCDR_20' ) start [2025-01-16 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263863', 'tblTempVendorCDR_20' ) end [2025-01-16 21:59:18] Production.INFO: ProcessCDR(1,14263863,1,1,2) [2025-01-16 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263863', 'tblTempUsageDetail_20' ) start [2025-01-16 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263863', 'tblTempUsageDetail_20' ) end [2025-01-16 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 21:59:22] Production.INFO: ==22401== Releasing lock... [2025-01-16 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 21:59:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:00:06 [end_date_ymd] => 2025-01-16 22:00:06 [RateCDR] => 1 ) [2025-01-16 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:00:06' and `end` < '2025-01-16 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:00:18] Production.INFO: count ==1050 [2025-01-16 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:00:06 - End Time 2025-01-16 22:00:06 [2025-01-16 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263869', 'tblTempUsageDetail_20' ) start [2025-01-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263869', 'tblTempUsageDetail_20' ) end [2025-01-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263869', 'tblTempVendorCDR_20' ) start [2025-01-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263869', 'tblTempVendorCDR_20' ) end [2025-01-16 22:00:18] Production.INFO: ProcessCDR(1,14263869,1,1,2) [2025-01-16 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263869', 'tblTempUsageDetail_20' ) start [2025-01-16 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263869', 'tblTempUsageDetail_20' ) end [2025-01-16 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:00:23] Production.INFO: ==22508== Releasing lock... [2025-01-16 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:00:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-16 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:01:05 [end_date_ymd] => 2025-01-16 22:01:05 [RateCDR] => 1 ) [2025-01-16 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:01:05' and `end` < '2025-01-16 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:01:18] Production.INFO: count ==983 [2025-01-16 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:01:05 - End Time 2025-01-16 22:01:05 [2025-01-16 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263874', 'tblTempUsageDetail_20' ) start [2025-01-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263874', 'tblTempUsageDetail_20' ) end [2025-01-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263874', 'tblTempVendorCDR_20' ) start [2025-01-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263874', 'tblTempVendorCDR_20' ) end [2025-01-16 22:01:18] Production.INFO: ProcessCDR(1,14263874,1,1,2) [2025-01-16 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263874', 'tblTempUsageDetail_20' ) start [2025-01-16 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263874', 'tblTempUsageDetail_20' ) end [2025-01-16 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:01:21] Production.INFO: ==22626== Releasing lock... [2025-01-16 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:01:21] Production.INFO: 35 MB #Memory Used# [2025-01-16 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:02:05 [end_date_ymd] => 2025-01-16 22:02:05 [RateCDR] => 1 ) [2025-01-16 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:02:05' and `end` < '2025-01-16 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:02:17] Production.INFO: count ==954 [2025-01-16 22:02:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:02:05 - End Time 2025-01-16 22:02:05 [2025-01-16 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263879', 'tblTempUsageDetail_20' ) start [2025-01-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263879', 'tblTempUsageDetail_20' ) end [2025-01-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263879', 'tblTempVendorCDR_20' ) start [2025-01-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263879', 'tblTempVendorCDR_20' ) end [2025-01-16 22:02:17] Production.INFO: ProcessCDR(1,14263879,1,1,2) [2025-01-16 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263879', 'tblTempUsageDetail_20' ) start [2025-01-16 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263879', 'tblTempUsageDetail_20' ) end [2025-01-16 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:02:21] Production.INFO: ==22759== Releasing lock... [2025-01-16 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-16 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:03:05 [end_date_ymd] => 2025-01-16 22:03:05 [RateCDR] => 1 ) [2025-01-16 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:03:05' and `end` < '2025-01-16 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:03:17] Production.INFO: count ==944 [2025-01-16 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:03:05 - End Time 2025-01-16 22:03:05 [2025-01-16 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263884', 'tblTempUsageDetail_20' ) start [2025-01-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263884', 'tblTempUsageDetail_20' ) end [2025-01-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263884', 'tblTempVendorCDR_20' ) start [2025-01-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263884', 'tblTempVendorCDR_20' ) end [2025-01-16 22:03:18] Production.INFO: ProcessCDR(1,14263884,1,1,2) [2025-01-16 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263884', 'tblTempUsageDetail_20' ) start [2025-01-16 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263884', 'tblTempUsageDetail_20' ) end [2025-01-16 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:03:21] Production.INFO: ==22829== Releasing lock... [2025-01-16 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-16 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:04:05 [end_date_ymd] => 2025-01-16 22:04:05 [RateCDR] => 1 ) [2025-01-16 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:04:05' and `end` < '2025-01-16 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:04:18] Production.INFO: count ==943 [2025-01-16 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:04:05 - End Time 2025-01-16 22:04:05 [2025-01-16 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263889', 'tblTempUsageDetail_20' ) start [2025-01-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263889', 'tblTempUsageDetail_20' ) end [2025-01-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263889', 'tblTempVendorCDR_20' ) start [2025-01-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263889', 'tblTempVendorCDR_20' ) end [2025-01-16 22:04:18] Production.INFO: ProcessCDR(1,14263889,1,1,2) [2025-01-16 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263889', 'tblTempUsageDetail_20' ) start [2025-01-16 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263889', 'tblTempUsageDetail_20' ) end [2025-01-16 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:04:21] Production.INFO: ==22903== Releasing lock... [2025-01-16 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-16 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:05:05 [end_date_ymd] => 2025-01-16 22:05:05 [RateCDR] => 1 ) [2025-01-16 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:05:05' and `end` < '2025-01-16 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:05:17] Production.INFO: count ==942 [2025-01-16 22:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:05:05 - End Time 2025-01-16 22:05:05 [2025-01-16 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263894', 'tblTempUsageDetail_20' ) start [2025-01-16 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263894', 'tblTempUsageDetail_20' ) end [2025-01-16 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263894', 'tblTempVendorCDR_20' ) start [2025-01-16 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263894', 'tblTempVendorCDR_20' ) end [2025-01-16 22:05:17] Production.INFO: ProcessCDR(1,14263894,1,1,2) [2025-01-16 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263894', 'tblTempUsageDetail_20' ) start [2025-01-16 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263894', 'tblTempUsageDetail_20' ) end [2025-01-16 22:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:05:20] Production.INFO: ==22972== Releasing lock... [2025-01-16 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:05:20] Production.INFO: 34.75 MB #Memory Used# [2025-01-16 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:06:05 [end_date_ymd] => 2025-01-16 22:06:05 [RateCDR] => 1 ) [2025-01-16 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:06:05' and `end` < '2025-01-16 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:06:17] Production.INFO: count ==939 [2025-01-16 22:06:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:06:05 - End Time 2025-01-16 22:06:05 [2025-01-16 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263899', 'tblTempUsageDetail_20' ) start [2025-01-16 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263899', 'tblTempUsageDetail_20' ) end [2025-01-16 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263899', 'tblTempVendorCDR_20' ) start [2025-01-16 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263899', 'tblTempVendorCDR_20' ) end [2025-01-16 22:06:17] Production.INFO: ProcessCDR(1,14263899,1,1,2) [2025-01-16 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263899', 'tblTempUsageDetail_20' ) start [2025-01-16 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263899', 'tblTempUsageDetail_20' ) end [2025-01-16 22:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:06:20] Production.INFO: ==23043== Releasing lock... [2025-01-16 22:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:06:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-16 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:07:05 [end_date_ymd] => 2025-01-16 22:07:05 [RateCDR] => 1 ) [2025-01-16 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:07:05' and `end` < '2025-01-16 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:07:18] Production.INFO: count ==926 [2025-01-16 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:07:05 - End Time 2025-01-16 22:07:05 [2025-01-16 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263904', 'tblTempUsageDetail_20' ) start [2025-01-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263904', 'tblTempUsageDetail_20' ) end [2025-01-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263904', 'tblTempVendorCDR_20' ) start [2025-01-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263904', 'tblTempVendorCDR_20' ) end [2025-01-16 22:07:18] Production.INFO: ProcessCDR(1,14263904,1,1,2) [2025-01-16 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263904', 'tblTempUsageDetail_20' ) start [2025-01-16 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263904', 'tblTempUsageDetail_20' ) end [2025-01-16 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:07:21] Production.INFO: ==23115== Releasing lock... [2025-01-16 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:07:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-16 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:08:05 [end_date_ymd] => 2025-01-16 22:08:05 [RateCDR] => 1 ) [2025-01-16 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:08:05' and `end` < '2025-01-16 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:08:17] Production.INFO: count ==905 [2025-01-16 22:08:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:08:05 - End Time 2025-01-16 22:08:05 [2025-01-16 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263909', 'tblTempUsageDetail_20' ) start [2025-01-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263909', 'tblTempUsageDetail_20' ) end [2025-01-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263909', 'tblTempVendorCDR_20' ) start [2025-01-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263909', 'tblTempVendorCDR_20' ) end [2025-01-16 22:08:17] Production.INFO: ProcessCDR(1,14263909,1,1,2) [2025-01-16 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263909', 'tblTempUsageDetail_20' ) start [2025-01-16 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263909', 'tblTempUsageDetail_20' ) end [2025-01-16 22:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:08:20] Production.INFO: ==23185== Releasing lock... [2025-01-16 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:08:20] Production.INFO: 34 MB #Memory Used# [2025-01-16 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:09:05 [end_date_ymd] => 2025-01-16 22:09:05 [RateCDR] => 1 ) [2025-01-16 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:09:05' and `end` < '2025-01-16 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:09:18] Production.INFO: count ==908 [2025-01-16 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:09:05 - End Time 2025-01-16 22:09:05 [2025-01-16 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263914', 'tblTempUsageDetail_20' ) start [2025-01-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263914', 'tblTempUsageDetail_20' ) end [2025-01-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263914', 'tblTempVendorCDR_20' ) start [2025-01-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263914', 'tblTempVendorCDR_20' ) end [2025-01-16 22:09:18] Production.INFO: ProcessCDR(1,14263914,1,1,2) [2025-01-16 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263914', 'tblTempUsageDetail_20' ) start [2025-01-16 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263914', 'tblTempUsageDetail_20' ) end [2025-01-16 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:09:21] Production.INFO: ==23254== Releasing lock... [2025-01-16 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:09:21] Production.INFO: 34 MB #Memory Used# [2025-01-16 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:10:05 [end_date_ymd] => 2025-01-16 22:10:05 [RateCDR] => 1 ) [2025-01-16 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:10:05' and `end` < '2025-01-16 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:10:18] Production.INFO: count ==894 [2025-01-16 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:10:05 - End Time 2025-01-16 22:10:05 [2025-01-16 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263920', 'tblTempUsageDetail_20' ) start [2025-01-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263920', 'tblTempUsageDetail_20' ) end [2025-01-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263920', 'tblTempVendorCDR_20' ) start [2025-01-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263920', 'tblTempVendorCDR_20' ) end [2025-01-16 22:10:18] Production.INFO: ProcessCDR(1,14263920,1,1,2) [2025-01-16 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263920', 'tblTempUsageDetail_20' ) start [2025-01-16 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263920', 'tblTempUsageDetail_20' ) end [2025-01-16 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:10:21] Production.INFO: ==23329== Releasing lock... [2025-01-16 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:10:21] Production.INFO: 34 MB #Memory Used# [2025-01-16 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:11:05 [end_date_ymd] => 2025-01-16 22:11:05 [RateCDR] => 1 ) [2025-01-16 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:11:05' and `end` < '2025-01-16 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:11:17] Production.INFO: count ==855 [2025-01-16 22:11:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:11:05 - End Time 2025-01-16 22:11:05 [2025-01-16 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263925', 'tblTempUsageDetail_20' ) start [2025-01-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263925', 'tblTempUsageDetail_20' ) end [2025-01-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263925', 'tblTempVendorCDR_20' ) start [2025-01-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263925', 'tblTempVendorCDR_20' ) end [2025-01-16 22:11:17] Production.INFO: ProcessCDR(1,14263925,1,1,2) [2025-01-16 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263925', 'tblTempUsageDetail_20' ) start [2025-01-16 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263925', 'tblTempUsageDetail_20' ) end [2025-01-16 22:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:11:20] Production.INFO: ==23405== Releasing lock... [2025-01-16 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:11:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:12:04 [end_date_ymd] => 2025-01-16 22:12:04 [RateCDR] => 1 ) [2025-01-16 22:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:12:04' and `end` < '2025-01-16 22:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:12:17] Production.INFO: count ==856 [2025-01-16 22:12:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:12:04 - End Time 2025-01-16 22:12:04 [2025-01-16 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263930', 'tblTempUsageDetail_20' ) start [2025-01-16 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263930', 'tblTempUsageDetail_20' ) end [2025-01-16 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263930', 'tblTempVendorCDR_20' ) start [2025-01-16 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263930', 'tblTempVendorCDR_20' ) end [2025-01-16 22:12:17] Production.INFO: ProcessCDR(1,14263930,1,1,2) [2025-01-16 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263930', 'tblTempUsageDetail_20' ) start [2025-01-16 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263930', 'tblTempUsageDetail_20' ) end [2025-01-16 22:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:12:20] Production.INFO: ==23480== Releasing lock... [2025-01-16 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:12:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:13:05 [end_date_ymd] => 2025-01-16 22:13:05 [RateCDR] => 1 ) [2025-01-16 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:13:05' and `end` < '2025-01-16 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:13:18] Production.INFO: count ==853 [2025-01-16 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:13:05 - End Time 2025-01-16 22:13:05 [2025-01-16 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263935', 'tblTempUsageDetail_20' ) start [2025-01-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263935', 'tblTempUsageDetail_20' ) end [2025-01-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263935', 'tblTempVendorCDR_20' ) start [2025-01-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263935', 'tblTempVendorCDR_20' ) end [2025-01-16 22:13:18] Production.INFO: ProcessCDR(1,14263935,1,1,2) [2025-01-16 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263935', 'tblTempUsageDetail_20' ) start [2025-01-16 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263935', 'tblTempUsageDetail_20' ) end [2025-01-16 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:13:21] Production.INFO: ==23554== Releasing lock... [2025-01-16 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:13:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:14:05 [end_date_ymd] => 2025-01-16 22:14:05 [RateCDR] => 1 ) [2025-01-16 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:14:05' and `end` < '2025-01-16 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:14:18] Production.INFO: count ==852 [2025-01-16 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:14:05 - End Time 2025-01-16 22:14:05 [2025-01-16 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263940', 'tblTempUsageDetail_20' ) start [2025-01-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263940', 'tblTempUsageDetail_20' ) end [2025-01-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263940', 'tblTempVendorCDR_20' ) start [2025-01-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263940', 'tblTempVendorCDR_20' ) end [2025-01-16 22:14:18] Production.INFO: ProcessCDR(1,14263940,1,1,2) [2025-01-16 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263940', 'tblTempUsageDetail_20' ) start [2025-01-16 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263940', 'tblTempUsageDetail_20' ) end [2025-01-16 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:14:21] Production.INFO: ==23626== Releasing lock... [2025-01-16 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:14:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:15:05 [end_date_ymd] => 2025-01-16 22:15:05 [RateCDR] => 1 ) [2025-01-16 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:15:05' and `end` < '2025-01-16 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:15:18] Production.INFO: count ==852 [2025-01-16 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:15:05 - End Time 2025-01-16 22:15:05 [2025-01-16 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263945', 'tblTempUsageDetail_20' ) start [2025-01-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263945', 'tblTempUsageDetail_20' ) end [2025-01-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263945', 'tblTempVendorCDR_20' ) start [2025-01-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263945', 'tblTempVendorCDR_20' ) end [2025-01-16 22:15:18] Production.INFO: ProcessCDR(1,14263945,1,1,2) [2025-01-16 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263945', 'tblTempUsageDetail_20' ) start [2025-01-16 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263945', 'tblTempUsageDetail_20' ) end [2025-01-16 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:15:23] Production.INFO: ==23697== Releasing lock... [2025-01-16 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:15:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 22:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:16:04 [end_date_ymd] => 2025-01-16 22:16:04 [RateCDR] => 1 ) [2025-01-16 22:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:16:04' and `end` < '2025-01-16 22:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:16:18] Production.INFO: count ==852 [2025-01-16 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:16:04 - End Time 2025-01-16 22:16:04 [2025-01-16 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263950', 'tblTempUsageDetail_20' ) start [2025-01-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263950', 'tblTempUsageDetail_20' ) end [2025-01-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263950', 'tblTempVendorCDR_20' ) start [2025-01-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263950', 'tblTempVendorCDR_20' ) end [2025-01-16 22:16:18] Production.INFO: ProcessCDR(1,14263950,1,1,2) [2025-01-16 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263950', 'tblTempUsageDetail_20' ) start [2025-01-16 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263950', 'tblTempUsageDetail_20' ) end [2025-01-16 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:16:21] Production.INFO: ==23767== Releasing lock... [2025-01-16 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:16:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-16 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:17:05 [end_date_ymd] => 2025-01-16 22:17:05 [RateCDR] => 1 ) [2025-01-16 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:17:05' and `end` < '2025-01-16 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:17:17] Production.INFO: count ==851 [2025-01-16 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:17:05 - End Time 2025-01-16 22:17:05 [2025-01-16 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263955', 'tblTempUsageDetail_20' ) start [2025-01-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263955', 'tblTempUsageDetail_20' ) end [2025-01-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263955', 'tblTempVendorCDR_20' ) start [2025-01-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263955', 'tblTempVendorCDR_20' ) end [2025-01-16 22:17:18] Production.INFO: ProcessCDR(1,14263955,1,1,2) [2025-01-16 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263955', 'tblTempUsageDetail_20' ) start [2025-01-16 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263955', 'tblTempUsageDetail_20' ) end [2025-01-16 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:17:21] Production.INFO: ==23838== Releasing lock... [2025-01-16 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:18:05 [end_date_ymd] => 2025-01-16 22:18:05 [RateCDR] => 1 ) [2025-01-16 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:18:05' and `end` < '2025-01-16 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:18:17] Production.INFO: count ==849 [2025-01-16 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:18:05 - End Time 2025-01-16 22:18:05 [2025-01-16 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263960', 'tblTempUsageDetail_20' ) start [2025-01-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263960', 'tblTempUsageDetail_20' ) end [2025-01-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263960', 'tblTempVendorCDR_20' ) start [2025-01-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263960', 'tblTempVendorCDR_20' ) end [2025-01-16 22:18:17] Production.INFO: ProcessCDR(1,14263960,1,1,2) [2025-01-16 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263960', 'tblTempUsageDetail_20' ) start [2025-01-16 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263960', 'tblTempUsageDetail_20' ) end [2025-01-16 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:18:20] Production.INFO: ==23948== Releasing lock... [2025-01-16 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:18:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:19:05 [end_date_ymd] => 2025-01-16 22:19:05 [RateCDR] => 1 ) [2025-01-16 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:19:05' and `end` < '2025-01-16 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:19:18] Production.INFO: count ==847 [2025-01-16 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:19:05 - End Time 2025-01-16 22:19:05 [2025-01-16 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263965', 'tblTempUsageDetail_20' ) start [2025-01-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263965', 'tblTempUsageDetail_20' ) end [2025-01-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263965', 'tblTempVendorCDR_20' ) start [2025-01-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263965', 'tblTempVendorCDR_20' ) end [2025-01-16 22:19:18] Production.INFO: ProcessCDR(1,14263965,1,1,2) [2025-01-16 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263965', 'tblTempUsageDetail_20' ) start [2025-01-16 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263965', 'tblTempUsageDetail_20' ) end [2025-01-16 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:19:21] Production.INFO: ==24017== Releasing lock... [2025-01-16 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:20:06 [end_date_ymd] => 2025-01-16 22:20:06 [RateCDR] => 1 ) [2025-01-16 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:20:06' and `end` < '2025-01-16 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:20:20] Production.INFO: count ==849 [2025-01-16 22:20:20] Production.ERROR: pbx CDR StartTime 2025-01-16 19:20:06 - End Time 2025-01-16 22:20:06 [2025-01-16 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263971', 'tblTempUsageDetail_20' ) start [2025-01-16 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263971', 'tblTempUsageDetail_20' ) end [2025-01-16 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263971', 'tblTempVendorCDR_20' ) start [2025-01-16 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263971', 'tblTempVendorCDR_20' ) end [2025-01-16 22:20:20] Production.INFO: ProcessCDR(1,14263971,1,1,2) [2025-01-16 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263971', 'tblTempUsageDetail_20' ) start [2025-01-16 22:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263971', 'tblTempUsageDetail_20' ) end [2025-01-16 22:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:20:25] Production.INFO: ==24090== Releasing lock... [2025-01-16 22:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:20:25] Production.INFO: 33.5 MB #Memory Used# [2025-01-16 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:21:05 [end_date_ymd] => 2025-01-16 22:21:05 [RateCDR] => 1 ) [2025-01-16 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:21:05' and `end` < '2025-01-16 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:21:19] Production.INFO: count ==799 [2025-01-16 22:21:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:21:05 - End Time 2025-01-16 22:21:05 [2025-01-16 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263976', 'tblTempUsageDetail_20' ) start [2025-01-16 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263976', 'tblTempUsageDetail_20' ) end [2025-01-16 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263976', 'tblTempVendorCDR_20' ) start [2025-01-16 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263976', 'tblTempVendorCDR_20' ) end [2025-01-16 22:21:19] Production.INFO: ProcessCDR(1,14263976,1,1,2) [2025-01-16 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263976', 'tblTempUsageDetail_20' ) start [2025-01-16 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263976', 'tblTempUsageDetail_20' ) end [2025-01-16 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:21:23] Production.INFO: ==24164== Releasing lock... [2025-01-16 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:22:05 [end_date_ymd] => 2025-01-16 22:22:05 [RateCDR] => 1 ) [2025-01-16 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:22:05' and `end` < '2025-01-16 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:22:18] Production.INFO: count ==798 [2025-01-16 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:22:05 - End Time 2025-01-16 22:22:05 [2025-01-16 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263981', 'tblTempUsageDetail_20' ) start [2025-01-16 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263981', 'tblTempUsageDetail_20' ) end [2025-01-16 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263981', 'tblTempVendorCDR_20' ) start [2025-01-16 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263981', 'tblTempVendorCDR_20' ) end [2025-01-16 22:22:18] Production.INFO: ProcessCDR(1,14263981,1,1,2) [2025-01-16 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263981', 'tblTempUsageDetail_20' ) start [2025-01-16 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263981', 'tblTempUsageDetail_20' ) end [2025-01-16 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:22:21] Production.INFO: ==24233== Releasing lock... [2025-01-16 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:23:06 [end_date_ymd] => 2025-01-16 22:23:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 19:23:06' and `end` < '2025-01-16 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-01-16 22:23:19] Production.INFO: count ==797 [2025-01-16 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:23:06 - End Time 2025-01-16 22:23:06 [2025-01-16 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263986', 'tblTempUsageDetail_20' ) start [2025-01-16 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263986', 'tblTempUsageDetail_20' ) end [2025-01-16 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263986', 'tblTempVendorCDR_20' ) start [2025-01-16 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263986', 'tblTempVendorCDR_20' ) end [2025-01-16 22:23:19] Production.INFO: ProcessCDR(1,14263986,1,1,2) [2025-01-16 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263986', 'tblTempUsageDetail_20' ) start [2025-01-16 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263986', 'tblTempUsageDetail_20' ) end [2025-01-16 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:23:22] Production.INFO: ==24306== Releasing lock... [2025-01-16 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:23:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:24:05 [end_date_ymd] => 2025-01-16 22:24:05 [RateCDR] => 1 ) [2025-01-16 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:24:05' and `end` < '2025-01-16 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:24:17] Production.INFO: count ==794 [2025-01-16 22:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:24:05 - End Time 2025-01-16 22:24:05 [2025-01-16 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263991', 'tblTempUsageDetail_20' ) start [2025-01-16 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263991', 'tblTempUsageDetail_20' ) end [2025-01-16 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263991', 'tblTempVendorCDR_20' ) start [2025-01-16 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263991', 'tblTempVendorCDR_20' ) end [2025-01-16 22:24:17] Production.INFO: ProcessCDR(1,14263991,1,1,2) [2025-01-16 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263991', 'tblTempUsageDetail_20' ) start [2025-01-16 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263991', 'tblTempUsageDetail_20' ) end [2025-01-16 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:24:21] Production.INFO: ==24375== Releasing lock... [2025-01-16 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:25:05 [end_date_ymd] => 2025-01-16 22:25:05 [RateCDR] => 1 ) [2025-01-16 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:25:05' and `end` < '2025-01-16 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:25:18] Production.INFO: count ==794 [2025-01-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:25:05 - End Time 2025-01-16 22:25:05 [2025-01-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263996', 'tblTempUsageDetail_20' ) start [2025-01-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14263996', 'tblTempUsageDetail_20' ) end [2025-01-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263996', 'tblTempVendorCDR_20' ) start [2025-01-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14263996', 'tblTempVendorCDR_20' ) end [2025-01-16 22:25:18] Production.INFO: ProcessCDR(1,14263996,1,1,2) [2025-01-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14263996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14263996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14263996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14263996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263996', 'tblTempUsageDetail_20' ) start [2025-01-16 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14263996', 'tblTempUsageDetail_20' ) end [2025-01-16 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:25:21] Production.INFO: ==24448== Releasing lock... [2025-01-16 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:26:04 [end_date_ymd] => 2025-01-16 22:26:04 [RateCDR] => 1 ) [2025-01-16 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:26:04' and `end` < '2025-01-16 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:26:19] Production.INFO: count ==793 [2025-01-16 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:26:04 - End Time 2025-01-16 22:26:04 [2025-01-16 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264001', 'tblTempUsageDetail_20' ) start [2025-01-16 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264001', 'tblTempUsageDetail_20' ) end [2025-01-16 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264001', 'tblTempVendorCDR_20' ) start [2025-01-16 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264001', 'tblTempVendorCDR_20' ) end [2025-01-16 22:26:19] Production.INFO: ProcessCDR(1,14264001,1,1,2) [2025-01-16 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264001', 'tblTempUsageDetail_20' ) start [2025-01-16 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264001', 'tblTempUsageDetail_20' ) end [2025-01-16 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:26:22] Production.INFO: ==24531== Releasing lock... [2025-01-16 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:26:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:27:05 [end_date_ymd] => 2025-01-16 22:27:05 [RateCDR] => 1 ) [2025-01-16 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:27:05' and `end` < '2025-01-16 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:27:19] Production.INFO: count ==793 [2025-01-16 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:27:05 - End Time 2025-01-16 22:27:05 [2025-01-16 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264006', 'tblTempUsageDetail_20' ) start [2025-01-16 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264006', 'tblTempUsageDetail_20' ) end [2025-01-16 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264006', 'tblTempVendorCDR_20' ) start [2025-01-16 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264006', 'tblTempVendorCDR_20' ) end [2025-01-16 22:27:19] Production.INFO: ProcessCDR(1,14264006,1,1,2) [2025-01-16 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264006', 'tblTempUsageDetail_20' ) start [2025-01-16 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264006', 'tblTempUsageDetail_20' ) end [2025-01-16 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:27:22] Production.INFO: ==24608== Releasing lock... [2025-01-16 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:28:05 [end_date_ymd] => 2025-01-16 22:28:05 [RateCDR] => 1 ) [2025-01-16 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:28:05' and `end` < '2025-01-16 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:28:19] Production.INFO: count ==793 [2025-01-16 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:28:05 - End Time 2025-01-16 22:28:05 [2025-01-16 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264011', 'tblTempUsageDetail_20' ) start [2025-01-16 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264011', 'tblTempUsageDetail_20' ) end [2025-01-16 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264011', 'tblTempVendorCDR_20' ) start [2025-01-16 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264011', 'tblTempVendorCDR_20' ) end [2025-01-16 22:28:19] Production.INFO: ProcessCDR(1,14264011,1,1,2) [2025-01-16 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264011', 'tblTempUsageDetail_20' ) start [2025-01-16 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264011', 'tblTempUsageDetail_20' ) end [2025-01-16 22:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:28:24] Production.INFO: ==24686== Releasing lock... [2025-01-16 22:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:29:04 [end_date_ymd] => 2025-01-16 22:29:04 [RateCDR] => 1 ) [2025-01-16 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:29:04' and `end` < '2025-01-16 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:29:17] Production.INFO: count ==791 [2025-01-16 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:29:04 - End Time 2025-01-16 22:29:04 [2025-01-16 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264016', 'tblTempUsageDetail_20' ) start [2025-01-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264016', 'tblTempUsageDetail_20' ) end [2025-01-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264016', 'tblTempVendorCDR_20' ) start [2025-01-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264016', 'tblTempVendorCDR_20' ) end [2025-01-16 22:29:18] Production.INFO: ProcessCDR(1,14264016,1,1,2) [2025-01-16 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264016', 'tblTempUsageDetail_20' ) start [2025-01-16 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264016', 'tblTempUsageDetail_20' ) end [2025-01-16 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:29:21] Production.INFO: ==24758== Releasing lock... [2025-01-16 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:30:06 [end_date_ymd] => 2025-01-16 22:30:06 [RateCDR] => 1 ) [2025-01-16 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:30:06' and `end` < '2025-01-16 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:30:18] Production.INFO: count ==792 [2025-01-16 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:30:06 - End Time 2025-01-16 22:30:06 [2025-01-16 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264022', 'tblTempUsageDetail_20' ) start [2025-01-16 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264022', 'tblTempUsageDetail_20' ) end [2025-01-16 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264022', 'tblTempVendorCDR_20' ) start [2025-01-16 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264022', 'tblTempVendorCDR_20' ) end [2025-01-16 22:30:18] Production.INFO: ProcessCDR(1,14264022,1,1,2) [2025-01-16 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264022', 'tblTempUsageDetail_20' ) start [2025-01-16 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264022', 'tblTempUsageDetail_20' ) end [2025-01-16 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:30:23] Production.INFO: ==24840== Releasing lock... [2025-01-16 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-16 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:31:05 [end_date_ymd] => 2025-01-16 22:31:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 19:31:05' and `end` < '2025-01-16 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-01-16 22:31:18] Production.INFO: count ==779 [2025-01-16 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:31:05 - End Time 2025-01-16 22:31:05 [2025-01-16 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264027', 'tblTempUsageDetail_20' ) start [2025-01-16 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264027', 'tblTempUsageDetail_20' ) end [2025-01-16 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264027', 'tblTempVendorCDR_20' ) start [2025-01-16 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264027', 'tblTempVendorCDR_20' ) end [2025-01-16 22:31:19] Production.INFO: ProcessCDR(1,14264027,1,1,2) [2025-01-16 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264027', 'tblTempUsageDetail_20' ) start [2025-01-16 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264027', 'tblTempUsageDetail_20' ) end [2025-01-16 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:31:23] Production.INFO: ==24912== Releasing lock... [2025-01-16 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:31:23] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:32:05 [end_date_ymd] => 2025-01-16 22:32:05 [RateCDR] => 1 ) [2025-01-16 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:32:05' and `end` < '2025-01-16 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:32:18] Production.INFO: count ==778 [2025-01-16 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:32:05 - End Time 2025-01-16 22:32:05 [2025-01-16 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264032', 'tblTempUsageDetail_20' ) start [2025-01-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264032', 'tblTempUsageDetail_20' ) end [2025-01-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264032', 'tblTempVendorCDR_20' ) start [2025-01-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264032', 'tblTempVendorCDR_20' ) end [2025-01-16 22:32:18] Production.INFO: ProcessCDR(1,14264032,1,1,2) [2025-01-16 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264032', 'tblTempUsageDetail_20' ) start [2025-01-16 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264032', 'tblTempUsageDetail_20' ) end [2025-01-16 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:32:21] Production.INFO: ==24990== Releasing lock... [2025-01-16 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:32:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:33:05 [end_date_ymd] => 2025-01-16 22:33:05 [RateCDR] => 1 ) [2025-01-16 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:33:05' and `end` < '2025-01-16 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:33:18] Production.INFO: count ==779 [2025-01-16 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:33:05 - End Time 2025-01-16 22:33:05 [2025-01-16 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264037', 'tblTempUsageDetail_20' ) start [2025-01-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264037', 'tblTempUsageDetail_20' ) end [2025-01-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264037', 'tblTempVendorCDR_20' ) start [2025-01-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264037', 'tblTempVendorCDR_20' ) end [2025-01-16 22:33:18] Production.INFO: ProcessCDR(1,14264037,1,1,2) [2025-01-16 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264037', 'tblTempUsageDetail_20' ) start [2025-01-16 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264037', 'tblTempUsageDetail_20' ) end [2025-01-16 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:33:23] Production.INFO: ==25069== Releasing lock... [2025-01-16 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:33:23] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:34:05 [end_date_ymd] => 2025-01-16 22:34:05 [RateCDR] => 1 ) [2025-01-16 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:34:05' and `end` < '2025-01-16 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:34:17] Production.INFO: count ==779 [2025-01-16 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:34:05 - End Time 2025-01-16 22:34:05 [2025-01-16 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264042', 'tblTempUsageDetail_20' ) start [2025-01-16 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264042', 'tblTempUsageDetail_20' ) end [2025-01-16 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264042', 'tblTempVendorCDR_20' ) start [2025-01-16 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264042', 'tblTempVendorCDR_20' ) end [2025-01-16 22:34:18] Production.INFO: ProcessCDR(1,14264042,1,1,2) [2025-01-16 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264042', 'tblTempUsageDetail_20' ) start [2025-01-16 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264042', 'tblTempUsageDetail_20' ) end [2025-01-16 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:34:21] Production.INFO: ==25182== Releasing lock... [2025-01-16 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:34:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:35:05 [end_date_ymd] => 2025-01-16 22:35:05 [RateCDR] => 1 ) [2025-01-16 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:35:05' and `end` < '2025-01-16 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:35:17] Production.INFO: count ==779 [2025-01-16 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:35:05 - End Time 2025-01-16 22:35:05 [2025-01-16 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264047', 'tblTempUsageDetail_20' ) start [2025-01-16 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264047', 'tblTempUsageDetail_20' ) end [2025-01-16 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264047', 'tblTempVendorCDR_20' ) start [2025-01-16 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264047', 'tblTempVendorCDR_20' ) end [2025-01-16 22:35:17] Production.INFO: ProcessCDR(1,14264047,1,1,2) [2025-01-16 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264047', 'tblTempUsageDetail_20' ) start [2025-01-16 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264047', 'tblTempUsageDetail_20' ) end [2025-01-16 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:35:21] Production.INFO: ==25256== Releasing lock... [2025-01-16 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:35:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:36:05 [end_date_ymd] => 2025-01-16 22:36:05 [RateCDR] => 1 ) [2025-01-16 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:36:05' and `end` < '2025-01-16 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:36:18] Production.INFO: count ==779 [2025-01-16 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:36:05 - End Time 2025-01-16 22:36:05 [2025-01-16 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264052', 'tblTempUsageDetail_20' ) start [2025-01-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264052', 'tblTempUsageDetail_20' ) end [2025-01-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264052', 'tblTempVendorCDR_20' ) start [2025-01-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264052', 'tblTempVendorCDR_20' ) end [2025-01-16 22:36:18] Production.INFO: ProcessCDR(1,14264052,1,1,2) [2025-01-16 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264052', 'tblTempUsageDetail_20' ) start [2025-01-16 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264052', 'tblTempUsageDetail_20' ) end [2025-01-16 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:36:21] Production.INFO: ==25337== Releasing lock... [2025-01-16 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:36:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:37:04 [end_date_ymd] => 2025-01-16 22:37:04 [RateCDR] => 1 ) [2025-01-16 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:37:04' and `end` < '2025-01-16 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:37:17] Production.INFO: count ==778 [2025-01-16 22:37:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:37:04 - End Time 2025-01-16 22:37:04 [2025-01-16 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264057', 'tblTempUsageDetail_20' ) start [2025-01-16 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264057', 'tblTempUsageDetail_20' ) end [2025-01-16 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264057', 'tblTempVendorCDR_20' ) start [2025-01-16 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264057', 'tblTempVendorCDR_20' ) end [2025-01-16 22:37:17] Production.INFO: ProcessCDR(1,14264057,1,1,2) [2025-01-16 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264057', 'tblTempUsageDetail_20' ) start [2025-01-16 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264057', 'tblTempUsageDetail_20' ) end [2025-01-16 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:37:20] Production.INFO: ==25413== Releasing lock... [2025-01-16 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:37:20] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:38:05 [end_date_ymd] => 2025-01-16 22:38:05 [RateCDR] => 1 ) [2025-01-16 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:38:05' and `end` < '2025-01-16 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:38:19] Production.INFO: count ==778 [2025-01-16 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:38:05 - End Time 2025-01-16 22:38:05 [2025-01-16 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264062', 'tblTempUsageDetail_20' ) start [2025-01-16 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264062', 'tblTempUsageDetail_20' ) end [2025-01-16 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264062', 'tblTempVendorCDR_20' ) start [2025-01-16 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264062', 'tblTempVendorCDR_20' ) end [2025-01-16 22:38:19] Production.INFO: ProcessCDR(1,14264062,1,1,2) [2025-01-16 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264062', 'tblTempUsageDetail_20' ) start [2025-01-16 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264062', 'tblTempUsageDetail_20' ) end [2025-01-16 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:38:22] Production.INFO: ==25488== Releasing lock... [2025-01-16 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:38:22] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:39:04 [end_date_ymd] => 2025-01-16 22:39:04 [RateCDR] => 1 ) [2025-01-16 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:39:04' and `end` < '2025-01-16 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:39:17] Production.INFO: count ==778 [2025-01-16 22:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:39:04 - End Time 2025-01-16 22:39:04 [2025-01-16 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264067', 'tblTempUsageDetail_20' ) start [2025-01-16 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264067', 'tblTempUsageDetail_20' ) end [2025-01-16 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264067', 'tblTempVendorCDR_20' ) start [2025-01-16 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264067', 'tblTempVendorCDR_20' ) end [2025-01-16 22:39:17] Production.INFO: ProcessCDR(1,14264067,1,1,2) [2025-01-16 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264067', 'tblTempUsageDetail_20' ) start [2025-01-16 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264067', 'tblTempUsageDetail_20' ) end [2025-01-16 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:39:20] Production.INFO: ==25564== Releasing lock... [2025-01-16 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:39:20] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:40:06 [end_date_ymd] => 2025-01-16 22:40:06 [RateCDR] => 1 ) [2025-01-16 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:40:06' and `end` < '2025-01-16 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:40:18] Production.INFO: count ==778 [2025-01-16 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:40:06 - End Time 2025-01-16 22:40:06 [2025-01-16 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264073', 'tblTempUsageDetail_20' ) start [2025-01-16 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264073', 'tblTempUsageDetail_20' ) end [2025-01-16 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264073', 'tblTempVendorCDR_20' ) start [2025-01-16 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264073', 'tblTempVendorCDR_20' ) end [2025-01-16 22:40:18] Production.INFO: ProcessCDR(1,14264073,1,1,2) [2025-01-16 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264073', 'tblTempUsageDetail_20' ) start [2025-01-16 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264073', 'tblTempUsageDetail_20' ) end [2025-01-16 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:40:22] Production.INFO: ==25643== Releasing lock... [2025-01-16 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:40:22] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:41:04 [end_date_ymd] => 2025-01-16 22:41:04 [RateCDR] => 1 ) [2025-01-16 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:41:04' and `end` < '2025-01-16 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:41:17] Production.INFO: count ==746 [2025-01-16 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:41:04 - End Time 2025-01-16 22:41:04 [2025-01-16 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264078', 'tblTempUsageDetail_20' ) start [2025-01-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264078', 'tblTempUsageDetail_20' ) end [2025-01-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264078', 'tblTempVendorCDR_20' ) start [2025-01-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264078', 'tblTempVendorCDR_20' ) end [2025-01-16 22:41:18] Production.INFO: ProcessCDR(1,14264078,1,1,2) [2025-01-16 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264078', 'tblTempUsageDetail_20' ) start [2025-01-16 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264078', 'tblTempUsageDetail_20' ) end [2025-01-16 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:41:22] Production.INFO: ==25729== Releasing lock... [2025-01-16 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:42:05 [end_date_ymd] => 2025-01-16 22:42:05 [RateCDR] => 1 ) [2025-01-16 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:42:05' and `end` < '2025-01-16 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:42:17] Production.INFO: count ==744 [2025-01-16 22:42:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:42:05 - End Time 2025-01-16 22:42:05 [2025-01-16 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264083', 'tblTempUsageDetail_20' ) start [2025-01-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264083', 'tblTempUsageDetail_20' ) end [2025-01-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264083', 'tblTempVendorCDR_20' ) start [2025-01-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264083', 'tblTempVendorCDR_20' ) end [2025-01-16 22:42:17] Production.INFO: ProcessCDR(1,14264083,1,1,2) [2025-01-16 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264083', 'tblTempUsageDetail_20' ) start [2025-01-16 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264083', 'tblTempUsageDetail_20' ) end [2025-01-16 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:42:21] Production.INFO: ==25803== Releasing lock... [2025-01-16 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:43:04 [end_date_ymd] => 2025-01-16 22:43:04 [RateCDR] => 1 ) [2025-01-16 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:43:04' and `end` < '2025-01-16 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:43:18] Production.INFO: count ==743 [2025-01-16 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:43:04 - End Time 2025-01-16 22:43:04 [2025-01-16 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264088', 'tblTempUsageDetail_20' ) start [2025-01-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264088', 'tblTempUsageDetail_20' ) end [2025-01-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264088', 'tblTempVendorCDR_20' ) start [2025-01-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264088', 'tblTempVendorCDR_20' ) end [2025-01-16 22:43:18] Production.INFO: ProcessCDR(1,14264088,1,1,2) [2025-01-16 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264088', 'tblTempUsageDetail_20' ) start [2025-01-16 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264088', 'tblTempUsageDetail_20' ) end [2025-01-16 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:43:21] Production.INFO: ==25883== Releasing lock... [2025-01-16 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:44:05 [end_date_ymd] => 2025-01-16 22:44:05 [RateCDR] => 1 ) [2025-01-16 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:44:05' and `end` < '2025-01-16 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:44:17] Production.INFO: count ==741 [2025-01-16 22:44:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:44:05 - End Time 2025-01-16 22:44:05 [2025-01-16 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264093', 'tblTempUsageDetail_20' ) start [2025-01-16 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264093', 'tblTempUsageDetail_20' ) end [2025-01-16 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264093', 'tblTempVendorCDR_20' ) start [2025-01-16 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264093', 'tblTempVendorCDR_20' ) end [2025-01-16 22:44:17] Production.INFO: ProcessCDR(1,14264093,1,1,2) [2025-01-16 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264093', 'tblTempUsageDetail_20' ) start [2025-01-16 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264093', 'tblTempUsageDetail_20' ) end [2025-01-16 22:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:44:20] Production.INFO: ==25956== Releasing lock... [2025-01-16 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:44:20] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:45:05 [end_date_ymd] => 2025-01-16 22:45:05 [RateCDR] => 1 ) [2025-01-16 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:45:05' and `end` < '2025-01-16 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:45:17] Production.INFO: count ==740 [2025-01-16 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:45:05 - End Time 2025-01-16 22:45:05 [2025-01-16 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264098', 'tblTempUsageDetail_20' ) start [2025-01-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264098', 'tblTempUsageDetail_20' ) end [2025-01-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264098', 'tblTempVendorCDR_20' ) start [2025-01-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264098', 'tblTempVendorCDR_20' ) end [2025-01-16 22:45:18] Production.INFO: ProcessCDR(1,14264098,1,1,2) [2025-01-16 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264098', 'tblTempUsageDetail_20' ) start [2025-01-16 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264098', 'tblTempUsageDetail_20' ) end [2025-01-16 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:45:21] Production.INFO: ==26037== Releasing lock... [2025-01-16 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:45:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:46:05 [end_date_ymd] => 2025-01-16 22:46:05 [RateCDR] => 1 ) [2025-01-16 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:46:05' and `end` < '2025-01-16 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:46:18] Production.INFO: count ==740 [2025-01-16 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:46:05 - End Time 2025-01-16 22:46:05 [2025-01-16 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264103', 'tblTempUsageDetail_20' ) start [2025-01-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264103', 'tblTempUsageDetail_20' ) end [2025-01-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264103', 'tblTempVendorCDR_20' ) start [2025-01-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264103', 'tblTempVendorCDR_20' ) end [2025-01-16 22:46:18] Production.INFO: ProcessCDR(1,14264103,1,1,2) [2025-01-16 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264103', 'tblTempUsageDetail_20' ) start [2025-01-16 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264103', 'tblTempUsageDetail_20' ) end [2025-01-16 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:46:21] Production.INFO: ==26112== Releasing lock... [2025-01-16 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:46:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:47:05 [end_date_ymd] => 2025-01-16 22:47:05 [RateCDR] => 1 ) [2025-01-16 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:47:05' and `end` < '2025-01-16 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:47:18] Production.INFO: count ==740 [2025-01-16 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:47:05 - End Time 2025-01-16 22:47:05 [2025-01-16 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264108', 'tblTempUsageDetail_20' ) start [2025-01-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264108', 'tblTempUsageDetail_20' ) end [2025-01-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264108', 'tblTempVendorCDR_20' ) start [2025-01-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264108', 'tblTempVendorCDR_20' ) end [2025-01-16 22:47:18] Production.INFO: ProcessCDR(1,14264108,1,1,2) [2025-01-16 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264108', 'tblTempUsageDetail_20' ) start [2025-01-16 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264108', 'tblTempUsageDetail_20' ) end [2025-01-16 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:47:22] Production.INFO: ==26189== Releasing lock... [2025-01-16 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:47:22] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:48:05 [end_date_ymd] => 2025-01-16 22:48:05 [RateCDR] => 1 ) [2025-01-16 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:48:05' and `end` < '2025-01-16 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:48:18] Production.INFO: count ==742 [2025-01-16 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:48:05 - End Time 2025-01-16 22:48:05 [2025-01-16 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264113', 'tblTempUsageDetail_20' ) start [2025-01-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264113', 'tblTempUsageDetail_20' ) end [2025-01-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264113', 'tblTempVendorCDR_20' ) start [2025-01-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264113', 'tblTempVendorCDR_20' ) end [2025-01-16 22:48:18] Production.INFO: ProcessCDR(1,14264113,1,1,2) [2025-01-16 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264113', 'tblTempUsageDetail_20' ) start [2025-01-16 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264113', 'tblTempUsageDetail_20' ) end [2025-01-16 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:48:21] Production.INFO: ==26270== Releasing lock... [2025-01-16 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:48:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:49:04 [end_date_ymd] => 2025-01-16 22:49:04 [RateCDR] => 1 ) [2025-01-16 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:49:04' and `end` < '2025-01-16 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:49:18] Production.INFO: count ==742 [2025-01-16 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:49:04 - End Time 2025-01-16 22:49:04 [2025-01-16 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264117', 'tblTempUsageDetail_20' ) start [2025-01-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264117', 'tblTempUsageDetail_20' ) end [2025-01-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264117', 'tblTempVendorCDR_20' ) start [2025-01-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264117', 'tblTempVendorCDR_20' ) end [2025-01-16 22:49:18] Production.INFO: ProcessCDR(1,14264117,1,1,2) [2025-01-16 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264117', 'tblTempUsageDetail_20' ) start [2025-01-16 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264117', 'tblTempUsageDetail_20' ) end [2025-01-16 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:49:22] Production.INFO: ==26391== Releasing lock... [2025-01-16 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:49:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:50:05 [end_date_ymd] => 2025-01-16 22:50:05 [RateCDR] => 1 ) [2025-01-16 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:50:05' and `end` < '2025-01-16 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:50:18] Production.INFO: count ==742 [2025-01-16 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:50:05 - End Time 2025-01-16 22:50:05 [2025-01-16 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264123', 'tblTempUsageDetail_20' ) start [2025-01-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264123', 'tblTempUsageDetail_20' ) end [2025-01-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264123', 'tblTempVendorCDR_20' ) start [2025-01-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264123', 'tblTempVendorCDR_20' ) end [2025-01-16 22:50:18] Production.INFO: ProcessCDR(1,14264123,1,1,2) [2025-01-16 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264123', 'tblTempUsageDetail_20' ) start [2025-01-16 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264123', 'tblTempUsageDetail_20' ) end [2025-01-16 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:50:21] Production.INFO: ==26473== Releasing lock... [2025-01-16 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:50:21] Production.INFO: 33 MB #Memory Used# [2025-01-16 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:51:05 [end_date_ymd] => 2025-01-16 22:51:05 [RateCDR] => 1 ) [2025-01-16 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:51:05' and `end` < '2025-01-16 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:51:17] Production.INFO: count ==700 [2025-01-16 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:51:05 - End Time 2025-01-16 22:51:05 [2025-01-16 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264129', 'tblTempUsageDetail_20' ) start [2025-01-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264129', 'tblTempUsageDetail_20' ) end [2025-01-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264129', 'tblTempVendorCDR_20' ) start [2025-01-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264129', 'tblTempVendorCDR_20' ) end [2025-01-16 22:51:17] Production.INFO: ProcessCDR(1,14264129,1,1,2) [2025-01-16 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264129', 'tblTempUsageDetail_20' ) start [2025-01-16 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264129', 'tblTempUsageDetail_20' ) end [2025-01-16 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:51:21] Production.INFO: ==26552== Releasing lock... [2025-01-16 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:52:05 [end_date_ymd] => 2025-01-16 22:52:05 [RateCDR] => 1 ) [2025-01-16 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:52:05' and `end` < '2025-01-16 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:52:19] Production.INFO: count ==694 [2025-01-16 22:52:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:52:05 - End Time 2025-01-16 22:52:05 [2025-01-16 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264134', 'tblTempUsageDetail_20' ) start [2025-01-16 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264134', 'tblTempUsageDetail_20' ) end [2025-01-16 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264134', 'tblTempVendorCDR_20' ) start [2025-01-16 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264134', 'tblTempVendorCDR_20' ) end [2025-01-16 22:52:19] Production.INFO: ProcessCDR(1,14264134,1,1,2) [2025-01-16 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264134', 'tblTempUsageDetail_20' ) start [2025-01-16 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264134', 'tblTempUsageDetail_20' ) end [2025-01-16 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:52:22] Production.INFO: ==26644== Releasing lock... [2025-01-16 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-16 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:53:05 [end_date_ymd] => 2025-01-16 22:53:05 [RateCDR] => 1 ) [2025-01-16 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-01-16 19:53:05' and `end` < '2025-01-16 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-01-16 22:53:17] Production.INFO: count ==690 [2025-01-16 22:53:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:53:05 - End Time 2025-01-16 22:53:05 [2025-01-16 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264139', 'tblTempUsageDetail_20' ) start [2025-01-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264139', 'tblTempUsageDetail_20' ) end [2025-01-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264139', 'tblTempVendorCDR_20' ) start [2025-01-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264139', 'tblTempVendorCDR_20' ) end [2025-01-16 22:53:17] Production.INFO: ProcessCDR(1,14264139,1,1,2) [2025-01-16 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264139', 'tblTempUsageDetail_20' ) start [2025-01-16 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264139', 'tblTempUsageDetail_20' ) end [2025-01-16 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:53:21] Production.INFO: ==26744== Releasing lock... [2025-01-16 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:54:05 [end_date_ymd] => 2025-01-16 22:54:05 [RateCDR] => 1 ) [2025-01-16 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:54:05' and `end` < '2025-01-16 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:54:17] Production.INFO: count ==689 [2025-01-16 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:54:05 - End Time 2025-01-16 22:54:05 [2025-01-16 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264144', 'tblTempUsageDetail_20' ) start [2025-01-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264144', 'tblTempUsageDetail_20' ) end [2025-01-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264144', 'tblTempVendorCDR_20' ) start [2025-01-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264144', 'tblTempVendorCDR_20' ) end [2025-01-16 22:54:17] Production.INFO: ProcessCDR(1,14264144,1,1,2) [2025-01-16 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264144', 'tblTempUsageDetail_20' ) start [2025-01-16 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264144', 'tblTempUsageDetail_20' ) end [2025-01-16 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:54:21] Production.INFO: ==26862== Releasing lock... [2025-01-16 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:55:05 [end_date_ymd] => 2025-01-16 22:55:05 [RateCDR] => 1 ) [2025-01-16 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:55:05' and `end` < '2025-01-16 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:55:17] Production.INFO: count ==689 [2025-01-16 22:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:55:05 - End Time 2025-01-16 22:55:05 [2025-01-16 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264149', 'tblTempUsageDetail_20' ) start [2025-01-16 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264149', 'tblTempUsageDetail_20' ) end [2025-01-16 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264149', 'tblTempVendorCDR_20' ) start [2025-01-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264149', 'tblTempVendorCDR_20' ) end [2025-01-16 22:55:18] Production.INFO: ProcessCDR(1,14264149,1,1,2) [2025-01-16 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264149', 'tblTempUsageDetail_20' ) start [2025-01-16 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264149', 'tblTempUsageDetail_20' ) end [2025-01-16 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:55:21] Production.INFO: ==26972== Releasing lock... [2025-01-16 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:56:04 [end_date_ymd] => 2025-01-16 22:56:04 [RateCDR] => 1 ) [2025-01-16 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:56:04' and `end` < '2025-01-16 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:56:17] Production.INFO: count ==689 [2025-01-16 22:56:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:56:04 - End Time 2025-01-16 22:56:04 [2025-01-16 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264154', 'tblTempUsageDetail_20' ) start [2025-01-16 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264154', 'tblTempUsageDetail_20' ) end [2025-01-16 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264154', 'tblTempVendorCDR_20' ) start [2025-01-16 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264154', 'tblTempVendorCDR_20' ) end [2025-01-16 22:56:17] Production.INFO: ProcessCDR(1,14264154,1,1,2) [2025-01-16 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264154', 'tblTempUsageDetail_20' ) start [2025-01-16 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264154', 'tblTempUsageDetail_20' ) end [2025-01-16 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:56:20] Production.INFO: ==27080== Releasing lock... [2025-01-16 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:56:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:57:05 [end_date_ymd] => 2025-01-16 22:57:05 [RateCDR] => 1 ) [2025-01-16 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:57:05' and `end` < '2025-01-16 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:57:19] Production.INFO: count ==675 [2025-01-16 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-16 19:57:05 - End Time 2025-01-16 22:57:05 [2025-01-16 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264159', 'tblTempUsageDetail_20' ) start [2025-01-16 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264159', 'tblTempUsageDetail_20' ) end [2025-01-16 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264159', 'tblTempVendorCDR_20' ) start [2025-01-16 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264159', 'tblTempVendorCDR_20' ) end [2025-01-16 22:57:19] Production.INFO: ProcessCDR(1,14264159,1,1,2) [2025-01-16 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264159', 'tblTempUsageDetail_20' ) start [2025-01-16 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264159', 'tblTempUsageDetail_20' ) end [2025-01-16 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:57:22] Production.INFO: ==27190== Releasing lock... [2025-01-16 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:57:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:58:04 [end_date_ymd] => 2025-01-16 22:58:04 [RateCDR] => 1 ) [2025-01-16 22:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:58:04' and `end` < '2025-01-16 22:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:58:17] Production.INFO: count ==675 [2025-01-16 22:58:17] Production.ERROR: pbx CDR StartTime 2025-01-16 19:58:04 - End Time 2025-01-16 22:58:04 [2025-01-16 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264164', 'tblTempUsageDetail_20' ) start [2025-01-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264164', 'tblTempUsageDetail_20' ) end [2025-01-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264164', 'tblTempVendorCDR_20' ) start [2025-01-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264164', 'tblTempVendorCDR_20' ) end [2025-01-16 22:58:17] Production.INFO: ProcessCDR(1,14264164,1,1,2) [2025-01-16 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264164', 'tblTempUsageDetail_20' ) start [2025-01-16 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264164', 'tblTempUsageDetail_20' ) end [2025-01-16 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:58:21] Production.INFO: ==27301== Releasing lock... [2025-01-16 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-16 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 19:59:05 [end_date_ymd] => 2025-01-16 22:59:05 [RateCDR] => 1 ) [2025-01-16 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 19:59:05' and `end` < '2025-01-16 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 22:59:18] Production.INFO: count ==666 [2025-01-16 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 19:59:05 - End Time 2025-01-16 22:59:05 [2025-01-16 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264169', 'tblTempUsageDetail_20' ) start [2025-01-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264169', 'tblTempUsageDetail_20' ) end [2025-01-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264169', 'tblTempVendorCDR_20' ) start [2025-01-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264169', 'tblTempVendorCDR_20' ) end [2025-01-16 22:59:18] Production.INFO: ProcessCDR(1,14264169,1,1,2) [2025-01-16 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264169', 'tblTempUsageDetail_20' ) start [2025-01-16 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264169', 'tblTempUsageDetail_20' ) end [2025-01-16 22:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 22:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 22:59:23] Production.INFO: ==27395== Releasing lock... [2025-01-16 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 22:59:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:00:06 [end_date_ymd] => 2025-01-16 23:00:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 20:00:06' and `end` < '2025-01-16 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-01-16 23:00:18] Production.INFO: count ==664 [2025-01-16 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:00:06 - End Time 2025-01-16 23:00:06 [2025-01-16 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264175', 'tblTempUsageDetail_20' ) start [2025-01-16 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264175', 'tblTempUsageDetail_20' ) end [2025-01-16 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264175', 'tblTempVendorCDR_20' ) start [2025-01-16 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264175', 'tblTempVendorCDR_20' ) end [2025-01-16 23:00:18] Production.INFO: ProcessCDR(1,14264175,1,1,2) [2025-01-16 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264175', 'tblTempUsageDetail_20' ) start [2025-01-16 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264175', 'tblTempUsageDetail_20' ) end [2025-01-16 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:00:22] Production.INFO: ==27481== Releasing lock... [2025-01-16 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:01:04 [end_date_ymd] => 2025-01-16 23:01:04 [RateCDR] => 1 ) [2025-01-16 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:01:04' and `end` < '2025-01-16 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:01:19] Production.INFO: count ==642 [2025-01-16 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:01:04 - End Time 2025-01-16 23:01:04 [2025-01-16 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264180', 'tblTempUsageDetail_20' ) start [2025-01-16 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264180', 'tblTempUsageDetail_20' ) end [2025-01-16 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264180', 'tblTempVendorCDR_20' ) start [2025-01-16 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264180', 'tblTempVendorCDR_20' ) end [2025-01-16 23:01:19] Production.INFO: ProcessCDR(1,14264180,1,1,2) [2025-01-16 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264180', 'tblTempUsageDetail_20' ) start [2025-01-16 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264180', 'tblTempUsageDetail_20' ) end [2025-01-16 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:01:23] Production.INFO: ==27572== Releasing lock... [2025-01-16 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:01:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:02:05 [end_date_ymd] => 2025-01-16 23:02:05 [RateCDR] => 1 ) [2025-01-16 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:02:05' and `end` < '2025-01-16 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:02:18] Production.INFO: count ==642 [2025-01-16 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:02:05 - End Time 2025-01-16 23:02:05 [2025-01-16 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264185', 'tblTempUsageDetail_20' ) start [2025-01-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264185', 'tblTempUsageDetail_20' ) end [2025-01-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264185', 'tblTempVendorCDR_20' ) start [2025-01-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264185', 'tblTempVendorCDR_20' ) end [2025-01-16 23:02:18] Production.INFO: ProcessCDR(1,14264185,1,1,2) [2025-01-16 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264185', 'tblTempUsageDetail_20' ) start [2025-01-16 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264185', 'tblTempUsageDetail_20' ) end [2025-01-16 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:02:21] Production.INFO: ==27730== Releasing lock... [2025-01-16 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:03:05 [end_date_ymd] => 2025-01-16 23:03:05 [RateCDR] => 1 ) [2025-01-16 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:03:05' and `end` < '2025-01-16 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:03:17] Production.INFO: count ==636 [2025-01-16 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:03:05 - End Time 2025-01-16 23:03:05 [2025-01-16 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264190', 'tblTempUsageDetail_20' ) start [2025-01-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264190', 'tblTempUsageDetail_20' ) end [2025-01-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264190', 'tblTempVendorCDR_20' ) start [2025-01-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264190', 'tblTempVendorCDR_20' ) end [2025-01-16 23:03:17] Production.INFO: ProcessCDR(1,14264190,1,1,2) [2025-01-16 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264190', 'tblTempUsageDetail_20' ) start [2025-01-16 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264190', 'tblTempUsageDetail_20' ) end [2025-01-16 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:03:20] Production.INFO: ==27808== Releasing lock... [2025-01-16 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:03:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-16 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:04:05 [end_date_ymd] => 2025-01-16 23:04:05 [RateCDR] => 1 ) [2025-01-16 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:04:05' and `end` < '2025-01-16 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:04:17] Production.INFO: count ==633 [2025-01-16 23:04:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:04:05 - End Time 2025-01-16 23:04:05 [2025-01-16 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264195', 'tblTempUsageDetail_20' ) start [2025-01-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264195', 'tblTempUsageDetail_20' ) end [2025-01-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264195', 'tblTempVendorCDR_20' ) start [2025-01-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264195', 'tblTempVendorCDR_20' ) end [2025-01-16 23:04:17] Production.INFO: ProcessCDR(1,14264195,1,1,2) [2025-01-16 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264195', 'tblTempUsageDetail_20' ) start [2025-01-16 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264195', 'tblTempUsageDetail_20' ) end [2025-01-16 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:04:22] Production.INFO: ==27884== Releasing lock... [2025-01-16 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:04:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:05:05 [end_date_ymd] => 2025-01-16 23:05:05 [RateCDR] => 1 ) [2025-01-16 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:05:05' and `end` < '2025-01-16 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:05:18] Production.INFO: count ==632 [2025-01-16 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:05:05 - End Time 2025-01-16 23:05:05 [2025-01-16 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264200', 'tblTempUsageDetail_20' ) start [2025-01-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264200', 'tblTempUsageDetail_20' ) end [2025-01-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264200', 'tblTempVendorCDR_20' ) start [2025-01-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264200', 'tblTempVendorCDR_20' ) end [2025-01-16 23:05:18] Production.INFO: ProcessCDR(1,14264200,1,1,2) [2025-01-16 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264200', 'tblTempUsageDetail_20' ) start [2025-01-16 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264200', 'tblTempUsageDetail_20' ) end [2025-01-16 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:05:21] Production.INFO: ==28083== Releasing lock... [2025-01-16 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:05:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:06:05 [end_date_ymd] => 2025-01-16 23:06:05 [RateCDR] => 1 ) [2025-01-16 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:06:05' and `end` < '2025-01-16 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:06:17] Production.INFO: count ==632 [2025-01-16 23:06:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:06:05 - End Time 2025-01-16 23:06:05 [2025-01-16 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264205', 'tblTempUsageDetail_20' ) start [2025-01-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264205', 'tblTempUsageDetail_20' ) end [2025-01-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264205', 'tblTempVendorCDR_20' ) start [2025-01-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264205', 'tblTempVendorCDR_20' ) end [2025-01-16 23:06:17] Production.INFO: ProcessCDR(1,14264205,1,1,2) [2025-01-16 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264205', 'tblTempUsageDetail_20' ) start [2025-01-16 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264205', 'tblTempUsageDetail_20' ) end [2025-01-16 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:06:20] Production.INFO: ==28164== Releasing lock... [2025-01-16 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:06:20] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:07:05 [end_date_ymd] => 2025-01-16 23:07:05 [RateCDR] => 1 ) [2025-01-16 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:07:05' and `end` < '2025-01-16 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:07:19] Production.INFO: count ==632 [2025-01-16 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:07:05 - End Time 2025-01-16 23:07:05 [2025-01-16 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264210', 'tblTempUsageDetail_20' ) start [2025-01-16 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264210', 'tblTempUsageDetail_20' ) end [2025-01-16 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264210', 'tblTempVendorCDR_20' ) start [2025-01-16 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264210', 'tblTempVendorCDR_20' ) end [2025-01-16 23:07:19] Production.INFO: ProcessCDR(1,14264210,1,1,2) [2025-01-16 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264210', 'tblTempUsageDetail_20' ) start [2025-01-16 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264210', 'tblTempUsageDetail_20' ) end [2025-01-16 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:07:22] Production.INFO: ==28237== Releasing lock... [2025-01-16 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:07:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:08:05 [end_date_ymd] => 2025-01-16 23:08:05 [RateCDR] => 1 ) [2025-01-16 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:08:05' and `end` < '2025-01-16 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:08:17] Production.INFO: count ==632 [2025-01-16 23:08:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:08:05 - End Time 2025-01-16 23:08:05 [2025-01-16 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264215', 'tblTempUsageDetail_20' ) start [2025-01-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264215', 'tblTempUsageDetail_20' ) end [2025-01-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264215', 'tblTempVendorCDR_20' ) start [2025-01-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264215', 'tblTempVendorCDR_20' ) end [2025-01-16 23:08:17] Production.INFO: ProcessCDR(1,14264215,1,1,2) [2025-01-16 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264215', 'tblTempUsageDetail_20' ) start [2025-01-16 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264215', 'tblTempUsageDetail_20' ) end [2025-01-16 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:08:20] Production.INFO: ==28388== Releasing lock... [2025-01-16 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:08:20] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:09:05 [end_date_ymd] => 2025-01-16 23:09:05 [RateCDR] => 1 ) [2025-01-16 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:09:05' and `end` < '2025-01-16 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:09:17] Production.INFO: count ==633 [2025-01-16 23:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:09:05 - End Time 2025-01-16 23:09:05 [2025-01-16 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264220', 'tblTempUsageDetail_20' ) start [2025-01-16 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264220', 'tblTempUsageDetail_20' ) end [2025-01-16 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264220', 'tblTempVendorCDR_20' ) start [2025-01-16 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264220', 'tblTempVendorCDR_20' ) end [2025-01-16 23:09:17] Production.INFO: ProcessCDR(1,14264220,1,1,2) [2025-01-16 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264220', 'tblTempUsageDetail_20' ) start [2025-01-16 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264220', 'tblTempUsageDetail_20' ) end [2025-01-16 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:09:21] Production.INFO: ==28459== Releasing lock... [2025-01-16 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:09:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:10:05 [end_date_ymd] => 2025-01-16 23:10:05 [RateCDR] => 1 ) [2025-01-16 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:10:05' and `end` < '2025-01-16 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:10:18] Production.INFO: count ==630 [2025-01-16 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:10:05 - End Time 2025-01-16 23:10:05 [2025-01-16 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264226', 'tblTempUsageDetail_20' ) start [2025-01-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264226', 'tblTempUsageDetail_20' ) end [2025-01-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264226', 'tblTempVendorCDR_20' ) start [2025-01-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264226', 'tblTempVendorCDR_20' ) end [2025-01-16 23:10:18] Production.INFO: ProcessCDR(1,14264226,1,1,2) [2025-01-16 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264226', 'tblTempUsageDetail_20' ) start [2025-01-16 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264226', 'tblTempUsageDetail_20' ) end [2025-01-16 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:10:21] Production.INFO: ==28531== Releasing lock... [2025-01-16 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:10:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:11:06 [end_date_ymd] => 2025-01-16 23:11:06 [RateCDR] => 1 ) [2025-01-16 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:11:06' and `end` < '2025-01-16 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:11:18] Production.INFO: count ==612 [2025-01-16 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:11:06 - End Time 2025-01-16 23:11:06 [2025-01-16 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264231', 'tblTempUsageDetail_20' ) start [2025-01-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264231', 'tblTempUsageDetail_20' ) end [2025-01-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264231', 'tblTempVendorCDR_20' ) start [2025-01-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264231', 'tblTempVendorCDR_20' ) end [2025-01-16 23:11:18] Production.INFO: ProcessCDR(1,14264231,1,1,2) [2025-01-16 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264231', 'tblTempUsageDetail_20' ) start [2025-01-16 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264231', 'tblTempUsageDetail_20' ) end [2025-01-16 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:11:22] Production.INFO: ==28604== Releasing lock... [2025-01-16 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:11:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:12:05 [end_date_ymd] => 2025-01-16 23:12:05 [RateCDR] => 1 ) [2025-01-16 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:12:05' and `end` < '2025-01-16 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:12:17] Production.INFO: count ==612 [2025-01-16 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:12:05 - End Time 2025-01-16 23:12:05 [2025-01-16 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264236', 'tblTempUsageDetail_20' ) start [2025-01-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264236', 'tblTempUsageDetail_20' ) end [2025-01-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264236', 'tblTempVendorCDR_20' ) start [2025-01-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264236', 'tblTempVendorCDR_20' ) end [2025-01-16 23:12:18] Production.INFO: ProcessCDR(1,14264236,1,1,2) [2025-01-16 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264236', 'tblTempUsageDetail_20' ) start [2025-01-16 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264236', 'tblTempUsageDetail_20' ) end [2025-01-16 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:12:21] Production.INFO: ==28751== Releasing lock... [2025-01-16 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:12:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:13:05 [end_date_ymd] => 2025-01-16 23:13:05 [RateCDR] => 1 ) [2025-01-16 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:13:05' and `end` < '2025-01-16 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:13:19] Production.INFO: count ==613 [2025-01-16 23:13:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:13:05 - End Time 2025-01-16 23:13:05 [2025-01-16 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264241', 'tblTempUsageDetail_20' ) start [2025-01-16 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264241', 'tblTempUsageDetail_20' ) end [2025-01-16 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264241', 'tblTempVendorCDR_20' ) start [2025-01-16 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264241', 'tblTempVendorCDR_20' ) end [2025-01-16 23:13:19] Production.INFO: ProcessCDR(1,14264241,1,1,2) [2025-01-16 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264241', 'tblTempUsageDetail_20' ) start [2025-01-16 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264241', 'tblTempUsageDetail_20' ) end [2025-01-16 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:13:22] Production.INFO: ==28823== Releasing lock... [2025-01-16 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:13:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:14:05 [end_date_ymd] => 2025-01-16 23:14:05 [RateCDR] => 1 ) [2025-01-16 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:14:05' and `end` < '2025-01-16 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:14:17] Production.INFO: count ==611 [2025-01-16 23:14:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:14:05 - End Time 2025-01-16 23:14:05 [2025-01-16 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264246', 'tblTempUsageDetail_20' ) start [2025-01-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264246', 'tblTempUsageDetail_20' ) end [2025-01-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264246', 'tblTempVendorCDR_20' ) start [2025-01-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264246', 'tblTempVendorCDR_20' ) end [2025-01-16 23:14:17] Production.INFO: ProcessCDR(1,14264246,1,1,2) [2025-01-16 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264246', 'tblTempUsageDetail_20' ) start [2025-01-16 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264246', 'tblTempUsageDetail_20' ) end [2025-01-16 23:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:14:20] Production.INFO: ==28894== Releasing lock... [2025-01-16 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:14:20] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:15:05 [end_date_ymd] => 2025-01-16 23:15:05 [RateCDR] => 1 ) [2025-01-16 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:15:05' and `end` < '2025-01-16 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:15:19] Production.INFO: count ==610 [2025-01-16 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:15:05 - End Time 2025-01-16 23:15:05 [2025-01-16 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264251', 'tblTempUsageDetail_20' ) start [2025-01-16 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264251', 'tblTempUsageDetail_20' ) end [2025-01-16 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264251', 'tblTempVendorCDR_20' ) start [2025-01-16 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264251', 'tblTempVendorCDR_20' ) end [2025-01-16 23:15:19] Production.INFO: ProcessCDR(1,14264251,1,1,2) [2025-01-16 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264251', 'tblTempUsageDetail_20' ) start [2025-01-16 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264251', 'tblTempUsageDetail_20' ) end [2025-01-16 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:15:22] Production.INFO: ==29042== Releasing lock... [2025-01-16 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:15:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:16:04 [end_date_ymd] => 2025-01-16 23:16:04 [RateCDR] => 1 ) [2025-01-16 23:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:16:04' and `end` < '2025-01-16 23:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:16:18] Production.INFO: count ==610 [2025-01-16 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:16:04 - End Time 2025-01-16 23:16:04 [2025-01-16 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264256', 'tblTempUsageDetail_20' ) start [2025-01-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264256', 'tblTempUsageDetail_20' ) end [2025-01-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264256', 'tblTempVendorCDR_20' ) start [2025-01-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264256', 'tblTempVendorCDR_20' ) end [2025-01-16 23:16:18] Production.INFO: ProcessCDR(1,14264256,1,1,2) [2025-01-16 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264256', 'tblTempUsageDetail_20' ) start [2025-01-16 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264256', 'tblTempUsageDetail_20' ) end [2025-01-16 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:16:21] Production.INFO: ==29113== Releasing lock... [2025-01-16 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:16:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:17:05 [end_date_ymd] => 2025-01-16 23:17:05 [RateCDR] => 1 ) [2025-01-16 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:17:05' and `end` < '2025-01-16 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:17:18] Production.INFO: count ==611 [2025-01-16 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:17:05 - End Time 2025-01-16 23:17:05 [2025-01-16 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264260', 'tblTempUsageDetail_20' ) start [2025-01-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264260', 'tblTempUsageDetail_20' ) end [2025-01-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264260', 'tblTempVendorCDR_20' ) start [2025-01-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264260', 'tblTempVendorCDR_20' ) end [2025-01-16 23:17:18] Production.INFO: ProcessCDR(1,14264260,1,1,2) [2025-01-16 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264260', 'tblTempUsageDetail_20' ) start [2025-01-16 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264260', 'tblTempUsageDetail_20' ) end [2025-01-16 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:17:22] Production.INFO: ==29185== Releasing lock... [2025-01-16 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:17:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:18:04 [end_date_ymd] => 2025-01-16 23:18:04 [RateCDR] => 1 ) [2025-01-16 23:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:18:04' and `end` < '2025-01-16 23:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:18:17] Production.INFO: count ==611 [2025-01-16 23:18:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:18:04 - End Time 2025-01-16 23:18:04 [2025-01-16 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264266', 'tblTempUsageDetail_20' ) start [2025-01-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264266', 'tblTempUsageDetail_20' ) end [2025-01-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264266', 'tblTempVendorCDR_20' ) start [2025-01-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264266', 'tblTempVendorCDR_20' ) end [2025-01-16 23:18:17] Production.INFO: ProcessCDR(1,14264266,1,1,2) [2025-01-16 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264266', 'tblTempUsageDetail_20' ) start [2025-01-16 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264266', 'tblTempUsageDetail_20' ) end [2025-01-16 23:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:18:20] Production.INFO: ==29254== Releasing lock... [2025-01-16 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:18:20] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:19:05 [end_date_ymd] => 2025-01-16 23:19:05 [RateCDR] => 1 ) [2025-01-16 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:19:05' and `end` < '2025-01-16 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:19:18] Production.INFO: count ==611 [2025-01-16 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:19:05 - End Time 2025-01-16 23:19:05 [2025-01-16 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264271', 'tblTempUsageDetail_20' ) start [2025-01-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264271', 'tblTempUsageDetail_20' ) end [2025-01-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264271', 'tblTempVendorCDR_20' ) start [2025-01-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264271', 'tblTempVendorCDR_20' ) end [2025-01-16 23:19:18] Production.INFO: ProcessCDR(1,14264271,1,1,2) [2025-01-16 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264271', 'tblTempUsageDetail_20' ) start [2025-01-16 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264271', 'tblTempUsageDetail_20' ) end [2025-01-16 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:19:22] Production.INFO: ==29326== Releasing lock... [2025-01-16 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:19:22] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:20:05 [end_date_ymd] => 2025-01-16 23:20:05 [RateCDR] => 1 ) [2025-01-16 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:20:05' and `end` < '2025-01-16 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:20:17] Production.INFO: count ==613 [2025-01-16 23:20:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:20:05 - End Time 2025-01-16 23:20:05 [2025-01-16 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264275', 'tblTempUsageDetail_20' ) start [2025-01-16 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264275', 'tblTempUsageDetail_20' ) end [2025-01-16 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264275', 'tblTempVendorCDR_20' ) start [2025-01-16 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264275', 'tblTempVendorCDR_20' ) end [2025-01-16 23:20:17] Production.INFO: ProcessCDR(1,14264275,1,1,2) [2025-01-16 23:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264275', 'tblTempUsageDetail_20' ) start [2025-01-16 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264275', 'tblTempUsageDetail_20' ) end [2025-01-16 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:20:21] Production.INFO: ==29436== Releasing lock... [2025-01-16 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:20:21] Production.INFO: 32 MB #Memory Used# [2025-01-16 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:21:05 [end_date_ymd] => 2025-01-16 23:21:05 [RateCDR] => 1 ) [2025-01-16 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:21:05' and `end` < '2025-01-16 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:21:17] Production.INFO: count ==596 [2025-01-16 23:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:21:05 - End Time 2025-01-16 23:21:05 [2025-01-16 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264282', 'tblTempUsageDetail_20' ) start [2025-01-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264282', 'tblTempUsageDetail_20' ) end [2025-01-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264282', 'tblTempVendorCDR_20' ) start [2025-01-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264282', 'tblTempVendorCDR_20' ) end [2025-01-16 23:21:17] Production.INFO: ProcessCDR(1,14264282,1,1,2) [2025-01-16 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264282', 'tblTempUsageDetail_20' ) start [2025-01-16 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264282', 'tblTempUsageDetail_20' ) end [2025-01-16 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:21:20] Production.INFO: ==29514== Releasing lock... [2025-01-16 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:21:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:22:05 [end_date_ymd] => 2025-01-16 23:22:05 [RateCDR] => 1 ) [2025-01-16 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:22:05' and `end` < '2025-01-16 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:22:18] Production.INFO: count ==595 [2025-01-16 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:22:05 - End Time 2025-01-16 23:22:05 [2025-01-16 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264287', 'tblTempUsageDetail_20' ) start [2025-01-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264287', 'tblTempUsageDetail_20' ) end [2025-01-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264287', 'tblTempVendorCDR_20' ) start [2025-01-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264287', 'tblTempVendorCDR_20' ) end [2025-01-16 23:22:18] Production.INFO: ProcessCDR(1,14264287,1,1,2) [2025-01-16 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264287', 'tblTempUsageDetail_20' ) start [2025-01-16 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264287', 'tblTempUsageDetail_20' ) end [2025-01-16 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:22:21] Production.INFO: ==29589== Releasing lock... [2025-01-16 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:23:05 [end_date_ymd] => 2025-01-16 23:23:05 [RateCDR] => 1 ) [2025-01-16 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:23:05' and `end` < '2025-01-16 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:23:17] Production.INFO: count ==594 [2025-01-16 23:23:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:23:05 - End Time 2025-01-16 23:23:05 [2025-01-16 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264292', 'tblTempUsageDetail_20' ) start [2025-01-16 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264292', 'tblTempUsageDetail_20' ) end [2025-01-16 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264292', 'tblTempVendorCDR_20' ) start [2025-01-16 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264292', 'tblTempVendorCDR_20' ) end [2025-01-16 23:23:17] Production.INFO: ProcessCDR(1,14264292,1,1,2) [2025-01-16 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264292', 'tblTempUsageDetail_20' ) start [2025-01-16 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264292', 'tblTempUsageDetail_20' ) end [2025-01-16 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:23:20] Production.INFO: ==29660== Releasing lock... [2025-01-16 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:23:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:24:05 [end_date_ymd] => 2025-01-16 23:24:05 [RateCDR] => 1 ) [2025-01-16 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:24:05' and `end` < '2025-01-16 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:24:17] Production.INFO: count ==594 [2025-01-16 23:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:24:05 - End Time 2025-01-16 23:24:05 [2025-01-16 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264297', 'tblTempUsageDetail_20' ) start [2025-01-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264297', 'tblTempUsageDetail_20' ) end [2025-01-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264297', 'tblTempVendorCDR_20' ) start [2025-01-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264297', 'tblTempVendorCDR_20' ) end [2025-01-16 23:24:17] Production.INFO: ProcessCDR(1,14264297,1,1,2) [2025-01-16 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264297', 'tblTempUsageDetail_20' ) start [2025-01-16 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264297', 'tblTempUsageDetail_20' ) end [2025-01-16 23:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:24:20] Production.INFO: ==29735== Releasing lock... [2025-01-16 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:24:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:25:05 [end_date_ymd] => 2025-01-16 23:25:05 [RateCDR] => 1 ) [2025-01-16 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:25:05' and `end` < '2025-01-16 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:25:17] Production.INFO: count ==592 [2025-01-16 23:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:25:05 - End Time 2025-01-16 23:25:05 [2025-01-16 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264302', 'tblTempUsageDetail_20' ) start [2025-01-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264302', 'tblTempUsageDetail_20' ) end [2025-01-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264302', 'tblTempVendorCDR_20' ) start [2025-01-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264302', 'tblTempVendorCDR_20' ) end [2025-01-16 23:25:17] Production.INFO: ProcessCDR(1,14264302,1,1,2) [2025-01-16 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264302', 'tblTempUsageDetail_20' ) start [2025-01-16 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264302', 'tblTempUsageDetail_20' ) end [2025-01-16 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:25:20] Production.INFO: ==29805== Releasing lock... [2025-01-16 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:25:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:26:05 [end_date_ymd] => 2025-01-16 23:26:05 [RateCDR] => 1 ) [2025-01-16 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:26:05' and `end` < '2025-01-16 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:26:17] Production.INFO: count ==592 [2025-01-16 23:26:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:26:05 - End Time 2025-01-16 23:26:05 [2025-01-16 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264307', 'tblTempUsageDetail_20' ) start [2025-01-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264307', 'tblTempUsageDetail_20' ) end [2025-01-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264307', 'tblTempVendorCDR_20' ) start [2025-01-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264307', 'tblTempVendorCDR_20' ) end [2025-01-16 23:26:17] Production.INFO: ProcessCDR(1,14264307,1,1,2) [2025-01-16 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264307', 'tblTempUsageDetail_20' ) start [2025-01-16 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264307', 'tblTempUsageDetail_20' ) end [2025-01-16 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:26:20] Production.INFO: ==29875== Releasing lock... [2025-01-16 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:26:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:27:04 [end_date_ymd] => 2025-01-16 23:27:04 [RateCDR] => 1 ) [2025-01-16 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:27:04' and `end` < '2025-01-16 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:27:16] Production.INFO: count ==591 [2025-01-16 23:27:16] Production.ERROR: pbx CDR StartTime 2025-01-16 20:27:04 - End Time 2025-01-16 23:27:04 [2025-01-16 23:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264312', 'tblTempUsageDetail_20' ) start [2025-01-16 23:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264312', 'tblTempUsageDetail_20' ) end [2025-01-16 23:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264312', 'tblTempVendorCDR_20' ) start [2025-01-16 23:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264312', 'tblTempVendorCDR_20' ) end [2025-01-16 23:27:16] Production.INFO: ProcessCDR(1,14264312,1,1,2) [2025-01-16 23:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264312', 'tblTempUsageDetail_20' ) start [2025-01-16 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264312', 'tblTempUsageDetail_20' ) end [2025-01-16 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:27:20] Production.INFO: ==29946== Releasing lock... [2025-01-16 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:27:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:28:05 [end_date_ymd] => 2025-01-16 23:28:05 [RateCDR] => 1 ) [2025-01-16 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:28:05' and `end` < '2025-01-16 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:28:18] Production.INFO: count ==591 [2025-01-16 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:28:05 - End Time 2025-01-16 23:28:05 [2025-01-16 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264317', 'tblTempUsageDetail_20' ) start [2025-01-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264317', 'tblTempUsageDetail_20' ) end [2025-01-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264317', 'tblTempVendorCDR_20' ) start [2025-01-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264317', 'tblTempVendorCDR_20' ) end [2025-01-16 23:28:18] Production.INFO: ProcessCDR(1,14264317,1,1,2) [2025-01-16 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264317', 'tblTempUsageDetail_20' ) start [2025-01-16 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264317', 'tblTempUsageDetail_20' ) end [2025-01-16 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:28:22] Production.INFO: ==30016== Releasing lock... [2025-01-16 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:29:05 [end_date_ymd] => 2025-01-16 23:29:05 [RateCDR] => 1 ) [2025-01-16 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:29:05' and `end` < '2025-01-16 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:29:18] Production.INFO: count ==591 [2025-01-16 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:29:05 - End Time 2025-01-16 23:29:05 [2025-01-16 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264322', 'tblTempUsageDetail_20' ) start [2025-01-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264322', 'tblTempUsageDetail_20' ) end [2025-01-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264322', 'tblTempVendorCDR_20' ) start [2025-01-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264322', 'tblTempVendorCDR_20' ) end [2025-01-16 23:29:18] Production.INFO: ProcessCDR(1,14264322,1,1,2) [2025-01-16 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264322', 'tblTempUsageDetail_20' ) start [2025-01-16 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264322', 'tblTempUsageDetail_20' ) end [2025-01-16 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:29:22] Production.INFO: ==30090== Releasing lock... [2025-01-16 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:30:05 [end_date_ymd] => 2025-01-16 23:30:05 [RateCDR] => 1 ) [2025-01-16 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:30:05' and `end` < '2025-01-16 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:30:19] Production.INFO: count ==591 [2025-01-16 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:30:05 - End Time 2025-01-16 23:30:05 [2025-01-16 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264328', 'tblTempUsageDetail_20' ) start [2025-01-16 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264328', 'tblTempUsageDetail_20' ) end [2025-01-16 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264328', 'tblTempVendorCDR_20' ) start [2025-01-16 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264328', 'tblTempVendorCDR_20' ) end [2025-01-16 23:30:19] Production.INFO: ProcessCDR(1,14264328,1,1,2) [2025-01-16 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264328', 'tblTempUsageDetail_20' ) start [2025-01-16 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264328', 'tblTempUsageDetail_20' ) end [2025-01-16 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:30:22] Production.INFO: ==30166== Releasing lock... [2025-01-16 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:31:05 [end_date_ymd] => 2025-01-16 23:31:05 [RateCDR] => 1 ) [2025-01-16 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:31:05' and `end` < '2025-01-16 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:31:17] Production.INFO: count ==571 [2025-01-16 23:31:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:31:05 - End Time 2025-01-16 23:31:05 [2025-01-16 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264333', 'tblTempUsageDetail_20' ) start [2025-01-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264333', 'tblTempUsageDetail_20' ) end [2025-01-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264333', 'tblTempVendorCDR_20' ) start [2025-01-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264333', 'tblTempVendorCDR_20' ) end [2025-01-16 23:31:17] Production.INFO: ProcessCDR(1,14264333,1,1,2) [2025-01-16 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264333', 'tblTempUsageDetail_20' ) start [2025-01-16 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264333', 'tblTempUsageDetail_20' ) end [2025-01-16 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:31:21] Production.INFO: ==30255== Releasing lock... [2025-01-16 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:32:05 [end_date_ymd] => 2025-01-16 23:32:05 [RateCDR] => 1 ) [2025-01-16 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:32:05' and `end` < '2025-01-16 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:32:19] Production.INFO: count ==562 [2025-01-16 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:32:05 - End Time 2025-01-16 23:32:05 [2025-01-16 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264338', 'tblTempUsageDetail_20' ) start [2025-01-16 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264338', 'tblTempUsageDetail_20' ) end [2025-01-16 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264338', 'tblTempVendorCDR_20' ) start [2025-01-16 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264338', 'tblTempVendorCDR_20' ) end [2025-01-16 23:32:19] Production.INFO: ProcessCDR(1,14264338,1,1,2) [2025-01-16 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264338', 'tblTempUsageDetail_20' ) start [2025-01-16 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264338', 'tblTempUsageDetail_20' ) end [2025-01-16 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:32:22] Production.INFO: ==30325== Releasing lock... [2025-01-16 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:33:05 [end_date_ymd] => 2025-01-16 23:33:05 [RateCDR] => 1 ) [2025-01-16 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:33:05' and `end` < '2025-01-16 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:33:17] Production.INFO: count ==562 [2025-01-16 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:33:05 - End Time 2025-01-16 23:33:05 [2025-01-16 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264343', 'tblTempUsageDetail_20' ) start [2025-01-16 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264343', 'tblTempUsageDetail_20' ) end [2025-01-16 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264343', 'tblTempVendorCDR_20' ) start [2025-01-16 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264343', 'tblTempVendorCDR_20' ) end [2025-01-16 23:33:18] Production.INFO: ProcessCDR(1,14264343,1,1,2) [2025-01-16 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264343', 'tblTempUsageDetail_20' ) start [2025-01-16 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264343', 'tblTempUsageDetail_20' ) end [2025-01-16 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:33:21] Production.INFO: ==30395== Releasing lock... [2025-01-16 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:34:05 [end_date_ymd] => 2025-01-16 23:34:05 [RateCDR] => 1 ) [2025-01-16 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:34:05' and `end` < '2025-01-16 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:34:18] Production.INFO: count ==564 [2025-01-16 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:34:05 - End Time 2025-01-16 23:34:05 [2025-01-16 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264348', 'tblTempUsageDetail_20' ) start [2025-01-16 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264348', 'tblTempUsageDetail_20' ) end [2025-01-16 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264348', 'tblTempVendorCDR_20' ) start [2025-01-16 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264348', 'tblTempVendorCDR_20' ) end [2025-01-16 23:34:18] Production.INFO: ProcessCDR(1,14264348,1,1,2) [2025-01-16 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264348', 'tblTempUsageDetail_20' ) start [2025-01-16 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264348', 'tblTempUsageDetail_20' ) end [2025-01-16 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:34:23] Production.INFO: ==30464== Releasing lock... [2025-01-16 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:34:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:35:04 [end_date_ymd] => 2025-01-16 23:35:04 [RateCDR] => 1 ) [2025-01-16 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:35:04' and `end` < '2025-01-16 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:35:17] Production.INFO: count ==566 [2025-01-16 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:35:04 - End Time 2025-01-16 23:35:04 [2025-01-16 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264353', 'tblTempUsageDetail_20' ) start [2025-01-16 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264353', 'tblTempUsageDetail_20' ) end [2025-01-16 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264353', 'tblTempVendorCDR_20' ) start [2025-01-16 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264353', 'tblTempVendorCDR_20' ) end [2025-01-16 23:35:17] Production.INFO: ProcessCDR(1,14264353,1,1,2) [2025-01-16 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264353', 'tblTempUsageDetail_20' ) start [2025-01-16 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264353', 'tblTempUsageDetail_20' ) end [2025-01-16 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:35:22] Production.INFO: ==30538== Releasing lock... [2025-01-16 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:36:06 [end_date_ymd] => 2025-01-16 23:36:06 [RateCDR] => 1 ) [2025-01-16 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:36:06' and `end` < '2025-01-16 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:36:18] Production.INFO: count ==564 [2025-01-16 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:36:06 - End Time 2025-01-16 23:36:06 [2025-01-16 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264358', 'tblTempUsageDetail_20' ) start [2025-01-16 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264358', 'tblTempUsageDetail_20' ) end [2025-01-16 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264358', 'tblTempVendorCDR_20' ) start [2025-01-16 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264358', 'tblTempVendorCDR_20' ) end [2025-01-16 23:36:18] Production.INFO: ProcessCDR(1,14264358,1,1,2) [2025-01-16 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264358', 'tblTempUsageDetail_20' ) start [2025-01-16 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264358', 'tblTempUsageDetail_20' ) end [2025-01-16 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:36:23] Production.INFO: ==30652== Releasing lock... [2025-01-16 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:36:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:37:05 [end_date_ymd] => 2025-01-16 23:37:05 [RateCDR] => 1 ) [2025-01-16 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:37:05' and `end` < '2025-01-16 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:37:19] Production.INFO: count ==567 [2025-01-16 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:37:05 - End Time 2025-01-16 23:37:05 [2025-01-16 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264363', 'tblTempUsageDetail_20' ) start [2025-01-16 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264363', 'tblTempUsageDetail_20' ) end [2025-01-16 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264363', 'tblTempVendorCDR_20' ) start [2025-01-16 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264363', 'tblTempVendorCDR_20' ) end [2025-01-16 23:37:19] Production.INFO: ProcessCDR(1,14264363,1,1,2) [2025-01-16 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264363', 'tblTempUsageDetail_20' ) start [2025-01-16 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264363', 'tblTempUsageDetail_20' ) end [2025-01-16 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:37:22] Production.INFO: ==30724== Releasing lock... [2025-01-16 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:38:05 [end_date_ymd] => 2025-01-16 23:38:05 [RateCDR] => 1 ) [2025-01-16 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:38:05' and `end` < '2025-01-16 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:38:19] Production.INFO: count ==564 [2025-01-16 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:38:05 - End Time 2025-01-16 23:38:05 [2025-01-16 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264368', 'tblTempUsageDetail_20' ) start [2025-01-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264368', 'tblTempUsageDetail_20' ) end [2025-01-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264368', 'tblTempVendorCDR_20' ) start [2025-01-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264368', 'tblTempVendorCDR_20' ) end [2025-01-16 23:38:19] Production.INFO: ProcessCDR(1,14264368,1,1,2) [2025-01-16 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264368', 'tblTempUsageDetail_20' ) start [2025-01-16 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264368', 'tblTempUsageDetail_20' ) end [2025-01-16 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:38:22] Production.INFO: ==30794== Releasing lock... [2025-01-16 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:39:05 [end_date_ymd] => 2025-01-16 23:39:05 [RateCDR] => 1 ) [2025-01-16 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:39:05' and `end` < '2025-01-16 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:39:17] Production.INFO: count ==564 [2025-01-16 23:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:39:05 - End Time 2025-01-16 23:39:05 [2025-01-16 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264373', 'tblTempUsageDetail_20' ) start [2025-01-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264373', 'tblTempUsageDetail_20' ) end [2025-01-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264373', 'tblTempVendorCDR_20' ) start [2025-01-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264373', 'tblTempVendorCDR_20' ) end [2025-01-16 23:39:17] Production.INFO: ProcessCDR(1,14264373,1,1,2) [2025-01-16 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264373', 'tblTempUsageDetail_20' ) start [2025-01-16 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264373', 'tblTempUsageDetail_20' ) end [2025-01-16 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:39:20] Production.INFO: ==30868== Releasing lock... [2025-01-16 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:39:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:40:06 [end_date_ymd] => 2025-01-16 23:40:06 [RateCDR] => 1 ) [2025-01-16 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:40:06' and `end` < '2025-01-16 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-01-16 23:40:18] Production.INFO: count ==561 [2025-01-16 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:40:06 - End Time 2025-01-16 23:40:06 [2025-01-16 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264379', 'tblTempUsageDetail_20' ) start [2025-01-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264379', 'tblTempUsageDetail_20' ) end [2025-01-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264379', 'tblTempVendorCDR_20' ) start [2025-01-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264379', 'tblTempVendorCDR_20' ) end [2025-01-16 23:40:18] Production.INFO: ProcessCDR(1,14264379,1,1,2) [2025-01-16 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264379', 'tblTempUsageDetail_20' ) start [2025-01-16 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264379', 'tblTempUsageDetail_20' ) end [2025-01-16 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:40:21] Production.INFO: ==30940== Releasing lock... [2025-01-16 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:40:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:41:05 [end_date_ymd] => 2025-01-16 23:41:05 [RateCDR] => 1 ) [2025-01-16 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:41:05' and `end` < '2025-01-16 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:41:19] Production.INFO: count ==558 [2025-01-16 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:41:05 - End Time 2025-01-16 23:41:05 [2025-01-16 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264384', 'tblTempUsageDetail_20' ) start [2025-01-16 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264384', 'tblTempUsageDetail_20' ) end [2025-01-16 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264384', 'tblTempVendorCDR_20' ) start [2025-01-16 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264384', 'tblTempVendorCDR_20' ) end [2025-01-16 23:41:19] Production.INFO: ProcessCDR(1,14264384,1,1,2) [2025-01-16 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264384', 'tblTempUsageDetail_20' ) start [2025-01-16 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264384', 'tblTempUsageDetail_20' ) end [2025-01-16 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:41:22] Production.INFO: ==31012== Releasing lock... [2025-01-16 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:42:05 [end_date_ymd] => 2025-01-16 23:42:05 [RateCDR] => 1 ) [2025-01-16 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:42:05' and `end` < '2025-01-16 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:42:18] Production.INFO: count ==558 [2025-01-16 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:42:05 - End Time 2025-01-16 23:42:05 [2025-01-16 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264389', 'tblTempUsageDetail_20' ) start [2025-01-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264389', 'tblTempUsageDetail_20' ) end [2025-01-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264389', 'tblTempVendorCDR_20' ) start [2025-01-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264389', 'tblTempVendorCDR_20' ) end [2025-01-16 23:42:18] Production.INFO: ProcessCDR(1,14264389,1,1,2) [2025-01-16 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264389', 'tblTempUsageDetail_20' ) start [2025-01-16 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264389', 'tblTempUsageDetail_20' ) end [2025-01-16 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:42:21] Production.INFO: ==31085== Releasing lock... [2025-01-16 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:43:05 [end_date_ymd] => 2025-01-16 23:43:05 [RateCDR] => 1 ) [2025-01-16 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:43:05' and `end` < '2025-01-16 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:43:19] Production.INFO: count ==558 [2025-01-16 23:43:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:43:05 - End Time 2025-01-16 23:43:05 [2025-01-16 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264394', 'tblTempUsageDetail_20' ) start [2025-01-16 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264394', 'tblTempUsageDetail_20' ) end [2025-01-16 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264394', 'tblTempVendorCDR_20' ) start [2025-01-16 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264394', 'tblTempVendorCDR_20' ) end [2025-01-16 23:43:19] Production.INFO: ProcessCDR(1,14264394,1,1,2) [2025-01-16 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264394', 'tblTempUsageDetail_20' ) start [2025-01-16 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264394', 'tblTempUsageDetail_20' ) end [2025-01-16 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:43:23] Production.INFO: ==31163== Releasing lock... [2025-01-16 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:43:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:44:05 [end_date_ymd] => 2025-01-16 23:44:05 [RateCDR] => 1 ) [2025-01-16 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:44:05' and `end` < '2025-01-16 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:44:18] Production.INFO: count ==558 [2025-01-16 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:44:05 - End Time 2025-01-16 23:44:05 [2025-01-16 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264399', 'tblTempUsageDetail_20' ) start [2025-01-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264399', 'tblTempUsageDetail_20' ) end [2025-01-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264399', 'tblTempVendorCDR_20' ) start [2025-01-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264399', 'tblTempVendorCDR_20' ) end [2025-01-16 23:44:18] Production.INFO: ProcessCDR(1,14264399,1,1,2) [2025-01-16 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264399', 'tblTempUsageDetail_20' ) start [2025-01-16 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264399', 'tblTempUsageDetail_20' ) end [2025-01-16 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:44:21] Production.INFO: ==31238== Releasing lock... [2025-01-16 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:45:05 [end_date_ymd] => 2025-01-16 23:45:05 [RateCDR] => 1 ) [2025-01-16 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:45:05' and `end` < '2025-01-16 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:45:17] Production.INFO: count ==558 [2025-01-16 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:45:05 - End Time 2025-01-16 23:45:05 [2025-01-16 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264404', 'tblTempUsageDetail_20' ) start [2025-01-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264404', 'tblTempUsageDetail_20' ) end [2025-01-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264404', 'tblTempVendorCDR_20' ) start [2025-01-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264404', 'tblTempVendorCDR_20' ) end [2025-01-16 23:45:17] Production.INFO: ProcessCDR(1,14264404,1,1,2) [2025-01-16 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264404', 'tblTempUsageDetail_20' ) start [2025-01-16 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264404', 'tblTempUsageDetail_20' ) end [2025-01-16 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:45:20] Production.INFO: ==31310== Releasing lock... [2025-01-16 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:45:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:46:05 [end_date_ymd] => 2025-01-16 23:46:05 [RateCDR] => 1 ) [2025-01-16 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:46:05' and `end` < '2025-01-16 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:46:18] Production.INFO: count ==558 [2025-01-16 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:46:05 - End Time 2025-01-16 23:46:05 [2025-01-16 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264409', 'tblTempUsageDetail_20' ) start [2025-01-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264409', 'tblTempUsageDetail_20' ) end [2025-01-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264409', 'tblTempVendorCDR_20' ) start [2025-01-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264409', 'tblTempVendorCDR_20' ) end [2025-01-16 23:46:18] Production.INFO: ProcessCDR(1,14264409,1,1,2) [2025-01-16 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264409', 'tblTempUsageDetail_20' ) start [2025-01-16 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264409', 'tblTempUsageDetail_20' ) end [2025-01-16 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:46:21] Production.INFO: ==31379== Releasing lock... [2025-01-16 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:47:04 [end_date_ymd] => 2025-01-16 23:47:04 [RateCDR] => 1 ) [2025-01-16 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:47:04' and `end` < '2025-01-16 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:47:18] Production.INFO: count ==563 [2025-01-16 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:47:04 - End Time 2025-01-16 23:47:04 [2025-01-16 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264414', 'tblTempUsageDetail_20' ) start [2025-01-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264414', 'tblTempUsageDetail_20' ) end [2025-01-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264414', 'tblTempVendorCDR_20' ) start [2025-01-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264414', 'tblTempVendorCDR_20' ) end [2025-01-16 23:47:18] Production.INFO: ProcessCDR(1,14264414,1,1,2) [2025-01-16 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264414', 'tblTempUsageDetail_20' ) start [2025-01-16 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264414', 'tblTempUsageDetail_20' ) end [2025-01-16 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:47:21] Production.INFO: ==31448== Releasing lock... [2025-01-16 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:48:05 [end_date_ymd] => 2025-01-16 23:48:05 [RateCDR] => 1 ) [2025-01-16 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:48:05' and `end` < '2025-01-16 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:48:17] Production.INFO: count ==564 [2025-01-16 23:48:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:48:05 - End Time 2025-01-16 23:48:05 [2025-01-16 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264419', 'tblTempUsageDetail_20' ) start [2025-01-16 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264419', 'tblTempUsageDetail_20' ) end [2025-01-16 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264419', 'tblTempVendorCDR_20' ) start [2025-01-16 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264419', 'tblTempVendorCDR_20' ) end [2025-01-16 23:48:17] Production.INFO: ProcessCDR(1,14264419,1,1,2) [2025-01-16 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264419', 'tblTempUsageDetail_20' ) start [2025-01-16 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264419', 'tblTempUsageDetail_20' ) end [2025-01-16 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:48:22] Production.INFO: ==31519== Releasing lock... [2025-01-16 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-16 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:49:04 [end_date_ymd] => 2025-01-16 23:49:04 [RateCDR] => 1 ) [2025-01-16 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:49:04' and `end` < '2025-01-16 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:49:16] Production.INFO: count ==564 [2025-01-16 23:49:16] Production.ERROR: pbx CDR StartTime 2025-01-16 20:49:04 - End Time 2025-01-16 23:49:04 [2025-01-16 23:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264422', 'tblTempUsageDetail_20' ) start [2025-01-16 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264422', 'tblTempUsageDetail_20' ) end [2025-01-16 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264422', 'tblTempVendorCDR_20' ) start [2025-01-16 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264422', 'tblTempVendorCDR_20' ) end [2025-01-16 23:49:16] Production.INFO: ProcessCDR(1,14264422,1,1,2) [2025-01-16 23:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264422', 'tblTempUsageDetail_20' ) start [2025-01-16 23:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264422', 'tblTempUsageDetail_20' ) end [2025-01-16 23:49:19] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:49:19] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:49:19] Production.INFO: ==31590== Releasing lock... [2025-01-16 23:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:49:19] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:50:05 [end_date_ymd] => 2025-01-16 23:50:05 [RateCDR] => 1 ) [2025-01-16 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:50:05' and `end` < '2025-01-16 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:50:18] Production.INFO: count ==565 [2025-01-16 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:50:05 - End Time 2025-01-16 23:50:05 [2025-01-16 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264430', 'tblTempUsageDetail_20' ) start [2025-01-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264430', 'tblTempUsageDetail_20' ) end [2025-01-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264430', 'tblTempVendorCDR_20' ) start [2025-01-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264430', 'tblTempVendorCDR_20' ) end [2025-01-16 23:50:18] Production.INFO: ProcessCDR(1,14264430,1,1,2) [2025-01-16 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264430', 'tblTempUsageDetail_20' ) start [2025-01-16 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264430', 'tblTempUsageDetail_20' ) end [2025-01-16 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:50:22] Production.INFO: ==31667== Releasing lock... [2025-01-16 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:51:06 [end_date_ymd] => 2025-01-16 23:51:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 20:51:06' and `end` < '2025-01-16 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-01-16 23:51:18] Production.INFO: count ==553 [2025-01-16 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:51:06 - End Time 2025-01-16 23:51:06 [2025-01-16 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264435', 'tblTempUsageDetail_20' ) start [2025-01-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264435', 'tblTempUsageDetail_20' ) end [2025-01-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264435', 'tblTempVendorCDR_20' ) start [2025-01-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264435', 'tblTempVendorCDR_20' ) end [2025-01-16 23:51:18] Production.INFO: ProcessCDR(1,14264435,1,1,2) [2025-01-16 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264435', 'tblTempUsageDetail_20' ) start [2025-01-16 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264435', 'tblTempUsageDetail_20' ) end [2025-01-16 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:51:22] Production.INFO: ==31742== Releasing lock... [2025-01-16 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:52:05 [end_date_ymd] => 2025-01-16 23:52:05 [RateCDR] => 1 ) [2025-01-16 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:52:05' and `end` < '2025-01-16 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:52:19] Production.INFO: count ==553 [2025-01-16 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:52:05 - End Time 2025-01-16 23:52:05 [2025-01-16 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264440', 'tblTempUsageDetail_20' ) start [2025-01-16 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264440', 'tblTempUsageDetail_20' ) end [2025-01-16 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264440', 'tblTempVendorCDR_20' ) start [2025-01-16 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264440', 'tblTempVendorCDR_20' ) end [2025-01-16 23:52:19] Production.INFO: ProcessCDR(1,14264440,1,1,2) [2025-01-16 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264440', 'tblTempUsageDetail_20' ) start [2025-01-16 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264440', 'tblTempUsageDetail_20' ) end [2025-01-16 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:52:22] Production.INFO: ==31850== Releasing lock... [2025-01-16 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:53:05 [end_date_ymd] => 2025-01-16 23:53:05 [RateCDR] => 1 ) [2025-01-16 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:53:05' and `end` < '2025-01-16 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:53:18] Production.INFO: count ==554 [2025-01-16 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:53:05 - End Time 2025-01-16 23:53:05 [2025-01-16 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264445', 'tblTempUsageDetail_20' ) start [2025-01-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264445', 'tblTempUsageDetail_20' ) end [2025-01-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264445', 'tblTempVendorCDR_20' ) start [2025-01-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264445', 'tblTempVendorCDR_20' ) end [2025-01-16 23:53:18] Production.INFO: ProcessCDR(1,14264445,1,1,2) [2025-01-16 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264445', 'tblTempUsageDetail_20' ) start [2025-01-16 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264445', 'tblTempUsageDetail_20' ) end [2025-01-16 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:53:22] Production.INFO: ==31921== Releasing lock... [2025-01-16 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:54:05 [end_date_ymd] => 2025-01-16 23:54:05 [RateCDR] => 1 ) [2025-01-16 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:54:05' and `end` < '2025-01-16 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:54:17] Production.INFO: count ==554 [2025-01-16 23:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:54:05 - End Time 2025-01-16 23:54:05 [2025-01-16 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264450', 'tblTempUsageDetail_20' ) start [2025-01-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264450', 'tblTempUsageDetail_20' ) end [2025-01-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264450', 'tblTempVendorCDR_20' ) start [2025-01-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264450', 'tblTempVendorCDR_20' ) end [2025-01-16 23:54:17] Production.INFO: ProcessCDR(1,14264450,1,1,2) [2025-01-16 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264450', 'tblTempUsageDetail_20' ) start [2025-01-16 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264450', 'tblTempUsageDetail_20' ) end [2025-01-16 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:54:20] Production.INFO: ==31994== Releasing lock... [2025-01-16 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:54:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:55:05 [end_date_ymd] => 2025-01-16 23:55:05 [RateCDR] => 1 ) [2025-01-16 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:55:05' and `end` < '2025-01-16 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:55:19] Production.INFO: count ==554 [2025-01-16 23:55:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:55:05 - End Time 2025-01-16 23:55:05 [2025-01-16 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264455', 'tblTempUsageDetail_20' ) start [2025-01-16 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264455', 'tblTempUsageDetail_20' ) end [2025-01-16 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264455', 'tblTempVendorCDR_20' ) start [2025-01-16 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264455', 'tblTempVendorCDR_20' ) end [2025-01-16 23:55:19] Production.INFO: ProcessCDR(1,14264455,1,1,2) [2025-01-16 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264455', 'tblTempUsageDetail_20' ) start [2025-01-16 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264455', 'tblTempUsageDetail_20' ) end [2025-01-16 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:55:22] Production.INFO: ==32068== Releasing lock... [2025-01-16 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:56:05 [end_date_ymd] => 2025-01-16 23:56:05 [RateCDR] => 1 ) [2025-01-16 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:56:05' and `end` < '2025-01-16 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:56:19] Production.INFO: count ==548 [2025-01-16 23:56:19] Production.ERROR: pbx CDR StartTime 2025-01-16 20:56:05 - End Time 2025-01-16 23:56:05 [2025-01-16 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264460', 'tblTempUsageDetail_20' ) start [2025-01-16 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264460', 'tblTempUsageDetail_20' ) end [2025-01-16 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264460', 'tblTempVendorCDR_20' ) start [2025-01-16 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264460', 'tblTempVendorCDR_20' ) end [2025-01-16 23:56:19] Production.INFO: ProcessCDR(1,14264460,1,1,2) [2025-01-16 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264460', 'tblTempUsageDetail_20' ) start [2025-01-16 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264460', 'tblTempUsageDetail_20' ) end [2025-01-16 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:56:23] Production.INFO: ==32137== Releasing lock... [2025-01-16 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:56:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:57:06 [end_date_ymd] => 2025-01-16 23:57:06 [RateCDR] => 1 ) [2025-01-16 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-01-16 20:57:06' and `end` < '2025-01-16 23:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:57:20] Production.INFO: count ==549 [2025-01-16 23:57:20] Production.ERROR: pbx CDR StartTime 2025-01-16 20:57:06 - End Time 2025-01-16 23:57:06 [2025-01-16 23:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264465', 'tblTempUsageDetail_20' ) start [2025-01-16 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264465', 'tblTempUsageDetail_20' ) end [2025-01-16 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264465', 'tblTempVendorCDR_20' ) start [2025-01-16 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264465', 'tblTempVendorCDR_20' ) end [2025-01-16 23:57:20] Production.INFO: ProcessCDR(1,14264465,1,1,2) [2025-01-16 23:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264465', 'tblTempUsageDetail_20' ) start [2025-01-16 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264465', 'tblTempUsageDetail_20' ) end [2025-01-16 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:57:23] Production.INFO: ==32207== Releasing lock... [2025-01-16 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:57:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:58:05 [end_date_ymd] => 2025-01-16 23:58:05 [RateCDR] => 1 ) [2025-01-16 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:58:05' and `end` < '2025-01-16 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:58:18] Production.INFO: count ==549 [2025-01-16 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 20:58:05 - End Time 2025-01-16 23:58:05 [2025-01-16 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264470', 'tblTempUsageDetail_20' ) start [2025-01-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264470', 'tblTempUsageDetail_20' ) end [2025-01-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264470', 'tblTempVendorCDR_20' ) start [2025-01-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264470', 'tblTempVendorCDR_20' ) end [2025-01-16 23:58:18] Production.INFO: ProcessCDR(1,14264470,1,1,2) [2025-01-16 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264470', 'tblTempUsageDetail_20' ) start [2025-01-16 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264470', 'tblTempUsageDetail_20' ) end [2025-01-16 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:58:21] Production.INFO: ==32280== Releasing lock... [2025-01-16 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-16 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 20:59:05 [end_date_ymd] => 2025-01-16 23:59:05 [RateCDR] => 1 ) [2025-01-16 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 20:59:05' and `end` < '2025-01-16 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-16 23:59:17] Production.INFO: count ==549 [2025-01-16 23:59:17] Production.ERROR: pbx CDR StartTime 2025-01-16 20:59:05 - End Time 2025-01-16 23:59:05 [2025-01-16 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264475', 'tblTempUsageDetail_20' ) start [2025-01-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264475', 'tblTempUsageDetail_20' ) end [2025-01-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264475', 'tblTempVendorCDR_20' ) start [2025-01-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264475', 'tblTempVendorCDR_20' ) end [2025-01-16 23:59:17] Production.INFO: ProcessCDR(1,14264475,1,1,2) [2025-01-16 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-16 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-16 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264475', 'tblTempUsageDetail_20' ) start [2025-01-16 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264475', 'tblTempUsageDetail_20' ) end [2025-01-16 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-16 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-16 23:59:20] Production.INFO: ==32358== Releasing lock... [2025-01-16 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-16 23:59:20] Production.INFO: 31.5 MB #Memory Used#